Answer the question
In order to leave comments, you need to log in
How to keep the Yandex map center offset during a smooth transition to new coordinates?
I deliberately shift the center of the Yandex map to the left by 150px:
Then I make a smooth movement to the new geographical coordinates on the map using:map.setGlobalPixelCenter([x - 150, y]);
map.panTo(coords).than(function() {
map.setZoom(16, {duration: 1000});
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question