S
S
sinneren2020-09-29 16:11:04
Yandex maps
sinneren, 2020-09-29 16:11:04

How to get object properties via click event in objectManager?

I need to pull out the properties that I set in the FeatureCollection in the properties section.
I hang the click in this way, and pull out the ID, but the property does not:

objectManager.objects.events.add('click', function (event) {
    instance.pointClickHandler(event.get('objectId'));
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sinneren, 2020-09-30
@sinneren

Found it myself.

objectManager.objects.getById(event.get('objectId'))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question