A
A
agent11562016-09-13 11:44:39
Yii
agent1156, 2016-09-13 11:44:39

How to automate adding marks in yandex maps?

I work in yii2. The application has a map on which you can put marks. How to automate this process?
Marks are added to the scene. script like this:
myPlacemark75 = new ymaps.Placemark([43.073784574497424, 44.67815099999991], {
balloonContentHeader: ' CITYLINE ',
balloonContentBody: 'Address, Vladikavkaz, P. Morozov/Telman str., 49/64а Link ',
}, {
/ / Options.
// You must specify this layout type
iconLayout: 'default#image',
// Custom label icon image
iconImageHref: 'images/img49.png',
// Label dimensions.
iconImageSize: [30, 30],
// Offset of the upper left corner of the icon relative
// ​​to its "legs" (anchor points).
iconImageOffset: [-3, -42]
});
myMap.geoObjects.add(myPlacemark75);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question