> The following links have two different orders (the order by which they
> appear in the orange sidebar is the order in which they were loaded)
http://pmlf.net/gmaps/?ordering=1http://pmlf.net/gmaps/?ordering=2
>
> and here's the javascript file:
http://pmlf.net/gmaps/js/locator_version2.js
>
> In the first link the blue marker should be on top; redlines on top of the
> green overlay; green overlay on top of the yellow overlay.
>
> In the second link the ordering should be: yellow overtop of everything, the
> blue marker underneath that, the green overlay, then the red lines.
>
> Now, when I was preparing this and doing some more testing, this started to
> work... sporadically. At first I though that the problem had vanished, but
> no: merely more Wierdness.
>
> It seems that everytime you reload the page, the layers have a chance to
> order themselves properly, or completely change their orders altogether. The
> is truly odd.
My suspicion is that the order depends on the order the results arrive
back from google's server, as the requests are asynchronous and when
the result comes back depends on network conditions, server load,
complexity of the kml and order requested; you may not be able to
control that very easily.
Toggling a layer seems to move it to the top of the stack. Perhaps
you can request the layers, then hide them all [.setMap(null)] and
show them [setMap(map)] in the order you want them to appear.
-- Larry
>
> Hopefully I am just making a glaring oversight.
>
> FYI Layer descriptions:
> Roads_ST = red lines
> NaturalAreas_SimplifyPolygon = small areas, sorta green
> ConservationBlueprints_sm = large area, sorta yellow
> geo = the single blue pin
>
> Thanks for your time
>
> On Mon, Mar 7, 2011 at 3:35 PM,
geocode...@gmail.com
> <
geocode...@gmail.com>wrote: