Closed bsudekum closed 10 years ago
@adampax first off, great work!
I'm wondering if there is currently a way to get the map center after panning. Right now mapViewRegionDidChange does not return the new map center, I think this would be a good place to surface it. Something like:
mapViewRegionDidChange
mapView.addEventListener('mapViewRegionDidChange', function(e) { console.log(e.latlng); });
@rsudekum Thanks Bobby. Good idea, I'll get that added, as I don't think that event is returning anything right now.
mapViewRegionDidChange now returns a latitude and longitude property in v0.4.
latitude
longitude
Awesome!
@adampax first off, great work!
I'm wondering if there is currently a way to get the map center after panning. Right now
mapViewRegionDidChange
does not return the new map center, I think this would be a good place to surface it. Something like: