Ver Mensaje Individual
  #7 (permalink)  
Antiguo 21/11/2006, 05:42
Avatar de yesik
yesik
 
Fecha de Ingreso: octubre-2004
Ubicación: Orense
Mensajes: 292
Antigüedad: 20 años, 5 meses
Puntos: 1
pues sería esto.. son funciones de googlemaps, todo funciona hasta q intento leer el xml

function loadbusqueda(address,xml) {
alert(address); //recibe ok
alert(xml); //recibe ok
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
map.addControl(new GOverviewMapControl());
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
geocoder = new GClientGeocoder();
if (geocoder) {
geocoder.getLatLng(address,function(point) { map.setCenter(point, 13);});
}

var markers = xml.getElementsByTagName("casa");
alert(markers.length);

}// si es compatible
}//fin funcion
__________________
Inmuebles de Galicia:: www.inmueblevirtual.net
Compartir piso Galicia:: www.inmueblevirtual.net/foro