UniqueValueRenderer

class UniqueValueRenderer : Renderer

A Unique Value Renderer object.

Constructors

Link copied to clipboard
fun UniqueValueRenderer(    fieldNames: Iterable<String> = emptyList(),     uniqueValues: Iterable<UniqueValue> = emptyList(),     defaultLabel: String = "",     defaultSymbol: Symbol? = null)

Creates a new unique value renderer object.

Functions

Link copied to clipboard
open override fun clone(): UniqueValueRenderer
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun getSymbol(feature: Feature, applyAttributeOverrides: Boolean = false): Symbol?

Returns the symbol that should be used to visualize the given feature with override attributes from renderer. If apply_attribute_overrides is set to true this method will get the symbol from renderer and override the symbol properties with the overrides available on renderer. Like visual variable size, color, opacity and rotation. If the override expression or attributes contain any information not known to the renderer or feature that will not be evaluated e.g. "scale" and that override will not be applied. If the override attributes are applied successfully it will return a multilayer symbol else original symbol will be returned.

fun getSymbol(graphic: Graphic, applyAttributeOverrides: Boolean = false): Symbol?

Returns the symbol that should be used to visualize the given graphic with override attributes from renderer. If apply_attribute_overrides is set to true this method will get the symbol from renderer and override the symbol properties with the overrides available on renderer. Like visual variable size, color, opacity and rotation. If the override expression or attributes contain any information not known to the renderer or graphic that will not be evaluated e.g. "scale" and that override will not be applied. If the override attributes are applied successfully it will return a multilayer symbol else original symbol will be returned.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toJson(): String

Convert an object to JSON string.

Properties

Link copied to clipboard
var defaultLabel: String

The renderer's default label.

Link copied to clipboard
var defaultSymbol: Symbol?
Link copied to clipboard
val fieldNames: MutableList<String>
Link copied to clipboard
var rotationExpression: String

The renderer's rotation expression.

Link copied to clipboard
var rotationType: RotationType

The renderer's rotation type. RotationType.Arithmetic if an error occurs.

Link copied to clipboard
var sceneProperties: RendererSceneProperties
Link copied to clipboard
val uniqueValues: MutableList<UniqueValue>
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.