openlayer マップで Google ジオコーディング サービスを使用しようとしています。これは問題なく動作するはずです...そうではないでしょうか? 私が使用しているコードは、googles geocode api doc の例とまったく同じです。
function geoCode(){
var adresse = $("observation_location_text").getValue();
var geoCoder = new google.maps.Geocoder();
alert(adresse);
geoCoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
marker.moveTo(results[0].geometry.location);
marker.display(true);
} else {
alert("Geocode was not successful for the following reason: " + status);
}
}); }
何らかの理由で Geocoder オブジェクトを取得できません。アドレス付きのアラートは実行されません。
いくつかのヒントを楽しみにしています