SimpleRenderer

class SimpleRenderer : Renderer

A Simple Renderer object.

Constructors

Link copied to clipboard
fun SimpleRenderer(symbol: Symbol? = null)

Creates a new simple renderer object with the given symbol.

Functions

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

Clones the SimpleRenderer.

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 description: String

The description of this renderer.

Link copied to clipboard
var label: String

The renderer's label.

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
var symbol: Symbol?
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.