You need to log in before you can comment on or make changes to this bug.
moved discussion from bug 276 ------- Additional Comment #2 From Bart van den Eijnden 2004-03-13 06:18 ------- Would it be a lot of work Paul to implement the zoom-out with a rectangle? We get lots of questions from ESRI users wanting this kind of functionality. ------- Additional Comment #3 From Paul Spencer 2004-03-13 07:45 ------- what would it do? Options are: * zoom out from center point of rectangle by fixed factor (unless ZoomFactor widget is in template)? * zoom out from center point with factor calculated from size of rectangle? * some other option? ------- Additional Comment #4 From Bart van den Eijnden 2004-03-13 07:55 ------- The way this works in the ESRI software is your second option Paul: zoom out from center point with factor calculated from size of rectangle? I.e. the smaller the box, the further the map zooms out. --------------------------------- I'm guessing that we will need a minimum and maximum zoom factor to apply ... * minimum could be 1 by default so dragging a box the full extent of the map would cause no zoom out. * maximum could be to zoom out to full extents * the zoom out widget would need an attribute or setting to determine the minimum size (in pixels) of the rectangle ... to make sure that clicks are not interpreted as zoom out maximum ... that could be annoying * need to determine an algorithm for calculating a zoom out factor ... must take into account the user doing dumb things like drawing a very long and skinny box in either horizontal or diagonal ... I don't think this is difficult once we decide how it should work.
In Arcview the width of the box determines the zoom factor. There is no maximum defined for zooming out, i.e. it keeps on zooming out. It zooms out on the center of the map, not on the center of the box. My suggestion would be to have the same behaviour, but perhaps there are some Chameleon specific reasons to not implement it this way.
This should really be another widget. ZoomOut-> should be a simple point zoom. ZoomOutRectangle -> would be a more complex widget. This should be the same for the ZoomIn widget. I realize that this is currently not the case. ZoomIn-> should be a simple point zoom. ZoomInRectangle -> would be a more complex widget.
I don't agree that this should be another widget. In my opinion it is more user-friendly to have it in one map tool. When you look at the major GIS software suites, most of them combine those things in one tool. It should be possible to deduct if a user just clicks in a map or if he/she draws a box, e.g. by specifying a minimum pixel size for a box as Paul suggests. But then again, for instance www.wmsviewer.com also has 2 tools for zoomin and zoomin with a box. So perhaps it's a question of taste, but my taste is for sure having this in one tool.
I agree, with what you said. I just was not clear enough. :) ZoomOut-> Point click ZoomOutRectangle -> Should do both point and rectangle select. My point is that we should give people the option of simple to complex navigation. Some people using chameleon for there website, may not want the complex solution but rather a less robust, less js functionality. On the web I have seen more simple point click navigation, and less complex navigation that chameleon offers. I just have to say, I personally like the esri zoomOut. In fact, I have tried in the past to get it. :)
updated version to 1.99
Changed target to 2.1.
Changed Target Milestone to FUTURE. (Enhancements may be moved from this target to specific "versioned" targets after product design review cycles.)