I am using openstreetmap and lealfet. I want to change the color of the marker in the cluster. That is, there is an array of coordinates.
var addressPoints = [ [62.26763, 74.47733, "CAR", 1], ];
I would like the marker color to change "1" supposedly green, and "0" blue. I also found a similar question here, where I used the answer in the form.
But the map breaks down. What does this fragment describe? That is, what is its use.
var marker = L.marker(new L.LatLng(a[0], a[1]), {icon: L.map.marker.icon({'marker-symbol': 'car', 'marker-color': '#00FFFF'}),title: title});
I would really appreciate a hint.