On May 4, 5:13 am, Ed Boes <[email protected]> wrote:
> What is the easiest way to set the display order for KML files?
>

I don't think there's any easy way to set the display order for KML
files that have been rendered by GGeoXml as tiles on the Google
servers.

This is because the server will return image tiles with the KML
displayed in order of a unique id generated by the server.

using Firebug you can see that the id for

http://niraengineers.com/map/water_lines.kmz

is "cu2Bjta2UPKbrStujeq8vOsgJhQQ"

and the id for

http://niraengineers.com/map/ftma_valves.kmz

is "cu2Bjta2UPKbrStsjGiIOBx4zeJxQSA"

because "cu2Bjta2UPKbrStujeq8vOsgJhQQ" is greater than
"cu2Bjta2UPKbrStsjGiIOBx4zeJxQSA" (ASCII ordering) the pipes are
always displayed after the valves.

a hack to get around this is to put the files in different directories
on your server.  This makes GGeoXml create the unique ids in a more
predictable order.

Valves under Pipes:
http://www.william-map.com/20100504/2/map1.htm

Pipes under Valves:
http://www.william-map.com/20100504/2/map2.htm

...

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