C
C
chelkaz2018-04-25 13:25:20
Yandex
chelkaz, 2018-04-25 13:25:20

Label sets for object_manager with auto-positioning (Auto-center) how?

Here is an example of a sandbox,
https://tech.yandex.ru/maps/jsbox/2.1/object_manager
Is it possible to automatically open a map so that all the labels fall into it?
Now in the example the center is indicated manually center: [55.76, 37.64],
How to make positioning automatic?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2018-04-25
@chelkaz

.done(function(data) {
        objectManager.add(data);
        myMap.setBounds(objectManager.getBounds());
    });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question