To trigger a redraw, change the maptype and change back.

[The API contains code that detects a .setMapType() call that sets the 
same map type, and does nothing. You have to really change to a 
different maptype and then change back.]



You can't .hide() a layer that's part of a MapType.

If the layer is not using transparent PNG files, you can influence its 
.getOpacity() to return zero, then redraw as above.

If the layer is using transparent PNG files, then that trick won't work 
in MSIE, so you'd have to do something like influence its .getTileUrl() 
to return an invisible tile.

By "influence" I mean doing something like having a global variable that 
you can set from your main code, and your tilelayer Methods check that 
variable and behave differently when it changes.

-- 
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 Google-Maps-API@googlegroups.com
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