[OpenLayers-Users] styling the controls

Andreas Hocevar ahocevar at opengeo.org
Sat Jan 14 17:45:56 EST 2012


Hi,

Use OpenLayers.Control.ZoomPanel and OpenLayers.Control.PanPanel
instead of OpenLayers.Control.PanZoom.

Andreas.

On Thu, Dec 29, 2011 at 9:34 PM, Puneet Kishor <punk.kish at gmail.com> wrote:
> I am trying to make the zoom in and out buttons bigger, however, seems like their styles are set programmatically rather than via CSS. My DOM inspector shows
>
> <div id="OpenLayers.Control.PanZoom_3_zoomin" style="position: absolute; left: 13px; top: 63px; width: 18px; height: 18px; cursor: pointer;">
> <img id="OpenLayers.Control.PanZoom_3_zoomin_innerImage" style="position: relative; width: 18px; height: 18px;" src="/lib/OpenLayers-copy/img/zoom-plus-mini.png">
> </div>
>
>
> How can I change the above to be larger? I am assuming the OpenLayers.Control.PanZoom_3_zoomin id is generated programmatically and can't be relied upon.
>
> Many thanks,
>
> --
> Puneet Kishor_______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list