Answer the question
In order to leave comments, you need to log in
How is it implemented on the Yandex API?
On the site at the top of the map there is a Circle button. Where you can draw an area and it will display only the selected properties inside.
How is it implemented? I did not find anything similar in Yandex API
www.domofond.ru/karta/?SearchType=ForSale&RegionId=78
Answer the question
In order to leave comments, you need to log in
When tracing, an event is placed on the mouse.
The button is clamped - we calculate the position with each cursor movement, drawing a line using the YMaps.Polygon method. We connect the first and last line to each other, completing the "drawing".
After that, the marks included in this polygon are calculated, added to the group, and the rest are hidden.
As soon as the labels are hidden, using the getCenterAndZoom method of the bounds object, we determine the desired center / zoom of the stroke.
Apartments have addresses, in fact, they receive coordinates from them and display points on the map.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question