Gracias _polifemo por tu ayuda, voy a ver los del kml, quizas pueda ayudarnos a entender un poco si pongo el codigo del mapa de la otra pagina, donde sí se incluye el mapmaker:
Code:: |
<script type="text/javascript">//<![CDATA[
Var tst44_00exz_0=document.getElementById('googlemap44_00exz_0');
var tstint44_00exz_0;
var map44_00exz_0;
var mySlidemap44_00exz_0;
var overviewmap44_00exz_0;
var overmap44_00exz_0;
var xml244_00exz_0;
var imageovl44_00exz_0;
var directions44_00exz_0;
Var proxy = 'http://..../plugins/content/plugin_googlemap2_proxy.php?';function CancelEvent44_00exz_0(event) {
var e = event;
if (typeof e.preventDefault == 'function') e.preventDefault();
if (typeof e.stopPropagation == 'function') e.stopPropagation();
if (window.event) {
window.event.cancelBubble = true; // for IE
window.event.returnValue = false; // for IE
}
}
Function checkMap44_00exz_0()
{
if (tst44_00exz_0)
if (tst44_00exz_0.offsetWidth != tst44_00exz_0.getAttribute("oldValue"))
{
tst44_00exz_0.setAttribute("oldValue",tst44_00exz_0.offsetWidth);
if (tst44_00exz_0.getAttribute("refreshMap")==0)
if (tst44_00exz_0.offsetWidth > 0) {
clearInterval(tstint44_00exz_0);
getMap44_00exz_0();
tst44_00exz_0.setAttribute("refreshMap", 1);
}
}
}
function getMap44_00exz_0(){
if (tst44_00exz_0.offsetWidth > 0) {
map44_00exz_0 = new GMap2(document.getElementById('googlemap44_00exz_0'));
map44_00exz_0.getContainer().style.overflow='hidden';
map44_00exz_0.addMapType(G_PHYSICAL_MAP);map44_00exz_0.addMapType(G_SATELLITE_3D_MAP);
Var point = new GLatLng( -28.634404, -65.129142);
Var centerpoint = point;map44_00exz_0.setCenter(centerpoint, 15);
map44_00exz_0.addControl(new GLargeMapControl());map44_00exz_0.setMapType(G_MAPMAKER_NORMAL_MAP);
map44_00exz_0.disableContinuousZoom();
map44_00exz_0.disableDoubleClickZoom();
map44_00exz_0.enableScrollWheelZoom();
var marker44_00exz_0 = new GMarker(point);map44_00exz_0.addOverlay(marker44_00exz_0);
marker44_00exz_0.openInfoWindowHtml("MyCity");GEvent.addListener(marker44_00exz_0, 'click', function() {
marker44_00exz_0.openInfoWindowHtml("MyCity");
});
GEvent.addDomListener(tst44_00exz_0, 'DOMMouseScroll', CancelEvent44_00exz_0);
GEvent.addDomListener(tst44_00exz_0, 'mousewheel', CancelEvent44_00exz_0);
}
}
//]]></script>
<script type="text/javascript">//<![CDATA[
if (GBrowserIsCompatible()) {
window.onunload=function(){window.onunload;GUnload()};
tst44_00exz_0.setAttribute("oldValue",0);
tst44_00exz_0.setAttribute("refreshMap",0);
if (window.MooTools==null)
tstint44_00exz_0=setInterval("checkMap44_00exz_0()",500);
else
window.addEvent('domready', function() {
tstint44_00exz_0=setInterval('checkMap44_00exz_0()',500);
});
}
//]]></script>
|
Muchas gracias de nuevo.