Hi I have this code below, it works for every country, but not Japan.. does any one knows why? Thanks var map = null; var geocoder = null; function load() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map")); //map.setCenter(new GLatLng(37.4419, -122.1419), 2); geocoder = new GClientGeocoder(); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); } } function showAddress(address) { if (geocoder) { geocoder.getLatLng( address, function(point) { if (!point) { alert(address + " not found"); } else { map.setCenter(point, 2); var marker = new GMarker(point); map.addOverlay(marker); marker.openInfoWindowHtml(address); } } ); } } //]]> </script> </head> <body onload="load()" onunload="GUnload()"> <form action="#" onsubmit="showAddress(this.address.value); return false"> <p> <input type="text" size="60" name="address" value="1600 Amphitheatre Pky, Mountain View, CA" /> <input type="submit" value="Go!" /> </p> <div id="map" style="width: 1200px; height: 700px"></div> </form> </body> </html>
Japan isn't yet supported (geocoder). Probably because of the japanese letters. Don't know if if it would work using "tokyo, japan" in japanase letters.