[OpenLayers-Users] olControlPanPanel not responding to a bottom property

Christer Nordbø christer at gdm.no
Thu Apr 4 01:38:10 PDT 2013


Im my application it gives me this class on the zoom controller:


<div id="OpenLayers.Control.PanZoomBar_4" style="position: absolute; left: 4px; bottom: 0px; z-index: 1003;" class="olControlPanZoomBar olControlNoSelect" unselectable="on">


So the name could be wrong? And also, i don't know why as i haven't investigated on the issue. But there seems to be some sort of hidden area below the map. So i had to set the bottom offset to something like 200px before it appeared on the map.

Med vennlig hilsen / Kind regards,

Christer Nordbø

On 03.04.13 18:17, "bmahf" <bmahf at hotmail.com<mailto:bmahf at hotmail.com>> wrote:

I am trying to move my PanPanel and ZoomPanel controls from top left to
bottom left.  I tried adding my own css as follows:

.olControlPanPanel
{
    bottom: 0px!important;
}

.olControlZoomPanel
{
    bottom: 0px!important;
}

But nothing changed.  Turns out I'm facing two issues:

1) Changes in my own css file don't seem to have an effect on either of
them.
2) If I, just for testing purposes, make the same change in styles.css, I
see the difference.   The only problem is, the bottom property still does
not have the desired effect.  It seems only to reposition the pan panel to
the bottom of the zoom panel, rather than the window, and the zoom panel
doesn't move at all.

I'm not sure what's up why my css file doesn't at least show these same
results.  And I am trying to figure out why the bottom option doesn't work
when it works well with say olControlAttribution.

Ideas would help.



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/olControlPanPanel-not-responding-to-a-bottom-property-tp5044353.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org<mailto:Users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/openlayers-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130404/93d0feef/attachment.html>


More information about the Users mailing list