B
B
Big_person2016-07-18 15:19:25
JavaScript
Big_person, 2016-07-18 15:19:25

Load data for label balloon in on-demand cluster?

There is a wonderful example in the sandbox for loading data for a label balloon on demand:
https://tech.yandex.ru/maps/jsbox/2.1/object_manag...

But this method does not work for clustered labels:
jsfiddle.net/ 5w33ubpx

Tell me how to change the code so that when the cluster balloon is opened, the data of the selected label is loaded, and when the labels are switched inside the cluster balloon, the data is loaded by the label id.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
forgotten, 2016-07-18
@Big_person

In this situation, I would suggest putting a “fish” with a spinner / message “loading” in the content of the balloon, and loading the real data on the balloonOpen event and changing the value of the activeObject for clusters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question