Good day.
I have created a Yandex map with a variety of company objects scattered around different cities of the country. Objects are presented in the form of markers with baluns. In order for clients to see most of the objects at once, a small scale is set on the map (zoom: 5). I want to click on the marker to increase the map and put the "camera" so that the marker on which I clicked, remains in the center. I use API version 2.0, here in this sandbox http://api.yandex.ru/maps/jsbox/2.0/event_rollover I added this code:
.add('click', function () { myMap.setZoom(10,{smooth:true, position:(55.755773, 37.617761),centering:true}); }) Those. add a Click event handler for the marker, call the previously created map and apply the setZoom method to it (link to the documentation: http://api.yandex.ru/maps/doc/jsapi/1.x/ref/reference/map.xml# setZoom ). The documentation has the following: the centering parameter "A flag indicating that at the end of the smooth scaling the position specified in options.position should match the center of the map.". If I understood correctly, then if you enable smooth scaling (smooth: true), and in the position parameter, specify the coordinates of a specific marker, when you click on this marker, the map should increase smoothly, and the "clicked" marker should be in the center.
But no, the map gradually increases to the desired size, but in the center is the point that was in the center of the map before the click, example in the screenshot
Question: Did I understand the documentation for setZoom () correctly? If so, how to pass the position correctly to achieve the desired effect? If not, is it possible to do what I want with other Yandex API methods?
Thank you in advance!

