Display an alert message when a graphic is clicked.
A user may wish to select a graphic on a map to view relevant information about it.
Select a graphic to identify it. You will see an alert message displayed.
- Create a
GraphicsOverlay
and add it to theMapView
. - Add a
Graphic
along with aSimpleFillSymbol
to the graphics overlay. - Create a
Point
from the location tapped on the map view by the user. - Identify the graphic on the map view with
IdentifyGraphicsOverlayAsync(graphicsOverlay, pointClicked, tolerance, max results)
.
- Graphic
- GraphicsOverlay
- MapView
graphics, identify