Skip to main content

All Questions

5 votes
1 answer
2k views

How to use leaflet slider along with markercluster in Javascript?

i am making a map that uses a slider to show or hide markers, and i want to add clustering functionality, each one alone works perfectly, but i want the slider to show the markers, and in case of ...
jaafar Nasrallah's user avatar
9 votes
2 answers
10k views

Showing an offline OSM map file. Suggestion: an MB Tiles file with Js.library

When online access to the internet is not possible, I would like the (offline) HTML5 app show an OSM map via an OSM file. Can you give an example of how I can show in an offline Html5 app OSM tiles ...
tm1701's user avatar
  • 7,323
6 votes
2 answers
9k views

Leaflet OSM: Center mapview on polygon

I want generate a html file including Leaflet library to show an OpenStreetMap view with a polygon. The polygon on the map should be centered. To do so i followed this discussion, but its still ...
alex's user avatar
  • 5,606
3 votes
1 answer
108 views

remove blue background from markers

how to remove the blue background from the markers? this happen using default icon and a custom one (png with transparent background) am I doing something wrong? <!DOCTYPE html> <html lang=&...
Den's user avatar
  • 59
2 votes
1 answer
1k views

leaflet marker not displaying in certain contexts

I am using the leaflet htmlwidget implementation to draw a web-based map using R. I was looking for a specific marker, couldn't find it, and realized it wasn't being displayed at all. However, when I ...
peopletrees's user avatar
1 vote
1 answer
99 views

custom zoom-in zoom-out buttons in leaflet using pico.css

Coming from this answer to customization of marker in leafleat: remove blue background from markers, now i have the following problem: .html file: <!DOCTYPE html> <html lang="it">...
Den's user avatar
  • 59