".substr($q, $pos+1)."
".__('Approximate placement',googlemaps)."
".$q."
".__('Approximate placement',googlemaps)."
".$q."
"; $q=""; } } } else $q=""; if($googlemaps_more==1 || $googlemaps_more=="") include ('more.php'); echo ' var map_'.$count.', geocoder=null, geoXml=null, latlng; latlng="'.$latlng.'", q="'.$q.'"; if (GBrowserIsCompatible()) { map_'.$count.' = new GMap2(document.getElementById("Googlemap_'.$count.'")); map_'.$count.'.clearOverlays(); map_'.$count.'.enableDoubleClickZoom(); map_'.$count.'.enableContinuousZoom(); map_'.$count.'.setMapType('.$setMapType.'); map_'.$count.'.setUIToDefault(); '; if($googlemaps_more==1 || $googlemaps_more=="") echo 'map_'.$count.'.addControl(new MoreControl_'.$count.'());'; echo ' if(q!="") { adresse="'.$q.'"; geocoder = new GClientGeocoder(); geocoder.getLocations(adresse, function(reponse) { if (!reponse || reponse.Status.code != 200) { ErrorMsg= "'.__('Impossible To GeoCode:',googlemaps).'\n"; ErrorMsg+="'.__('Error Code: ',googlemaps).'"+reponse.Status.code+"\n"; ErrorMsg+="'.__('Info: ',googlemaps).'http://www.google.com/apis/maps/documentation/reference.html#GGeoStatusCode"; //alert(ErrorMsg); if(latlng!="") { var coord=new GLatLng('.$latlng.'); map_'.$count.'.setCenter(coord, '.$zoom.'); var marker = new GMarker(coord); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml("'.$LibAdresse.'"); }); map_'.$count.'.addOverlay(marker); marker.openInfoWindowHtml("'.$LibAdresse.'"); } } else { place = reponse.Placemark[0]; var Adresse = place.address; var Glatitude = place.Point.coordinates[1]; var Glongitude = place.Point.coordinates[0]; InfoArray=Adresse.split(", "); Adresse="