`var myMap = new ymaps.Map ('my-map', {

center: [52.29778, 104.29639], zoom: 4 }); var html = '<div class="projects__item-in">'; html += '<span>Газпром</span>'; html += '<span>Инженерный проект 1</span>'; html += '<span>Иркутск</span>'; html += '<button type="button" class="projects__item-in-link">Подробнее</button>'; html += '</div>'; $('#my-map').on('click', function(e) { var target = e.target if(target.classList.contains('projects__item-in-link')) { $('.popup').css('display', 'block'); $('.projects__item-in').css('display', 'none'); } }) var myPlacemark1 = new ymaps.Placemark([52.29778, 104.29639], {balloonContent: html }, {iconLayout: 'default#image', iconImageHref: 'img/pin-3.png', iconImageSize: [64, 88], iconImageOffset: [-32, -88], balloonLayout: "default#imageWithContent", balloonContentSize: [184, 130], balloonShadow: false, hideIconOnBalloonOpen: false } ); ` 

When I click on my tag, the default mark falls out with my balun. How to hide it? screen if without string balloonLayout: "default # imageWithContent"

    1 answer 1

    You use: balloonLayout: "default#imageWithContent" remove this line and the label will disappear.

    • If you remove this line, the label disappears, but the appearance of my balun disappears - Kirill Donenko
    • Of course, I was able to remove the picture (.ymaps-2-1-68-image-with-content {background: none! important;}), but firstly it’s not right, secondly it will work only until the next release - Kirill Donenko
    • I have html in the balun left jsfiddle.net/u0dh4fcg , if you don’t, then you need to redo the code on the file to show your problem. If you need to completely redo the balun, and not just the inside, then here is a suitable example: tech.yandex.ru/maps/jsbox/2.1/balloon_autopan - se0ga
    • Thank you very much for the tip. The balloonLayout string: "default # imageWithContent" is optional. it says # PICTURE with the content, and since the href of the picture I did not indicate the default image was substituted. I added the balloonImageSize string: [0, 0] and removed it. now everything is OK. Thank you - Kirill Donenko