Wasn't it Robert J. Carr who wrote: >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.
That's just the way that the Hierarchical Map Type control has been configured to present things. What's actually happening underneath the hood is that "Satellite" activates G_SATELLITE_MAP (a one-layer maptype) and "Show Labels" activates G_HYBRID_MAP (a two layer maptype). If that's what you want to reproduce, then you can build a set of custom maptypes and present them like that with GHierarchicalMapTypeControl() See: http://econym.org.uk/gmap/maptypecontrols.htm And in: http://econym.org.uk/gmap/example_maptypecontrols.htm Click on the GHierarchicalMapTypeControl button and you'll see "Hybrid" and "Mixture" as child maptypes of "Old OS". That's achieved by building three separate map types: custommap1: Old OS single layer custommap2: Old OS plus the top layer from G_HYBRID_MAP custommap3: G_NORMAL_MAP plus the Old OS layer at 0.5 opacity When you use the GHierarchicalMapTypeControl to switch between them, it might look like a layer is being added and hidden, but that's not what the code actually does. -- 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 -~----------~----~----~----~------~----~------~--~---
