Tag Info

New answers tagged

0

You can change the fill color of a polygon with the setStyle method (inherited from Path). polygon.setStyle({fillColor: '#0000FF'}); If you're having difficulty getting the geojson displayed properly you might take a look at the Leaflet GeoJSON docs.


0

You might try a clustering strategy such as the Leaflet Marker Clustering plugin - https://github.com/Leaflet/Leaflet.markercluster You can see an example of this at work here - http://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-realworld.388.html Another strategy (although maybe not feasible given your constraints) would be to create ...



Top 50 recent answers are included