Picture marker symbol
Use pictures for markers.
When marking geoelements on a map, using custom, unique symbols can be helpful for highlighting and differentiating between locations. For example, a tourism office may use pictures of landmarks as symbols on an online map or app, to help prospective visitors to orient themselves more easily around a city.
When launched, this sample displays a map with picture marker symbols. Pan and zoom to explore the map.
- Create a
PictureMarkerSymbolusing the URI to an online or local image or a JavaFX Image (platform dependent).
- Create a
Graphicand set its symbol to the picture marker symbol.
The picture marker symbols in this sample are all constructed from different types of resources:
- Campsite symbol constructed from a URL
- Blue pin with a star stored in the resource folder that comes with the application
graphics, marker, picture, symbol, visualization
<UserControl x:Class="ArcGISRuntime.WPF.Samples.RenderPictureMarkers.RenderPictureMarkers" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"> <Grid> <esri:MapView x:Name="MyMapView" /> </Grid> </UserControl>