1
vote
0answers
28 views

Leaflet marker cluster by Administrative boundary

Is it possible to perform clustering based on administrative boundary using the leaflet.markercluster plugin? How would I do that? I already have the boundary layer.
0
votes
1answer
42 views

How to add event listener to many markers on the map?

How can I add an event listener to many markers on the map? I know how to add an event listener to a single marker say: var marker = L.marker(...); marker.on('dragend',function(){...}); So, how can ...
0
votes
1answer
68 views

leaflet - The marker and center map are not in the right place

I'm starting use the Leaflet. I put a marker to test but neither the marker nor the center are in the right local I set. example: I put the marker inside a stadium and it appear outside stadium. ...
0
votes
0answers
57 views

Help needed to get PINs clustered from the switch2osm.org tutorial (GeoJson)

I want to use basicly two PlugIn-Codes: for dragging with reload <http://switch2osm.org/using-tiles/getting-started-with-leaflet/> and for clustering, I wish to involve features from ...
0
votes
0answers
210 views

How to put markers from geoJson to MarkerClusterGroup?

How to put markers from layer WTGS (which reads geojson from php file returned from postgis database) to L.MarkerClusterGroup? WTGS = new L.geoJson(null, { pointToLayer: function ...
1
vote
0answers
226 views

Leaflet: Linking a marker click event to an image

I'm breaking down my question into three parts. I am a beginner to Leaflet and to writing code. Currently, I have a JSON file with all of my markers linked to my map page. The idea is that every ...
6
votes
3answers
1k views

How do I stop event propagation with rightclick on Leaflet marker?

I didn't find a rightclick event in Leaflet markers so I started listening to the mousedown event. In the method that resolves this event I check if (event.originalEvent.button == 2) { ...