This sample illustrates how to build a sketch tool that has a number of halos of specific distances that follow the cursor.
The halos are implemented as an embeddable control that is displayed as a SketchTip.
Language: C#
Subject: Editing
Contributor: ArcGIS Pro SDK Team <arcgisprosdk@esri.com>
Organization: Esri, https://www.esri.com
Date: 11/04/2024
ArcGIS Pro: 3.4
Visual Studio: 2022
.NET Target Framework: net8.0-windows
- Sample data for ArcGIS Pro SDK Community Samples can be downloaded from the Releases page.
- Download the Community Sample data (see under the 'Resources' section for downloading sample data)
- Make sure that the Sample data is unzipped in c:\data
- The project used for this sample is 'C:\Data\Interacting with Maps\Interacting with Maps.aprx'
- In Visual Studio click the Build menu.Then select Build Solution.
- Launch the debugger to open ArcGIS Pro.
- ArcGIS Pro will open, select the Interacting with Maps.aprx project
- Select the 'Add-In' tab on the ArcGIS Pro ribbon and activate the 'Sketch Tool with Halos' tool.
- Move your mouse around and notice how the halos follow the cursor. Zoom in and out and notice how the halos adjust to the different map scale.
Home | API Reference | Requirements | Download | Samples