On Nov 3, 7:30 am, az az <
lefte...@bgnet.bg> wrote:
> Hi all,
>
> I have 2 kmls and I'd like to have ctalayer2 to be on top of ctalayer. I
> have
>
> *var ctaLayer = new
> ctaLayer2.setMap(map);*
> *
> *
> Which works fine in opera browser, always. In other browsers (i.e. chrome,
> IE8, FF) it shows ctalayer on top of ctalayer2. Always. It seems is is not
> random how that layers are stacked.
> Moreover:
>
> *ctaLayer2.setMap(map);
> ctaLayer.setMap(map);*
>
> will result that in all browser (incl. opera) ctalayer is on top of
> ctalayer2.
>
> How can I have ctalayer2 to be on top of ctalayer always and in all
> browsers?
You seem to have the answer in your email. There is an enhancement
request for control over the order of the layers:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=2804
Until then, it seems they always are layered in the order they are
added. So this:
ctaLayer2.setMap(map);
ctaLayer.setMap(map);
Should put ctaLayer on top of ctaLayer2 (with the possible exception
of the first time when rendering time might make a difference).
-- Larry