Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
ASP.NET 1.0/1.1
Google maps con getLocations
martedì 09 settembre 2008 - 17.38
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
secks
Profilo
| Senior Member
442
messaggi | Data Invio:
mar 9 set 2008 - 17:38
Annullo il messaggio in quanto ho scoperto un errore su una parentesi errata.
Ciao a tutti.
Paolo.
Non riesco ad arrivare ad alert(3), qualcuno mi sa dire perchè?
var geo = new GClientGeocoder();
var cerca = "Torino";
function load()
{
if (GBrowserIsCompatible())
{
// Come nel post precedente creiamo la mappa, la centriamo
// e aggiungiamo dei controlli
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(45.068150,7.688050), 10);
//geocoder = new GClientGeocoder();
alert("1");
geo.getLocations(cerca, function(point))
{
alert("3");
if (!point || point.Status.code != 200)
{
alert("Sorry, we were unable to geocode that address")
}
else
{
alert("4");
marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml(cerca);
map.setCenter( point, 13);
}
}
}
}
Ciao a tutti.
Paolo.
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !