getSymbol

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 applyAttributeOverrides 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.

Return

A Symbol.

Since

200.1.0


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 applyAttributeOverrides 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.

Return

A Symbol.

Since

200.1.0