From: Farrukh N. <fa...@we...> - 2009-03-21 20:15:25
|
I could not use the mapOptions.setAttribute calls as they were protected not public. Is there a good reason for not making them public or is it just an oversight? Attached is a suggested patch to make the methods public. Please let me know if it makes sense to commit it. Thanks. Curtis Jensen wrote: > zIndexes are how CSS defines what div blocks appear on top of > overlapping div blocks. It's the normal concept of 3D space > coordinates, where the z axis is perpendicular to the screen. The > highest zIndex will be on top. I'm not expert either, this is the > basics of what I know. > > It's isn't difficult to change the default zIndexes of OpenLayers (but > is was difficult for me figure it out). It is very likely that > someone else knows a better way. In my case, I was actually trying to > make the map go lower in the z ordering. You may want yours to go > higher. I used FireBug (Firefox plugin) to find the zIndex of the > objects that were conflicting with my map. It took me a little while > to find where OpenLayers was setting it's z indexes. They have a set > of base indexes, and then build from there. If you over write the > defaults, you can modify the z ordering of OpenLayers objects. > > This is the code I used: > > // OpenLayers default Z bases are 1000, 250, 750, 2000 > private native JSObject getLowerMapZBase() /*-{ > return { BaseLayer: -1000, Overlay: -750, Popup: -500, Control: 0 }; > }-*/; > > MapOptions mapOptions = new MapOptions(); > mapOptions.setAttribute("Z_INDEX_BASE", getLowerMapZBase()); > > > -- Regards, Farrukh Web: http://www.wellfleetsoftware.com |