Googleジオメトリライブラリのを使用しようとしていますがcontainsLocation
、機能させることができません...
var point = new google.maps.LatLng(51.331, 3.538);
var poly = [
new google.maps.LatLng(51.401818509550615, 3.547626782103622),
new google.maps.LatLng(51.397574277049365, 3.563607598960424),
new google.maps.LatLng(51.398540111384975, 3.567880788749134),
... // it is a lot bigger
];
if(google.maps.geometry.poly.containsLocation(point, poly) == true) {
alert("yes");
}
Javascriptコンソールはエラーを出しますが、それはGoogleのlibの関数を指しています。したがって、問題はこの関数のどこかにあるはずだと思います。