Answer the question
In order to leave comments, you need to log in
How to inherit icon colors (placemark) in a cluster?
When creating a map, I set the cluster settings:
var geoObjectCollection = getGeoObjectCollection();
clusterer = new ymaps.Clusterer();
clusterer.add(geoObjectCollection);
myMap.geoObjects.add(clusterer);
var placeMark = new ymaps.Placemark(
[pickup.geo_lat, pickup.geo_lon],
{
hintContent: pickup.title,
iconContent: mapIconContent,
},
{
iconLayout: 'default#imageWithContent',
iconImageHref: '/static/images/icon/map/outpost/' + mapIcon,
iconImageSize: [69, 79],
iconImageOffset: [-34, -39],
iconColor: '#FFEF00',
iconContentOffset: [10, 40],
iconContentSize: [49, 10],
iconContentLayout: MyIconContentLayout,
}
);
Answer the question
In order to leave comments, you need to log in
It looks like something is wrong with your options Specification: YMaps.Placemark(coordPoint, options)
And you have two objects.
https://tech.yandex.ru/maps/archive/doc/jsapi/1.x/...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question