B
B
bpGusar2018-04-13 10:36:07
css
bpGusar, 2018-04-13 10:36:07

How to go to a specific address on Yandex Maps when clicking on a button on a page?

There are several buttons, by clicking on each of them, it goes to a certain point on the map located on the same page, the balloon is displayed, and a certain zoom is set to the point.

Googled, didn't find anything useful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sklyarov, 2018-04-13
@0example

Searched badly: https://tech.yandex.ru/maps/doc/jsapi/1.x/ref/ref...
You need to look at the method: setCenter. Then apply the update method.
UPD: added a jsfiddle https://jsfiddle.net/but3hw8e/ button there right below the map below, if it doesn't show up right away.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question