GPS Visualizer does it by throwing an enormous white DIV (3x the size
of the map) over the entire map, by appending it to the
G_MAP_MAP_PANE. The opacity of that white screen is controlled with
CSS directives. For example:
var screen_opacity = 0.7;
theScreen.style.filter = "alpha(opacity="+screen_opacity*100+")";
theScreen.style.KhtmlOpacity = screen_opacity;
theScreen.style.MozOpacity = screen_opacity;
Then, every time the map is moved, the screen is repositioned to make
sure it still covers everything.
Adam
On Dec 9, 4:41 am, Juan <[EMAIL PROTECTED]> wrote:
> Sorry, i had a mistake pasting the url:
>
> http://www.gpsvisualizer.com/display/1228823543-05723-194.140.16.52.html
>
> this is the correct url
>
> Juan ha escrito:
>
> > Thanks.
>
> > But i want to change it dinamically, after have loaded the map and the
> > markers.
>
> > Something like this:
>
> >http://groups.google.com/group/Google-Maps-API/browse_thread/thread/3...
>
> > Mike Williams ha escrito:
> > > You can change the opacity of a tile layer like this:
> > > http://econym.org.uk/gmap/example_tone.htm
>
> > > Note: Whatever is underneath the map will show through. In this example
> > > the div has a plain backgroundColor = "#660000".
>
> > > Note: MSIE doesn't support partial transparency and partial opacity at
> > > the same time. So if you have a tile layer with partially transparent
> > > tiles (like the upper layer of G_HYBRID_MAP) the opacity setting is
> > > ignored in MSIE. Compare the above example in MSIE vs any other browser
> > > and select Hybrid map type.
>
> > > --
> > >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
-~----------~----~----~----~------~----~------~--~---