特定の LatLng が Google マップのサークル内にあるかどうかを確認する必要があります (これらのいずれか: http://code.google.com/apis/maps/documentation/javascript/overlays.html#Circles )。どうすればこれを回避できますか?円を作成するための私のマークアップは次のとおりです。
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
circlemarker = new google.maps.Marker({
map: map,
position: results[0].geometry.location
});
THEradius = parseFloat(THEradius);
var populationOptions = {
strokeColor: "#BDAEBB",
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: "#BDAEBB",
fillOpacity: 0.5,
map: map,
center: results[0].geometry.location,
radius: THEradius
};
cityCircle = new google.maps.Circle(populationOptions);
map.fitBounds(cityCircle.getBounds());
}
});
半径だけを使用できますか?