DictionaryRenderer

class DictionaryRenderer : Renderer

Renders geoelements using symbols generated from a DictionarySymbolStyle. The DictionaryRenderer applies symbols to features or graphics according to a set of input attribute values. The symbol primitives and logic (rule engine) for applying symbols is provided by an associated DictionarySymbolStyle.

The DictionarySymbolStyle depends on attribute names to define the symbology of each feature. The attributes reference different symbol components in the style, which are assembled to create a complex symbol. In order to display geoelements using the DictionaryRenderer, attributes in your data must either use the expected attribute names or be mapped to the proper style attributes.

See also

Constructors

Link copied to clipboard
fun DictionaryRenderer(    dictionarySymbolStyle: DictionarySymbolStyle,     symbologyFieldOverrides: Map<String, String> = emptyMap(),     textFieldOverrides: Map<String, String> = emptyMap())

Creates a new dictionary renderer object.

Functions

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

Clones the DictionaryRenderer.

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 dictionarySymbolStyle: DictionarySymbolStyle
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 scaleExpression: ArcadeExpression?
Link copied to clipboard
var sceneProperties: RendererSceneProperties
Link copied to clipboard
val symbologyFieldOverrides: MutableMap<String, String>
Link copied to clipboard
val textFieldOverrides: MutableMap<String, String>
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.