MarkerSymbol class final
A base class for marker symbols used to display graphics and features (collectively referred to as geoelements) that have points or multipoint geometry.
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 ArcGISPoint location. If the image is a pushpin, for example, you may want the needle of the pushpin to end at the ArcGISPoint location. In this situation, you need to offset the symbol to make the needle's end coincide with that ArcGISPoint location.
You can control the rotation of the marker symbol using the MarkerSymbol.angle. However, you must also consider whether this rotation is relative to the map or screen (MarkerSymbol.angleAlignment).
- Inheritance
-
- Object
- ArcGISSymbol
- MarkerSymbol
- Implementers
Properties
- angle ↔ double
-
The angle (in degrees) that the marker symbol is rotated by.
getter/setter pair
- angleAlignment ↔ SymbolAngleAlignment
-
Indicates whether the marker symbol is rotated relative to the screen or
map.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- leaderOffsetX ↔ double
-
The callout leader's X offset relative to the marker symbol.
getter/setter pair
- leaderOffsetY ↔ double
-
The callout leader's Y offset relative to the marker symbol.
getter/setter pair
- offsetX ↔ double
-
The offset X of the marker symbol relative to the graphic or feature's
point geometry.
getter/setter pair
- offsetY ↔ double
-
The offset Y of the marker symbol relative to the graphic or feature's
point geometry.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clone(
) → ArcGISSymbol -
Clones the ArcGISSymbol.
inherited
-
createSwatch(
{required double screenScale, Size? size, Color backgroundColor = Colors.transparent}) → Future< ArcGISImage> -
Creates a swatch image using the provided width, height, screen scale, and
optional background color.
inherited
-
createSwatchCancelable(
{required double screenScale, Size? size, Color backgroundColor = Colors.transparent}) → CancelableOperation< ArcGISImage> -
Cancelable version of createSwatch. See that method for more
information.
inherited
-
createSwatchWithGeometry(
{required double screenScale, required Size size, required Geometry geometry, Color backgroundColor = Colors.transparent}) → Future< ArcGISImage> -
Creates a swatch image using the provided geometry, width, height, screen
scale, and optional background color.
inherited
-
createSwatchWithGeometryCancelable(
{required double screenScale, required Size size, required Geometry geometry, Color backgroundColor = Colors.transparent}) → CancelableOperation< ArcGISImage> -
Cancelable version of createSwatchWithGeometry. See that method for more
information.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns a JSON representation of this Object in the data type used by jsonDecode.
inherited
-
toJsonString(
) → String -
Returns a JSON representation of this Object as a String.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited