A
A
Alexander Novikov2020-03-12 11:54:54
JavaScript
Alexander Novikov, 2020-03-12 11:54:54

How to calculate the scale of Yandex maps?

The map has a main point (the center of the map) and additional points to which lines are drawn. How to calculate the scale of the map knowing the coordinates of the center of the map and the coordinates of the point (the point on the map has not been drawn yet, the scale needs to be adjusted before drawing the second point)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sashabeep, 2020-03-12
@sashabeep

For a simple few points, I have enough

myMap.setBounds(myMap.geoObjects.getBounds());
myMap.setZoom(myMap.getZoom()-0.4);

For some kind of automation, you need to use util.bounds

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question