Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11631

Using Leaflet.js how do I get map lat/lon on drag end?

$
0
0

I am using the leaflet.js and integrate it with my code very easily . I am unable to find the co-ordinates on drag end event like in google map . So please can anyone suggest how to do that . Any kind of help and suggestion is appreciated.

var map = L.map('map', {center: latlng, zoom: 13, layers: [tiles]});var markers = L.markerClusterGroup({ chunkedLoading: true });showData(map,markers);map.on('dragend',function(e){  console.log("console.log", e);  console.log(e.target.latLngToContainerPoint);  //showData(map,markers,e.target._animateToCenter.lat, e.target._animateToCenter.lng , e.distance)});

Viewing all articles
Browse latest Browse all 11631

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>