Select to view content in your preferred language

Selecting points on a map with the mouse

1024
3
10-09-2017 11:03 AM
RichardRolston
Emerging Contributor

What is the best way to select a group of points on a map?  I would like to use the mouse to draw a box around them similar to Microsoft Paint.  Once selected the points would change to another color to show that they are selected.  It seems that if I hold down the Ctrl+Shift keys, click the mouse and drag it I do get a box but then the map zooms out.  My application is a .Net app using WPF.  I am using the 100.1 version of Esri ArcGIS.

Tags (2)
0 Kudos
3 Replies
dotMorten_esri
Esri Notable Contributor

You can use the MapView.SketchEditor to draw a box, then use the box drawn to perform a spatial query, and select whichever features came back from the query.

RichardRolston
Emerging Contributor

Are there any examples of performing a spatial query using the 100.1 runtime?  I could not find any.

0 Kudos
dotMorten_esri
Esri Notable Contributor

Feature tables has a QueryAsync method where the query parameters takes a geometry for intersection test.

0 Kudos