G
G
Gennady Dorokhin2016-02-10 14:03:34
Yandex
Gennady Dorokhin, 2016-02-10 14:03:34

How to display a certain number of objects on a Yandex map?

How to display a certain number of objects on a Yandex map by the type of site cian.ru?
i.e., when there are more than 300 or 200 objects, the inscription crawls out:
41848769b4e1473c872856f6a82b90de.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Sergeevich, 2016-02-10
@VladimirZhid

I saw your question today in the yandex map Club. Are you going to withdraw from the base? on the server side and limit the selection.
When initializing the map, catch the map.getBounds() view area, send these coordinates to the php script, and already select the markers with the php-shkoy and limit by number. If the database has 2000 addresses, and is limited to only 400, then add fields in the json response from the server. Yandex map API won't help here.
Tomorrow I will do the same (most likely)
It may come in handy: https://yandex.ru/blog/mapsapi/peremeschenie-oblas...
PS without PostGis it will not work

F
forgotten, 2016-02-10
@forgotten

habrahabr.ru/company/yandex/blog/243665

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question