Hello,

I get an error using this code :

GEvent.addListener(marker, "click", function() {
                marker.openInfoWindowHtml('<a href="javascript:void(0)"
onClick="map.closeInfoWindow()">[close]<\/a>');
});
 GEvent.addListener(map, 'infowindowopen', function(){ delMapControl
();  });
 GEvent.addListener(map, 'infowindowclose', function(){ delMapControl
(); addMapControl(); });

function delMapControl()
{
        map.removeControl(OverviewMapControl);
}
function addMapControl()
{
        OverviewMapControl = new GOverviewMapControl();
        map.addControl(OverviewMapControl);
}
When I click on CLOSE infowindow I get js error in main.js.
Firebug shows :

this.show is not a function
[Break on this error] Zo.f=P;ok
(Zo,Ot);Zo.prototype.Kp=P;Zo.pr...;Pt.f.apply(this,arguments);this.show
()}

Everything works fine with v2.148, but not with 2.149, 2.150 and
2.151.

Full js code you can see :  http://www.earthpublisher.com/bug.php

Thanks,
   Igor..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to