Open GoogleCodeExporter opened 9 years ago
Needs to be rewritten using the new Google Maps V3 geocoding API.
function init() {
...
geocoder = new google.maps.Geocoder();
}
function flyTo(geocodeLocation) {
if (geocodeLocation.trim().length == 0) {
alert("You must enter an address");
return;
}
geocoder.geocode( { 'address': geocodeLocation}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var location = results[0].geometry.location;
var lookAt = ge.createLookAt('');
...
}
});
}
<form action="#" onsubmit="flyTo(this.address.value); return false">
<p>
<input type="text" size="60" name="address" value="1600 Amphitheatre Pky, Mountain View, CA" />
<input type="submit" value="Fly Here!" />
...
</form>
Original comment by gjmath...@gmail.com
on 14 Feb 2014 at 10:09
Original issue reported on code.google.com by
gjmath...@gmail.com
on 12 Feb 2014 at 9:21