I am using MapView and this map have many markers.
How to enable the Zoom to be set automatically to how all markers in the map ?
I am using MapView and this map have many markers . How to enable
Share
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.
You have to get the 4 corners that form the bounds containing all of the markers. Then zoom to include the span while you move to the center of the area. If that makes sense. See the code below.