Look at this:
if(google.maps.geometry.poly.containsLocation(new google.maps.LatLng(arrayLatitude[counter1], arrayLongitude[counter1]), polygon))
{
}
This is the condition to indicates that a point is inside the polygon or no. I'm looking for something similar but for circle or rectangle.
something like this:
if(google.maps.geometry.circle.containsLocation(new google.maps.LatLng(arrayLatitude[counter1], arrayLongitude[counter1]), circle)
{
}
Or for rectangle:
if(google.maps.geometry.rectangle.containsLocation(new google.maps.LatLng(arrayLatitude[counter1], arrayLongitude[counter1]), rectangle)
{
}
Both Circle and Rectangle have method
Try call method getBounds() witch return google.maps.LatLngBounds item. It has method
something like
Hope it is what you need
Important notice: If you don't set getSouthWest and getNorth... it always return false: Google Maps v3 map.getBounds().containsLatLng is not a function