Thanks for the info Mike, but those satellite labels were just an example.

So it seems clear that you can't adjust the visibility of a layer that
is a part of a MapType.  Design flaw, no flaw, whatever .. I can
accept this.

What I still don't get is how a MapType is notified to be redrawn.  If
you look at Overlay they specifically have initialize() and redraw()
methods.  There are no such methods for a MapType.

I know this is an internals question but I'd still like to
understanding what is gong on.  Clearly the Map notifies the MapType
to redraw itself, but it doesn't appear to be part of the public API.

On Wed, Sep 24, 2008 at 10:43 AM, Mike Williams
<[EMAIL PROTECTED]> wrote:
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to