One possibility is that you could reduce the opacity of the traffic
layer so that the underlying freeway labels show through.

Unfortunately, there's no link from GTrafficOverlay to the GTileLayer,
so you can't access the .getOpacity() of that GTileLayer.

If you don't have any other layer overlays, you can reduce the opacity
of the whole G_MAP_OVERLAY_LAYER_PANE. There's no nice API Method
available for changing its opacity, you have to use CSS styles, and the
problem with that is that opacity styles are not standard, so you'd
normally do it like this:

      var pane = map.getPane(G_MAP_OVERLAY_LAYER_PANE);
      var Opacity = 0.5;

      if(typeof(pane.style.filter)=='string'){
        pane.style.filter='alpha(opacity:'+(Opacity*100)+')';
      }
      if(typeof(pane.style.KHTMLOpacity)=='string'){
        pane.style.KHTMLOpacity=Opacity;
      }
      if(typeof(pane.style.MozOpacity)=='string'){
        pane.style.MozOpacity=Opacity;
      }
      if(typeof(pane.style.opacity)=='string'){
        pane.style.opacity=Opacity;
      }

Unfortunately, that doesn't work in MSIE, because the traffic tiles are
partially transparent PNGs, and MSIE doesn't support partial opacity and
partial transparency at the same time on the same image.

So omit the opacity setting for MSIE (that's the first one above).
Everyone using a decent browser then gets a partially transparent
traffic overlay.

-- 
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