tags:

views:

240

answers:

3

I want to add traffic information to my custom map. Currently I'm using a Tile Layer Overlay on my Google Map to display custom map tiles. When I try to add GTrafficOverlay to my map, my custom map tiles display above the traffic information. Is there any way to display the traffic above my GTileLayerOverlay?

(Using the JavaScript api)

A: 

I tried this out and wasn't able to find a solution to the problem. There is nothing in the GTrafficOverlayOptions and I couldn't find anything in the references about the z-order of this stuff. I have suspect that this isn't possible.

Would love to see an alternative answer showing that I am wrong.

Cannonade
+2  A: 

You should be able to do this in V3. Take a look at this sample: http://code.google.com/apis/maps/documentation/v3/overlays.html#ImageMapTypes

Ossama
+1 Awesome. It is about time I got into the v3 stuff. I have been putting it off ;)
Cannonade
Thanks! I'll have to start using the v3 API.
Kyle
A: 

same here, google.maps.trafficlayer() and google.maps.bicyclinglayer() layers display over roadmap, hybrid and terrain but not satellite or any of my own custom tile layers. any solution to this?

thebasa