Categories
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
Walked for you for the last timemap.setView(new L.LatLng(40.737, -73.923), 8);
map.setView(new L.LatLng(40.737, -73.923), 8);
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question