T
T
twopizza2015-11-24 02:38:19
Yandex maps
twopizza, 2015-11-24 02:38:19

How to display a label when clicking on "Show on Yandex.Maps" on a Yandex map?

The site has a built-in Yandex map.

function initYmaps(){
    myMap = new ymaps.Map("map", {
        center: [XX.XXXXXXXX,XX.XXXXXXXX],
        zoom: 16,
        controls: [],
    });

    myPlacemark = new ymaps.Placemark([XX.XXXXXXXX,XX.XXXXXXXX],
    {
      hintContent: 'Адрес',
      balloonContent: 'Название организации'
    },
    {
            preset: 'islands#icon',
            iconColor: '#4d4f5e'
        }
  );
    myMap.geoObjects.add(myPlacemark);
    myMap.controls.add('zoomControl');
  myMap.behaviors.disable("scrollZoom");
}

When you click on the "Show on Yandex.Maps" link in the lower left corner, you go to maps.yandex.ru, the map is centered in the right place, but the label is not displayed. How can you show it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
forgotten, 2015-11-24
@twopizza

This functionality will appear in the next releases.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question