How can I select a graphic on mouse click?

282
1
Jump to solution
05-20-2018 08:18 PM
hanheyfon
New Contributor II

There are some graphics in a graphicsOverlay, How can I select a graphic on mouse click?

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

1) Perform an identifyGraphicsOverlay on the GeoView - GeoView Class | ArcGIS for Developers 

2) Connect to the identifyGraphicsOverlayCompleted signal to access the result - MapQuickView Class | ArcGIS for Developers 

3) Get the identified graphics from the result - IdentifyGraphicsOverlayResult Class | ArcGIS for Developers 

4) Call selectGraphics on the GraphicsOverlay with the results from identify GraphicsOverlay Class | ArcGIS for Developers 

View solution in original post

0 Kudos
1 Reply
LucasDanzinger
Esri Frequent Contributor

1) Perform an identifyGraphicsOverlay on the GeoView - GeoView Class | ArcGIS for Developers 

2) Connect to the identifyGraphicsOverlayCompleted signal to access the result - MapQuickView Class | ArcGIS for Developers 

3) Get the identified graphics from the result - IdentifyGraphicsOverlayResult Class | ArcGIS for Developers 

4) Call selectGraphics on the GraphicsOverlay with the results from identify GraphicsOverlay Class | ArcGIS for Developers 

View solution in original post

0 Kudos