Answer the question
In order to leave comments, you need to log in
How to put a label on Yandex.Map correctly?
There is the following label:
How to place it correctly on Yandex.Map. If you fully load the entire image onto the map, then it constantly shifts when scaling. If I load only the blue label, then everything is ok, but how to make such a plate for it from below?
My blue label code:
ymaps.ready(init);
function init(){
// Создание карты.
var myMap = new ymaps.Map("map", {
center: [55.785205, 37.717187],
zoom: 17
});
var myPlacemark = new ymaps.Placemark(myMap.getCenter(), {}, {
iconLayout: 'default#image',
iconImageHref: '../../../../img/svg/contacts/map__icon.svg',
iconImageSize: [24, 32],
});
// Размещение геообъекта на карте.
myMap.geoObjects
.add(myPlacemark);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question