Zoom out tool - why do you have to draw a box?

707
4
11-10-2010 11:24 PM
JamesB
by
New Contributor
http://help.arcgis.com/EN/webapi/javascript/arcgis/demos/toolbar/toolbar_navigation.html

Zoom out tool - why do you have to draw a box?

I can see it's useful to be able to control how far you zoom out by drawing the box.

However when you click, nothing happens. This is counter to every other zoom out tool out there and users will be surprised by this. Drawing a box for zoom out is not intuitive.

Why can't it be done so a click zooms out by a pre-set amount, yet drawing a box allows the user to control how far you zoom out? Then you have the best of both.
0 Kudos
4 Replies
AxelSchaefer
New Contributor II
The default map navigation modes are explained here: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/intro_navigation.htm. You can change the map events and bind them to other map navigation methods.

Personally I don't like the zoomin-by-point / zoom-out-by-point navigation. Dragging a rectangle is faster and convenient to the usage in desktop applications.
0 Kudos
JamesB
by
New Contributor
Do you know if anyone's actually implemented a single click to zoom out handler? Would be great to add this in.

It's not a matter of personal favourites, its user expectations. I haven't seen any other software package where a single click in "Zoom Out" mode does nothing. The users will expect it to do something.

Thanks for your help 🙂
0 Kudos
AxelSchaefer
New Contributor II
Events: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_events.htm

function init() {
...
var mapOnClick_connect = dojo.connect(map, "onClick", mapOnClick);
...
}

function mapOnClick() {
  var extent = map.extent.expand(2);
  map.setExtent(extent);
}
0 Kudos
JamesB
by
New Contributor
Cool, thanks
0 Kudos