M
M
mvpitlay2019-02-06 18:09:01
Yandex maps
mvpitlay, 2019-02-06 18:09:01

Zuma maps in the Yandex.Maps API?

Hello, there is a Yandex map with objects (tags) and a list of cities when choosing a city, the tags that are not needed are sorted out, but only those that belong to the selected city remain and the map is zoomed to these did so

$('#mse2_results').bind("DOMSubtreeModified",function(){
    clusterer.removeAll();
    generateMap();
    myMap.setBounds(clusterer.getBounds(), {
      checkZoomRange: true
    });
  });

that is, everything was removed from the map and the marks were recreated. Now I'm trying to make sure that the labels are not deleted, they were always on the map, but when choosing a city from the drop-down list, the map zoomed to the selected city, tell me if it's possible to do it and what method is there in the Yandex API?
Here is a method that zooms the map to cover all labels
myMap.setBounds(clusterer.getBounds(), {
      checkZoomRange: true
    });

I need something similar to the name of the city.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-02-06
@mvpitlay

For example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question