V
V
Vladimir2017-03-29 00:47:11
Yandex
Vladimir, 2017-03-29 00:47:11

How to make smooth switching between marks on Yandex map?

It is necessary to make a map with two labels and with their switching by two buttons. It seems to fit, but here it does not work out correctly to specify the coordinates and the controls are not displayed. For me, the Maps API is still like a dark forest.
Please suggest a solution. Just a card with two labels is done easily, plugging in the switch.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2017-03-29
@freeExec

Hang on the button event

map.panTo(new YMaps.GeoPoint(30.7058,46.466444), {flying: 1});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question