Thanks for the response ... but all these hacks you suggest, which really are hacks, don't they seem like an API design flaw?
If you look at the real google maps, they have a hidable "labels" layer on the satellite map type, and those labels are specific only to the satellite type. How can this be done given the available API and not using the hacks you mention. And regarding my last question, how are map types notified to redraw themselves when the view has changed? On Tue, Sep 23, 2008 at 9:21 PM, Mike Williams <[EMAIL PROTECTED]> wrote: > > 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 [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 -~----------~----~----~----~------~----~------~--~---
