I apologize in advance - the code is running on an intranet, and I can't copy/paste.
I have a dockpane with a button mapped to a rectangle tool. The user uses the tool to drag a rectangle on the map. When the user completes the rectangle via mouse-up, the rectangle disappears from the map.
Do I need to create a graphic from the geometry created by the tool and add it to the map's graphic layer?
In my map rectangle tool class, I initialize with:
- IsSketchTool = true;
- CompleteSketchOnMouseUp = true;
- SketchType = SketchGeometryType.Rectangle;
- sketchOutputMode = SketchOutputMode.Map;
The rectangle extent parameters are then used to open a web page via another button on the dockpane.
Thanks!