Top "Leaflet" questions

Leaflet is an open-source JavaScript library for mobile-friendly, cross-browser, interactive maps.

hide and show a polyline in leaflet?

I'm using leaflet for show raw itinerary to go to some markers. I'm showing my itinerary with a leaflet polyline. …

leaflet polyline
React-leaflet bounds

Right now I am setting the bounds of my react leaflet map by passing a bounds parameter as shown below: &…

javascript dictionary reactjs leaflet react-leaflet
How to make a GeometryCollection in GeoJSON with a single point + polygon?

How do you add a point to a polygon as a single feature? According to the GeoJson specs, this is …

leaflet mapbox geojson
How to customize touch interaction on leaflet maps

How to customize leaflet maps to disable one-finger scroll on mobile devices and add two finger scroll like google maps (…

maps touch leaflet interaction
How can I change the default loading tile color in LeafletJS?

By default, when leafletJS is loading a map, the background tiles are all grey. I'd like to change that color …

javascript css maps leaflet geomap
How to set the zIndex layer order for geoJson layers?

I would like to have certain layers to be always on top of others, no matter in which order they …

leaflet z-index mapbox geojson
leaflet - Adding a legend title

I am new to Leaflet and I am currently struggling with tutorials. So far I managed to create an interactive …

map leaflet legend-properties
How to change base layer using JS and leaflet layers control

I have to modify existing application, where leaflet layers control is used - I need to display one of the …

controls leaflet layer tile
Leaflet calculating meters per pixel at zoom level

I am trying to determine a way to calculate the number of meters represented by 1 pixel at a given zoom …

javascript leaflet geo
How to apply css on polylines : leaflet

I am working with the application which uses leaflet api. Introduction I needed to draw different types of fences, using …

leaflet angular-leaflet-directive