Opened 14 years ago

Closed 14 years ago

#209 closed defect (fixed)

QueryOnClick - multipleKey 'shiftKey' and MapPanel 'navigation' incompatible

Reported by: adube Owned by:
Priority: minor Milestone:
Component: widgets Version:
Keywords: Cc:

Description

issue

Currently, in the MapPanel widget, the map object is created with a Navigation control that uses the shift key to draw boxes to zoom. When trying to do a multiple selection with the QueryOnClick using the shift key, it zooms instead.

That control is not the one in the toolbar. It's an other one that was added in order to be able to pan/zoom/navigate while using other tools. For instance, with the Map widget, you can't navigate the map at all while using other tools.

solution

This is a backward incompatibility solution : disable the box zooming in the default navigation control of the map inside the MapPanel widget.

Are there any objections ?

Change History (3)

comment:1 by adube, 14 years ago

A 'warning' was added in documentation of the QueryOnClick widget about this. See r1020. You can use the 'ctrlKey' instead to bypass the issue.

comment:2 by adube, 14 years ago

Priority: majorminor

comment:3 by adube, 14 years ago

Resolution: fixed
Status: newclosed

r1046.

The default Navigation control which is always active no longer has its 'box' handler activated by default to do box zooms with the shift key. This solves many handler incompatibility issues.

This is a small backward incompatibility which will solves more things than causing new issues. Plus, if we want the old behavior back, there's a new option for that in the MapPanel widget : zoomBoxNavigation.

Fixed.

Note: See TracTickets for help on using tickets.