Try reading about the wonders of javascript function closure/scope ;) 2008/11/30 JP <[EMAIL PROTECTED]>
> > Thanks a lot, it was so simple is not even funny =D > > Your tutorials rock da house... They have been very.very helpfful to > me... I really appreciate all the cool things you have cover there... > > I am using a couple of the geicons you described here > http://econym.googlepages.com/geicons.htm but there are not showing in > the map but get displayed in the legend... kind off weird... > > https://www.afuego.com > > > > On Nov 30, 2:30 am, Mike Williams <[EMAIL PROTECTED]> wrote: > > There would seem to be a problem with your Firefox and Safari > > configurations. My Firefox provides a more meaningful error message than > > MSIE (as usual): "map is nor defined". > > > > [In this case the MSIE error message comes from the fact that it has the > > non-standard behaviour of creating a global Javascript variable "map" > > that references your <div id="map"> Element. Since you don't overwrite > > that with your own global "map" variable, MSIE chokes on the fact that > > HTML Elements have no .addOverlay() Method. In standards-compliant > > browsers no global "map" variable exists.] > > > > Try: > > > > var map; > > > > function load() { > > ... > > map = new GMap2(document.getElementById("map")); > > > > --http://econym.org.uk/gmap > > The Blackpool Community Church Javascript Team > > > -- Bjorn Brala ---------------- GeoStart.nl- Google maps - Swis Webdesign --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
