I want to save the current position where to user is watching and restore back after some clicks.
How do I get the current lat longitude bounds so that I could map.fitBounds on it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s the code to capture the current map bounds, on the “bounds_changed” event
Then, you can return the map the bound using this code