I have a goal to bring 100 thousand markers on the map in the mobile app.
I should be grateful if you share your experience with me and tell me how to make a smooth display of the markers on the map.the output of all tokens in the requested square
The application sends top_left and bottom_right visible area of the map, the API returns all tokens.
This approach is sad, because the server gives a token not as fast as wanted, and the amount of data transferred is not small:
Time: 1737 ms
Size: 423.41 KB
Mobile app groups the markers are not so fast as we would like. Besides, I would not like to waste resources of the mobile phone on it.
This option was immediately rejected.the output of the grouped markers at the requested square
At the same top_left and bottom_right server returns the grouped markers.
Time: 197 ms
Size: 25.5 KB
Then decided to stay on the server clustering option.
At the moment, the problem is that the app sends the request to the server, even if the map to move the map at 1px. It looks very ugly.
Please look at the record:
I assume that it is necessary to query the data in the square of twice the visible map area and send the request when the visible area is beyond the scope of the square with markers.
Maybe there are some ready libraries that implement this?