SimpleMarkerSymbol

class SimpleMarkerSymbol : MarkerSymbol

Used to draw point or multipoint features on a layer. Simple marker symbols display graphics using simple, predefined markers such as circle, cross, etc. In addition, the markers can have an optional outline, which is defined by a line symbol.

See also

Constructors

Link copied to clipboard
fun SimpleMarkerSymbol(    style: SimpleMarkerSymbolStyle = SimpleMarkerSymbolStyle.Circle,     color: Color = Color.white,     size: Float = 8.0f)

Creates a simple marker symbol object with some initial values.

Functions

Link copied to clipboard
open override fun clone(): SimpleMarkerSymbol

Clones the SimpleMarkerSymbol.

Link copied to clipboard
suspend fun createSwatch(    screenScale: Float,     width: Float? = null,     height: Float? = null,     backgroundColor: Color = Color.transparent): Result<BitmapDrawable>

Creates a swatch of the symbol. This method will scale the symbol up or down in order to fit it in to the desired width and height of the swatch.

suspend fun createSwatch(    screenScale: Float,     width: Float,     height: Float,     geometry: Geometry,     backgroundColor: Color = Color.transparent): Result<BitmapDrawable>

Creates a swatch of the symbol.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toJson(): String

Convert an object to JSON string.

Link copied to clipboard
fun toMultilayerSymbol(): MultilayerPointSymbol

Get Multilayer point symbol generated from simple marker symbol. Multilayer symbol API allows users to create complex and custom symbols with multiple layers of different type of symbology. Simple fill symbol provides a factory of shapes like square, diamond, cross etc. This helper method allows users to generate a MultilayerPointSymbol with VectorMarkerSymbolLayer containing polygon with defined geometry for different shapes.

Properties

Link copied to clipboard
var angle: Float

The angle (in degrees) of the marker symbol.

Link copied to clipboard
var angleAlignment: SymbolAngleAlignment

The symbol angle alignment of the marker symbol. The angle alignment of the marker symbol. Returns SymbolAngleAlignment.Map if an error occurs.

Link copied to clipboard
var color: Color

The color for the simple marker symbol.

Link copied to clipboard
var leaderOffsetX: Float

The leader offset X of the marker symbol.

Link copied to clipboard
var leaderOffsetY: Float

The leader offset Y of the marker symbol.

Link copied to clipboard
var offsetX: Float

The offset X of the marker symbol.

Link copied to clipboard
var offsetY: Float

The offset Y of the marker symbol.

Link copied to clipboard
var outline: SimpleLineSymbol?
Link copied to clipboard
var size: Float

The size of the simple marker symbol.

Link copied to clipboard
var style: SimpleMarkerSymbolStyle

The style of the simple marker symbol. SimpleMarkerSymbolStyle.Circle if an error occurs.

Link copied to clipboard
open override val unknownJson: Map<String, Any>

Unknown data from the source JSON. Unknown JSON is a dictionary of values that was in the source JSON but was unparsed by this API.

Link copied to clipboard
open override val unsupportedJson: Map<String, Any>

Unsupported data from the source JSON. Unsupported JSON is a dictionary of values that are supported by web maps, but not exposed through this API.