Answer the question
In order to leave comments, you need to log in
Is the label displayed incorrectly in Yandex Map in Mozila?
In Yandex maps, I indicate my picture for the label. In chrome, everything is fine, but in Yandex maps there is a problem with the picture, as if it does not have background-repeat: none; What could be the problem?
Chrome
Mozila
All browsers of the newest version
Here is the label description in javascript
{
iconLayout: 'default#image',
iconImageHref: './assets_prod/img/svg/map-marker.svg',
iconImageSize: [30, 42],
balloonShadow: false,
balloonLayout: MyBalloonLayout,
balloonContentLayout: MyBalloonContentLayout,
balloonPanelMaxMapArea: 0,
balloonAutoPanMargin: [60,10,20,50],
}
Answer the question
In order to leave comments, you need to log in
It turned out that the case was in iconImageSize: [30, 42] , you need a certain label, a certain ratio, otherwise it breaks in the mozilla. Poking into the sandbox, I found out by experience that such problems are only with svg and only in mozilla. With gif, png everything is ok. I will write to tp yandex
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question