[OpenLayers-Trac] [OpenLayers] #2932: PanZoom Control: define
button dimensions and positions entirely in CSS
OpenLayers
trac-20090302 at openlayers.org
Mon Nov 15 08:22:47 EST 2010
#2932: PanZoom Control: define button dimensions and positions entirely in CSS
------------------------+---------------------------------------------------
Reporter: fbuchinger | Owner:
Type: feature | Status: new
Priority: major | Milestone: 2.11 Release
Component: general | Version: 2.10
Keywords: | State:
------------------------+---------------------------------------------------
Regarding ticket #2799, I recommend a different approach: the positioning,
dimensions and graphics of the buttons shouldn't be handled in
!Control/PanZoom.js, but entirely by applying css rule in the theme.
My rationale for this: even if we extent !PanZoom's parameters to accept
arbitrary button graphics and dimensions (as suggested by #2799), we still
cannot modify the shape/button layout of the control itself.
To give a more concrete example: even with #2799 implemented, one can't
create a !PanZoom control like the attached one, because the button layout
is still hard-coded in the control.
Instead, the layout should be defined in CSS using selector structures
like `.olControlRPIPanZoom .olButtonNorth`, `.olControlRPIPanZoom
.olButtonZoomIn` etc.
--
Ticket URL: <http://trac.openlayers.org/ticket/2932>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list