I have a map that already contains markers. I will like to be able to specific a circle radius around a specified location and select all markers that resides within.
The code to added the Circle is done. I need to know how to get the markers.
Can anyone help…
Assuming you have the markers in an array then you can calculate the distance from each of marker to the center of your circle using the computeDistanceBetween function, and add to a second array only those whose
distance <= radius.