T
T
tuxx2015-01-28 15:16:48
API
tuxx, 2015-01-28 15:16:48

How to scale a route?

A map with a YMaps.Router route is given and an instruction to enter the end and start points of the route that go beyond the visible area of ​​the map. The points are custom and not fully visible due to the inscriptions "Point of departure" and "Point of delivery". The map scales itself - mapStateAutoApply: true. The scaling of the map itself does not change. Moreover, for some reason the controls are not displayed, the zoom parameter of the map is not taken into account. The points themselves are given by the names of settlements. How can I move or scale the map so that the extreme points of the route are visible.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
forgotten, 2015-02-03
@tuxx

In 1.x - no way.
In 2.x, the map.setBounds method has a margin parameter to leave free space around the edges of the map.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question