B
B
badimint2018-12-06 11:42:29
Yandex maps
badimint, 2018-12-06 11:42:29

hideIconOnBalloonOpen: false not working?

Good afternoon. Tell me why the hideIconOnBalloonOpen: false property may not work in Yandex maps. When the balloon is opened, the label should remain.

ymaps.ready(init);    
          function init(){ 
              var map = new ymaps.Map("map", {
                  center: mapCenter,
                  zoom: 16,
                  controls: []
              }); 

              var placemark = new ymaps.Placemark([55.460427,42.520312], {
                  balloonContent: 'qwerty'
              }
              , {
                  // Отключаем кнопку закрытия балуна.
                  balloonCloseButton: false,
                  hideIconOnBalloonOpen: false
              });

              map.geoObjects.add(placemark);
              placemark.balloon.open();
          }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-12-06
@badimint

Or maybe it still works, but it seems that it doesn’t because the balun blocks the mark? - for sure it is. Set an offset in the balloon options ( balloonOffset: [ -50, -50 ], for example) to see what is under it, make sure the label is in place. If suddenly not - reproduce your situation in the sandbox, let's try to figure it out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question