T
T
Timur2019-05-21 09:01:50
JavaScript
Timur, 2019-05-21 09:01:50

How to make when you click on the link, the transition to the desired label?

<script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script>
          
          <script type="text/javascript">
ymaps.ready(init);        
function init() {
    var myMap = new ymaps.Map("map", {
        center: [43.131999, 131.896615],
        zoom: 17
    }, {
        searchControlProvider: 'yandex#search'
    });

          var myPlacemark = new ymaps.Placemark([43.131999, 131.896615], {
            balloonContentHeader: 'Главный офис компании Cosmetik Line',
            balloonContentBody: "г. Владивосток, Океанский пр-т, 87",
            balloonContentFooter: " 8 (800)550-20-29"
        },{
            iconLayout: 'default#image',
            iconImageHref: "/images/imagegeo.png",
            iconImageSize: [42, 52],
            iconImageOffset: [-15, -44]
        });
        myMap.geoObjects.add(myPlacemark);
        myMap.setCenter(coord, 13);
}
</script>
5ce393ed79510461131268.png
We will click on
<ul>
<li><a>test</a></li>
<li><a>test2</a></li>
<li><a>test3</a></li>
</ul>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-05-21
@idtimurkolomeets

here on the Yandex website there is just an example https://tech.yandex.ru/maps/jsbox/2.1/object_list

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question