1

How to display multiple marker nearest to 100 meter in Group Maker and show it on Google Map? Chat icon is a button and it will open chat screen for that user. Is it possible or not? Please help.

Desired Output:

Group Marker with 3 location near to 100 meter

I have implemented the single marker with custom window having button:

Marker with custom window with button

But after trying a lot, I am not able make group marker. If there is any trick to implement it let me know.

Thanks in advance.

Sourabh Sharma
  • 8,222
  • 5
  • 68
  • 78

1 Answers1

1

JavaScript Code:

Assuming you have an array for each group

  var groupMarkers  = [];

for each group you should populate the array with the related marker

   groupMarkers.push(aGroupMembeMarker); 

then you can show or hide the marker for the group iterating over the array with a for loop eg:

   groupMarkers[i].setMap(map);  // for show the markers

or

  groupMarkers[i].setMap(null);  // for hide the markers
Sourabh Sharma
  • 8,222
  • 5
  • 68
  • 78
ScaisEdge
  • 131,976
  • 10
  • 91
  • 107