How to handle overlapping markers? #773
Unanswered
ineeds-dev
asked this question in
Q&A
Replies: 1 comment
-
|
Best approaches for overlapping markers:
const oms = new OverlappingMarkerSpiderfier(map);
oms.addMarker(marker);
oms.addListener('click', marker => { /* handle */ });
const markerCluster = new markerClustererPlus.MarkerClusterer({
map: map,
markers: yourMarkers
});
<AdvancedMarker position={pos} zIndex={someValue} />4 Info window alone - If you just need one popup visible, use: const infoWindow = new google.maps.InfoWindow();
marker.addListener('click', () => {
infoWindow.close(); // close previous
infoWindow.open(map, marker);
});For react-google-maps: OverlappingMarkerSpiderfier integrates cleanly since you get the raw |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I know about OverlappingMarkerSpiderfier, just want to know if someone has an example using it with advancedmarkers or another solution to handle this use case
Beta Was this translation helpful? Give feedback.
All reactions