When the document has a lot of data with coordinates to be shown on the map, the application performance is very slow. Like in Google maps, it would be nice to filter all data based on a maximum and minimum latitude & longitude and the zoom level.
So the imput of this functionality would be like:
Center coordinate: 52.0907, 5.1214
Zoom level: 10 (should be mapped to a distance in meters)
And the output would be like :
min_lat …
max_lat …
min_lon …
max_lon…
The output coordinates can be calculated using the reversed Haversine formula.
With this data, the dataset can be filtered and the data & map wil only show the locations within the current position of the map.