Top "Leaflet" questions

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

How to add only one marker in leaflet map

I am adding marker on map on user click. Problem is that I want only one marker but now whenever …

javascript leaflet openstreetmap
Storing Image Data for offline web application (client-side storage database)

I have an offline web application using appcaching. I need to provide it about 10MB - 20MB of data that …

javascript html web-applications indexeddb leaflet
Dynamically change the color of a polygon in leaflet?

For anyone who is familiar with Leaflet, do you know a way to dynamically change a polygon's color? For example, …

javascript leaflet
How to trigger events on Leaflet map polygons?

I'm trying to figure out how to manually trigger events for Leaflet polygons (loaded via GeoJSON). In a nutshell, I …

events map geojson leaflet
Why push shows argument of type 'any[]' is not assignable to parameter of type 'never' error?

In this code i get the fallowing error: Argument of type 'any[]' is not assignable to parameter of type …

javascript typescript leaflet
change leaflet marker icon

I am using Leaflet Slider, of Dennis Wilhelm, to show changes in data on a Leaflet map. I am trying …

javascript jquery slider leaflet
How to put buttons on the leaflet map

I am using leaflet map in my application & using bootstrap for responsiveness. I have some buttons bellow that map. …

javascript html css leaflet
leaflet.js - Set marker on click, update position on drag

for a small project I am working on, I need to be able to place a marker on a leaflet.…

javascript jquery maps marker leaflet
how to pass data with marker in leaflet js

I am using leaflet js with openstreetmap in my project. I have multiple circlemarkers at same place in my map. …

javascript leaflet
How to remove all layers and features from map?

I am working on a map and I would like to remove all features from the map on a certain …

jquery leaflet mapbox