Answer the question
In order to leave comments, you need to log in
How can I access new data on the map after redrawing via reloadData()?
Good evening. Can you please tell me how to work with map objects after updating them via objectManager.setUrlTemplate (getting new values) and objectManager.reloadData() , rewriting labels?
For example: objectManager.objects.getLength();
Can only be used before labels are overwritten, but it returns the "old" result, not the new one.
I'm trying something like this:
myMap.panTo(myMap.geoObjects.getBounds(), {checkZoomRange:true});
myMap.setBounds(myMap.geoObjects.getBounds());
objectManager = new ymaps.LoadingObjectManager
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