I am displaying markers on map by getting latitude and longitude , but the problem is in data some array of objects are having same latitude and longitude values, so the markers are overlapping above which are having same latitude and longitude, now i want to display all markers even if latitude and longitude are same values. Is there any possibility to add one feet to latitude and longitude which are having duplicated values or any possibilities to display all markers .
I am adding the stack blitz URL for reference :- https://stackblitz.com/edit/angular-draw-polygon-google-maps-gwxjlo
Please help me in these issue.
Thanks in advance
According to the docs, there is a technique called Marker Clustering, provided by the GoogleMaps SDK. https://developers.google.com/maps/documentation/javascript/marker-clustering
It looks quite straight forward and has the advantage that this method even works on different zoom levels and when there are a large number of markers in the same region.