P
P
plac2019-11-21 08:09:26
leaflet
plac, 2019-11-21 08:09:26

How to manage leaflet's viewport?

Just started digging into leaflet.js.
I can not understand how you can change the position of the viewport when you click (you need to move to certain coordinates).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2019-11-21
@freeExec

Walked for you for the last time
map.setView(new L.LatLng(40.737, -73.923), 8);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question