On Jul 29, 1:40 pm, William <[email protected]> wrote:
> overlays.get("a").get("mapType").setOptions({opacity:X});
this didn't work ... the ImageMapType isn't a MVCObject. So instead I
made a new ImageMapType when there's a change in opacity. SQLArray
now ensures the MVCArray is up to date by listening to changes in the
"select" and "where" attributes of its MVCObjects.
Using jQuery sliders:
$("#slider_" + layers[i].id).slider({
min: 0,
max: 1,
step: 0.1,
value: 1,
change: sliderHandler(layers[i].id)
});
function sliderHandler(id) {
return function(event, ui) {
overlays.get(id).set("mapType", createImageMapType(id, ui.value));
};
}
http://www.william-map.com/20100729/1/opacity.htm
...
--
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.