Answer the question
In order to leave comments, you need to log in
How to attach data to a polygon?
Hello, I am using the latest version of yandex maps api (2.*). I create a polygon on the map:
polygonObj = new ymaps.GeoObject({
geometry: {
type: "Polygon",
coordinates: polygon
}
});
polygonObj.events.add('click', function (el) {
console.log(el.get('target'));
});
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