Answer the question
In order to leave comments, you need to log in
How to display labels on Yandex maps on click?
Coordinates come to the template, X and Y.
I put labels in the cycle:
var myGeoObjects = [];
myGeoObjects = new ymaps.Placemark([x,y],{
balloonContentBody: "текст1",
});
var clusterer = new ymaps.Clusterer({
clusterDisableClickZoom: false,
clusterOpenBalloonOnClick: false,
});
clusterer.add(myGeoObjects);
myMap.geoObjects.add(clusterer);
myMap.behaviors.disable('scrollZoom');
$('.address').click(function() {
}
);
myMap.hint.open([$(this).attr("coordx"), $(this).attr("coordy")]);
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