This might work, and I'm definitely going to try it.
On May 11, 7:17 pm, Mike Williams <[email protected]> wrote:
> If all the stuff that you want to change the opacity for:
> 1. are the same type of overlay
> 2. and there are no other overlays of the same type which you want to
> remain opaque
> 3. and those overlays don't involve partially transparent PNG files
>
> Then you could consider reducing the opacity of the whole pane that
> contains that type of overlay.
>
> map.getPane() returns a htmlElement, and you can then use
> browser-specific style settings to specify its opacity.
>
> For example:
>
> var pane = map.getPane(G_MAP_OVERLAY_LAYER_PANE);
>
> if(typeof(pane.style.filter)=='string'){
> pane.style.filter='alpha(opacity:50)';}
>
> if(typeof(pane.style.KHTMLOpacity)=='string'){
> pane.style.KHTMLOpacity=0.5;}
>
> if(typeof(pane.style.MozOpacity)=='string'){
> pane.style.MozOpacity=0.5;}
>
> if(typeof(pane.style.opacity)=='string'){
> pane.style.opacity=0.5;
>
> }
>
> --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
-~----------~----~----~----~------~----~------~--~---