S
S
stepan-neretin72019-03-17 22:15:09
JavaScript
stepan-neretin7, 2019-03-17 22:15:09

How to change the default icon in Yandex Maps for a geotag?

I need to change the icons on the Yandex map for each geotag (I found it in the docks )
But the problem is that I don’t know how to use it, please tell me
Here is the map config itself
Here is the output template (Laravel)
put an icon

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
stepan-neretin7, 2019-03-17
@stepan-neretin7

Solved https://pastebin.com/r80hzQZb

E
evans85, 2019-03-17
@evans85

var myPxeyze = new ymaps.Placemark(
[52.071867, 23.662389], {
hintContent: ' Pxeyze P.D. noname.png ',},
{iconImageHref: 'zvezda.png',
iconImageSize: [30, 30],
iconImageOffset: [0, 0 ] });
myMap.geoObjects.add(myPxeyze);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question