[OpenLayers-Trac] [OpenLayers] #1187: ZoomBox control: add property mode with values zoomin/zoomout
OpenLayers
trac at openlayers.org
Tue Jan 8 09:33:29 EST 2008
#1187: ZoomBox control: add property mode with values zoomin/zoomout
------------------------------+---------------------------------------------
Reporter: bartvde | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.6 Release
Component: Control | Version: 2.5
Resolution: | Keywords: review
State: Needs More Work |
------------------------------+---------------------------------------------
Comment (by pspencer):
Hi Bart,
in looking over the patch, I have a couple of suggestions that I would
like to put forward.
* the zoom factor is only calculated from the width. I think it should be
calculated from the width or height depending on which calculation yields
a smaller result
* the new bounding box is centered on the current center of the map, I
think it should be centered on the zoom box.
Making these two changes should result in the old extent of the map being
fit (more or less) into the area covered by the zoom box, which is the
most logical interpretation of zooming out by a box that I can think of.
--
Ticket URL: <http://trac.openlayers.org/ticket/1187#comment:7>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list