Почему не открываются балуны по клику на метку с кастомным видом?

Всем привет.
Почему не открываются балуны по клику на метку с кастомным видом?
Вот код:

Инициализирую катру
this.ymap = new ymaps.Map(this.details.map.id, {
			center: [39.891523,59.220496],
			zoom: this.details.zoom,
			controls: this.details.controls
		})
		this.objectManager = new ymaps.ObjectManager({
			clusterize: true
		});


Задаю стили метке
this.objectManager.clusters.options.set({
			preset: 'islands#invertedDarkOrangeClusterIcons'
		});
		this.objectManager.objects.options.set({
			iconLayout: 'default#image',
			iconImageHref: this.details.marker.icon,
			iconImageSize: [this.details.marker.width, this.details.marker.height],
			iconImageOffset: [(this.details.marker.width / 2 * -1), (this.details.marker.height * -1)]
		});


Добавляю метки на карту
let myPlacemarks = {
			type: "FeatureCollection",
			features: []
		};
			myPlacemarks.features.push({
				type: "Feature",
				id: index,
				geometry: {
					type: "Point",
					coordinates: [parseFloat(lat), parseFloat(lon)]
				},
				properties: {
					balloonContentHeader: `Балун Титле`,
					balloonContentBody: `Балун Контент`
				}
			});


И при клике балун не открывается . Если вернуть дефолтный вид метке всё работает.
  • Вопрос задан
  • 48 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы