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
-~----------~----~----~----~------~----~------~--~---

Reply via email to