Select to view content in your preferred language

Panning is not available when using an extent selection in a custom widget...

399
1
10-01-2019 09:59 AM
Lake_Country_GIS
Occasional Contributor

I have a custom widget which selects features on the map. The selection method is via drawing a rectangle (    this.drawBox.activate("EXTENT");) 

Is there a way to still allow the user to pan while using this tool without having to close the widget, pan, then re-open the widget?

When I set the selection method via a point (this.drawBox.activate("POINT");) the panning functionality is still enabled.

Thanks in advance,

M

Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

M,

   You need to add a button to your widget to activate and deactivate the draw tool.  The point draw tool is listening for the mouse down and then mouse up event before it adds a point. The extent button is listening for a mouse down then it starts drawing the rectangle. So No you can not pan using the mouse when the tool is activated because thers would be no way to know if you are wanting to pan or draw the rect.