Wasn't it Patrick who wrote:
>4).  When I click satellite view on my map, this loads as it should,
>but my overlay is still there blocking the satellite view of the
>hospital.  Is there a way that when users click satellite, that my
>image could dissapear and the satellite should load as per usual.

Listen for "maptypechanged" events and .show() or .hide() the GOverlay
as appropriate.

GEvent.addListener(map, "maptypechanged", function() {
  if (map.getCurrentMapType() == G_NORMAL_MAP) {
    hosp.show()
  } else {
    hosp.hide()
  }
});

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