1. At the moment all layers are separate, each with a "visible"
attribute of its own, so we need a composite controller that toggles
the visibility of multiple layers.  The checkbox is the physical
control but there needs to be something that sits between the clicks
on that control and the full list of layers. The relationship between
layers would need to be specified in the data.  I imagine if you want
to view layer B when layer A is visible, and if parts of B are above A
and parts below A, then A needs to become two layers C and D, to be
displayed in order C,B,D.  The user interface would still display a
single layer control for A, and the user would be able to turn it off
independently of layer B.   I guess the easiest way to make progress
is to create a simple example and see what data representation works
best.

2.  The slider would be the control, and the ImageMapType.opacity is
the property holding the state.  I am not sure if ImageMapType is a
MVCObject, and whether changes to opacity are automatically reflected
in the display.  To set the opacity of layer "a" to X, it would be
something like

overlays.get("a").get("mapType").setOptions({opacity:X});

...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to