S
S
Sasha Brahms2015-11-08 23:08:47
JavaScript
Sasha Brahms, 2015-11-08 23:08:47

Zoom control in google maps based on distance between points + SensorNotRequired?

How to control the zoom based on the distance between the points?
for example, there are 3 points, they are all in 1 city, set the zoom to the city.
but if, for example, there are 5 points and 2 of them are on different continents, you need to set the minimum zoom, how to implement all this?
SensorNotRequired - how to fix?
I can’t google anything, a warning pops up

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SunnyDay, 2015-11-15
@SunnyDay

calculate the maximum distance between the points and, depending on the distance, make a zoom.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question