Class Overview

Base class for Renderers and used to draw Features or Graphics to a GeoView.

Renderers can be set to a setRenderer(Renderer) or a setRenderer(Renderer), which hold
Features or Graphics respectively. Once a Renderer is set, the properties of that Renderer will determine how those
Features or Graphics are drawn to the GeoView. A Renderer can specify that all Features or Graphics will be drawn
with the same Symbol or with a different Symbol.

When both a Renderer and Symbol are set, the Symbol takes precedence.

GraphicsOverlays can contain Graphics with different geometry dimensions. However, a
Renderer can only be used to draw symbols with the same dimension of geometry, therefore a Renderer used with a
graphics overlay can only draw graphics of a single geometry dimension.

Returns

Throws

Parameters

feature

the Feature to get a Symbol from, not null

Returns

the Symbol of the Feature that was passed

Throws

IllegalArgumentException

if Feature is null

public
Map<String, Object>
getUnknownJson()

If this object was created from JSON, this method gets unknown data from the source JSON. Unknown JSON is a Map of
values that were in the source JSON but are not known by the Runtime and therefore not exposed in the API.

Returns

an unmodifiable Map containing unknown JSON data. The keys are Strings containing names. The types of
the values depend on the types of tokens within the JSON as follows:

a Map<String, Object> represents an object in the JSON

a List<Object> represents an array in the JSON

a String represents a string in the JSON

a Double represents a number in the JSON

a Boolean represents true or false in the JSON

null represents null in the JSON

public
Map<String, Object>
getUnsupportedJson()

If this object was created from JSON, this method gets unsupported data from the source JSON. Unsupported JSON is a
Map of values that are supported by webmaps and known to the version of the webmap specification the API supports
(see system requirements), but are not explicitly exposed through the Runtime API.

Returns

an unmodifiable Map containing unsupported JSON data. The keys are Strings containing names. The types of
the values depend on the types of tokens within the JSON as follows:

a Map<String, Object> represents an object in the JSON

a List<Object> represents an array in the JSON

a String represents a string in the JSON

a Double represents a number in the JSON

a Boolean represents true or false in the JSON

null represents null in the JSON

public
void
setRotationExpression(String rotationExpression)

Sets the rotation expression.

This is a constant value or an expression that derives the angle of rotation based on the Feature attribute value.
When an attribute name is specified in the rotation expression, it's enclosed in square brackets, for example:
[Rotation].