MapBox.ActiveTool : behaviour of DrawLine and DrawPolygon

Topics: SharpMap v0.9 / v1.x, WinForms Controls
Dec 18, 2012 at 10:12 AM

Hello,

When using MapBox.ActiveTool = DrawLine or DrawPolygon, I found that

  • when I click the map, and move the mouse before loosing the mousebutton, the map gets panned;
  • after finishing drawing the line or polygon (doubleclick), the cursor is changed to the normal 'arrow' and the active tool is no longer active, but MapBox.ActiveTool is still the same. To draw another line or polygon, I have to set MapBox.ActiveTool again to the same value.

Is this behaviour of DrawLine and DrawPolygon by design or not?

Have a nice day,

Pieter

Coordinator
Dec 19, 2012 at 8:32 AM
lipiau wrote:

Is this behaviour of DrawLine and DrawPolygon by design or not?

Without actually knowing it (not my work), I suppose it is.

I'm fixing a few things to make a 1.0 release, after that we agreed to refactor the UI components in order to make it easier to add/modify new tools.

Hth FObermaier