A
A
Alexander Vasyuchenko2015-11-13 16:18:34
OpenStreetMap
Alexander Vasyuchenko, 2015-11-13 16:18:34

How to get the coordinates of the visible area of ​​the map in Leaflet?

Can you please tell me how to get the coordinates of the rectangle of the visible area of ​​the map using the Leaflet library?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Edward, 2015-11-13
@alexv1981

leafletjs.com/reference.html#map-getbounds - This method returns the coordinates of the current map rectangle.
leafletjs.com/reference.html#latlngbounds - Documentation on the format it returns them in.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question