OpenLayers OpenLayers

Ticket #1635 (closed feature: fixed)

Opened 2 years ago

Last modified 2 years ago

0 Z-Index for Map Div

Reported by: euzuro Assigned to: euzuro
Priority: critical Milestone: 2.7 Release
Component: Map Version: 2.6
Keywords: Cc:
State: Complete

Description

FF2 and FF3 deal with zindexing differently.

FF2: no specified zindex -> zindex is treated as 0 FF3: no specified zindex -> go directly to all childrens' zindexes

for example, a document with DOM like this:

 - elem1: zindex=5
 - elem2: zindex=30
 - mapDiv: zindex=none
    - layer1: zindex=10
    - control1: zindex=100

FF2 would order the elements (from top to bottom) as such:

elem2 (30)
elem1 (5)
mapDiv-layer1 (0-10)
mapDiv-control1 (0-100)

...but FF3 would order the elements (again, top to bottom) as:

mapDiv-control1 (0-100)
elem2 (30)
mapDiv-layer1 (0-10)
elem1 (5)

all of this is causing people grief in FF3 because most people do not set the zIndex on the map div, and therefore their layer, control, popup, etc are getting scattered in the z-plane.

The solution to this, then, is to assign a default zIndex to the main map div.

Attachments

zindex.patch (289 bytes) - added by euzuro on 07/29/08 09:59:35.
mandate a zero z-index

Change History

07/28/08 17:26:27 changed by euzuro

  • owner set to euzuro.
  • status changed from new to assigned.

the fix here is to add

    z-index: 0;

to the default css definition for div.olMap in theme/style.css

That, however, does not exist yet, until #1179 is approved.

07/29/08 09:59:35 changed by euzuro

  • attachment zindex.patch added.

mandate a zero z-index

07/29/08 09:59:52 changed by euzuro

  • state changed from Needs More Work to Review.

07/29/08 10:26:02 changed by crschmidt

  • state changed from Review to Commit.

Looks good. Hit it.

07/29/08 18:56:32 changed by euzuro

can anyone test this patch on

Safari 3.1.2 on the Mac

?? s.lime said that this patch maybe wasn't fixing the issue there.

07/29/08 19:10:12 changed by crschmidt

Looking at http://www.dnr.state.mn.us/maps/compass.html , seems like it works fine to me in Safari: If he can describe his problem more thoroughly, that might help us out...

In any case, this change can't *hurt*, and might help: if he can offer comments on what he did instead of this so that we can fix it, we can look into it.

07/29/08 19:15:34 changed by euzuro

  • status changed from assigned to closed.
  • state changed from Commit to Complete.
  • resolution set to fixed.

(In [7594]) make the zIndex of the map div 0 (unless otherwise specified by user). this fixes zindexing issues in FF3. (Closes #1635)