Show / Hide Table of Contents

Class MarkerSymbol

A base class for marker symbols used to display graphics and features (collectively referred to as geoelements) that have points or multipoint geometry.

Inheritance
System.Object
Symbol
MarkerSymbol
PictureMarkerSymbol
SimpleMarkerSymbol
TextSymbol
Implements
System.ComponentModel.INotifyPropertyChanged
Symbol.PropertyChanged
Symbol.FromJson(String)
Symbol.ToJson()
Symbol.Clone()
Symbol.CreateSwatchAsync(Double)
Symbol.CreateSwatchAsync(Color, Double)
Symbol.CreateSwatchAsync(Int32, Int32, Single, Color, Geometry)
Symbol.CreateSwatchAsync(Int32, Int32, Double, Color)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Symbology
Assembly: Esri.ArcGISRuntime.dll
Syntax
public abstract class MarkerSymbol : Symbol, INotifyPropertyChanged
Remarks

Symbols describe how graphics and features look on a map. Different symbols are used with different geometry types. Marker symbols are used to display graphics and features that are based on point or multipoint geometries such as cities, a route destination, or fire hydrants. Subclasses of this class represent specific types of marker symbols such as SimpleMarkerSymbol, PictureMarkerSymbol, or TextSymbol.

You can specify the following two types of offsets:

  • Offset the visible symbol from the symbol's point geometry.
  • Offset a callout's leader line from the symbol's point geometry.

For each offset, you can specify an x-offset and a y-offset in device independent pixels (DIPs) using a Cartesian coordinate system. For example, if you specify a callout x-offset of -5.0, the callout's leader line will offset to the left along the x-axis by five points.

By default, the center of a PictureMarkerSymbol image is placed at the MapPoint location. If the image is a pushpin, for example, you may want the needle of the pushpin to end at the MapPoint location. In this situation, you need to offset the symbol to make the needle's end coincide with that MapPoint location.

You can control the rotation of the marker symbol using the Angle. However, you must also consider whether this rotation is relative to the map or screen (AngleAlignment).

Properties

Name Description
Angle

Gets or sets the angle (in degrees) that the marker symbol is rotated by.

AngleAlignment

Gets or sets the indicates whether the marker symbol is rotated relative to the screen or map.

LeaderOffsetX

Gets or sets the callout leader's X offset relative to the marker symbol.

LeaderOffsetY

Gets or sets the callout leader's Y offset relative to the marker symbol.

OffsetX

Gets or sets the offset X of the marker symbol relative to the graphic or feature's point geometry.

OffsetY

Gets or sets the offset Y of the marker symbol relative to the graphic or feature's point geometry.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

Relevant samples

Offline routing: Solve a route on-the-fly using offline data.
Route around barriers: Find a route that reaches all stops without crossing any barriers.
In This Article
Back to top Copyright © 2022 Esri.