That solution would effectively mean the user downloaded a new set of
tiles for each KMLLayer rather than a single set for all of them. It
would be nice if there was a better method.

Chad Killingsworth

On Jun 17, 8:53 pm, William <william.g...@gmail.com> wrote:
> On Jun 17, 2:34 am, dwieeb <dwi...@gmail.com> wrote:
>
> > Is there a way I can order these layers via some z-index property of
> > the KmlLayers object?
>
> they are displayed as one tile layer, and to control the display
> order, you need to call setMap() in the correct order.  Because
> setMap() is asynchronous, you need to have code to ensure the next
> layer is added after the previous one is ready.  I found that the
> 'defaultviewport_changed' event can be used for this.  See the
> following example for 4 layers:
>
> http://www.william-map.com/20100617/1/map.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 google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to