Sample implemented: https://realty.yandex.ru/search?type=SELL&category=APARTMENT&rgid=547386

When you hover over an ad on the left side of the screen on the right side of the map, the label increases. It is necessary to implement the same.

Is there a possibility in Yandex cards to increase the standard label? Or only if another image is loaded when hovering?

Thank!

  • @ barakh-d; If you are given an exhaustive answer, mark it as correct (click on the check mark next to the selected answer). - Nicolas Chabanovsky

2 answers 2

https://tech.yandex.ru/maps/doc/jsapi/2.0/dg/concepts/geoobjects-docpage/#icon-style

Note the iconImageSize option when using your own image. And everything below is also read.

    yourCollection.events .add('mouseenter', function (e){ e.get('target').options.set({iconImageSize: [48, 86], iconImageOffset: [-24, -86]}); }) .add('mouseleave', function (e){ e.get('target').options.set({iconImageSize: [30, 54], iconImageOffset: [-15, -54]}); });