Hi, Thanks for the reply. > I get a "not implemented" error on this line: > window.onload=openIWindow(); > > I think you want > window.onload=openIWindow;
I see that error now that I try it with IE7 (though it still runs, interestingly). Removing the brackets after openIWindow prevents it from working anywhere though. I've also tried moving the onLoad call to the body tag, and by using an addLoadEvent function I found <a href="http://www.webreference.com/programming/javascript/ onloads/">here</a>. Neither of these methods seem to work, even for the initial pass which at least in my browser is giving me the open InfoWindow. > You should set up the listener before you call the exml.parse() > method, otherwise you might miss the "parsed" event. Currenly you > set up your map, then when your page fires its onload event you > configure the listener. You should do both in the onload function. That sounds promising, but so far my hack attempts at this aren't netting good results. If I put the exml.parse() method inside the addListener function the KML file doesn't load (looking for a local variable??). Have tried the following, but again markers not loading (actually, the addListener is looking for the parsed event, so I guess that might make sense). Any suggestions for fixing this up? <pre> var exml; exml = new EGeoXml("exml", mmap, "http://www.goodwill.ab.ca/site/wp- content/goodwill.xml", {nozoom:true,titlestyle:'style = "text- align:left;padding:0;font-size:13px;"',descstyle:'style = "margin: 0;"',iwoptions:{maxHeight:200,autoScroll:true},directions:true}); //]]> var nMarkers = 0; function openIWindow () { GEvent.addListener(exml, "parsed", function(){ exml.parse(); nMarkers = exml.gmarkers.length; var point = new GLatLng(<?php echo $lat;?>,<?php echo $lon;?>); for (var i=0; i<nMarkers; i++) { if (exml.gmarkers[i].getLatLng().equals(point)) { GEvent.trigger(exml.gmarkers[i],"click"); } } }); } </pre> -- 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.
