[OpenLayers-Users] Making popup display above controls?
Glen Stampoultzis
gstamp at gmail.com
Mon Jul 16 23:10:36 EDT 2007
On 17/07/07, Erik Uzureau <erik.uzureau at metacarta.com> wrote:
> In Map.js, you will find:
>
> Z_INDEX_BASE: { BaseLayer: 100, Overlay: 325, Popup: 750, Control: 1000 },
>
> which is how the z index of the different layers, popups, and controls
> are determined.
>
> I *believe* that if you do something like
>
> OpenLayers.Map.Z_INDEX_BASE.Popup = 2000;
>
> that should fix it.
>
> ...sure, you're overwriting a defined constant.... but hey.. that's
> what JS is all about.
>
> Erik
Thanks Eric, this doesn't seem to do it. The issue seems to be that
the controls don't have the same parent div as the popup/layer divs so
the z-order doesn't help. I'm guessing the controls would have to be
specifically placed inside the "OpenLayers_Container" div for this to
work.
Regards,
Glen
More information about the Users
mailing list