I observe the following problem: when using SearchControl, each search query reduces the zoom of the map by -1.

Adding setZoom to then does not help, the map is still moving away with each request.

This problem can be observed in the sandbox, if you search for something several times through the search form: https://tech.yandex.ru/maps/jsbox/2.1/search_control_ppo

Tell me how to solve?

  • What problem do you want to solve? Why behavior seems to you incorrect? - Reni
  • I need to eliminate the behavior with zoom and do only search. If I make a dozen requests, I see the whole world map with continents, somehow this is wrong. Normal: stay at the same zoom without moving the map. - Roman Ilin
  • What problem do you want to solve as a result? What card do you want to get? You say that it is so abnormal, but it is not clear in which case a person searches the same zoom 10 times in a row. - Reni
  • It is not necessary to look for the same thing, it is enough just to look for something. I need the user to see pharmacies, shops, schools and gardens near his home. After a few requests, the card flies into space, forcing it to zoom the card back. I need to search on the map without moving in space from the original point of view. - Roman Ilin
  • Are you doing something like an infrastructure panel? Such a plan lcd-house-on-blucher-spb.rf ? - Reni

0