Hola compañeros, he colocado un callejero proporcionado por Google Maps, todo funciona genial pero me salta un error:
Código:
Detalles de error de página web
Agente de usuario: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; CPDTDF; InfoPath.3; .NET4.0C)
Fecha: Fri, 5 Nov 2010 16:13:56 UTC
Mensaje: Se requiere un objeto
Línea: 692
Carácter: 3
Código: 0
URI: http://www.google.com/uds/solutions/mapsearch/gsmapsearch.js?mode=new
El código que tengo en el header.php es:
Código:
<!-- Maps Api, Ajax Search Api and Stylesheet
// Note: If you are already using the Maps API then do not include it again
// If you are already using the AJAX Search API, then do not include it
// or its stylesheet again
//
// The Key Embedded in the following script tags is designed to work with
// the following site:
// http://www.yalicante.com
-->
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAx1V9Fushgi_ZMFwBKrtT4xSOpKCP-Q70Mt51sd7Hi2Y1RgR6KBQaNEmT7waN2DQbpounXBNfQDwfPQ"
type="text/javascript"></script>
<script src="http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-msw&key=ABQIAAAAx1V9Fushgi_ZMFwBKrtT4xSOpKCP-Q70Mt51sd7Hi2Y1RgR6KBQaNEmT7waN2DQbpounXBNfQDwfPQ"
type="text/javascript"></script>
<style type="text/css">
@import url("http://www.google.com/uds/css/gsearch.css");
</style>
<!-- Map Search Control and Stylesheet -->
<script type="text/javascript">
window._uds_msw_donotrepair = true;
</script>
<script src="http://www.google.com/uds/solutions/mapsearch/gsmapsearch.js?mode=new"
type="text/javascript"></script>
<style type="text/css">
@import url("http://www.google.com/uds/solutions/mapsearch/gsmapsearch.css");
</style>
<style type="text/css">
.gsmsc-mapDiv {
height : 400px;
}
.gsmsc-idleMapDiv {
height : 400px;
}
#mapsearch {
width : 430px;
margin: 10px;
padding: 4px;
}
</style>
<script type="text/javascript">
function LoadMapSearchControl() {
var options = {
zoomControl : GSmapSearchControl.ZOOM_CONTROL_ENABLE_ALL,
title : "Alicante",
url : "http://www.yalicante.com",
idleMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM+1,
activeMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM+1
}
new GSmapSearchControl(
document.getElementById("mapsearch"),
"Alicante",
options
);
}
// arrange for this function to be called during body.onload
// event processing
GSearch.setOnLoadCallback(LoadMapSearchControl);
</script>
<!-- ++End Map Search Control Wizard Generated Code++ -->
Y en la página de WordPress (para que se muestre el callejero):
Código:
<div id="mapsearch"><span style="color: #676767; font-size: 11px; margin: 10px; padding: 4px;">Loading...</span></div>
¿Sabéis a qué puede deberse el error? He seguido las instrucciones de Google al pie de la letra...
MUCHÍSIMAS GRACIAS