S
S
skuvaWeb2018-11-27 16:59:43
css
skuvaWeb, 2018-11-27 16:59:43

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?
5bfd4d6161d92986113975.pngChrome
5bfd4d804a745072986240.pngMozila
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

1 answer(s)
S
skuvaWeb, 2018-11-27
@skuvaWeb

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 question

Ask a Question

731 491 924 answers to any question