Thanks everyone. I updated the version (when I took the API code from my older mash-ups I never thought to update it) and I reworked the code using Mike Williams example and everything worked as planned.
Also, thanks for the tips about updating my syntax. I'll work on that asap! Thanks again, Ben Benjamin Spaulding Map and Geographic Information Center Homer Babbidge Library University of Connecticut magic.lib.uconn.edu On Mar 12, 10:33 am, Mike Williams <[email protected]> wrote: > I'm surprised that > map.getMapTypes().length = 0; > ever did cause the existing map types to be removed. > > Instead of > var map = new GMap(document.getElementById("map")); > map.getMapTypes().length = 0; > map.addMapType(custommap1); > map.addMapType(custommap2); > map.addMapType(custommap3); > > It would be safer to write > var map = new GMap(document.getElementById("map"), > {mapTypes:[custommap1,custommap2,custommap3]} > ); > > --http://econym.org.uk/gmap > The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
