Answer the question
In order to leave comments, you need to log in
What is the best way to manage 20 thousand markers on the map?
There are 20 thousand markers on the map.
I don't like the approach when, with bounds_changed , we check the occurrence of markers in the area and take only them - this is a long request to the server and calculation by the database.
On the client, looping 20 thousand and checking for entry into the area is also not good. In addition, the map will flicker with each shift.
I output all markers via markerclustereplus . It seems to be doing fine so far, but I don’t know what will happen next, and is it right?
Answer the question
In order to leave comments, you need to log in
With 20,000 markers, there may be options.
When there are at least 200,000 markers - no options for a solution with bounds_changed + additional logic on the server when there are obviously too many markers in the output (zoom per country conditionally)
On the client, looping 20 thousand and checking for entry into the area is also not good. In addition, the map will flicker with each shift.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question