I think the title is enough, I don’t even see how to do this for the V2 and V1 API :/
Thanks 🙂
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.
As the other answers suggested, the
fitBounds()method should do the trick.Consider the following example, which will generate 10 random points on the North East USA, and applies the
fitBounds()method:Refreshing this example many times, no marker ever goes outside the viewport: