A
A
akubenov2017-03-14 13:29:16
JavaScript
akubenov, 2017-03-14 13:29:16

How to get object id at dragend event in yandex map?

For drawing points I use GeoObjectCollection.
You need to get the object id on the dragend event.

this.myCollection.events.add('dragend', function(e) {
                var object = e.get('target');
                var coords = object.geometry.getCoordinates();
               //var id = ???
}.bind(this));

Either I'm doing something wrong, or it's really impossible to do it) Help plz)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nicholas, 2017-03-14
@healqq

It seems to be in object.properties .

P
Pavel Kornilov, 2017-12-25
@Artem0071

s - sum of voted points
q - number of voters
n - new vote (points)
Cf. are. = (s+n) / (q+1)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question