Renderer class final
A base class for renderers that use a collection of one or more symbols to display features in a Layer or graphics in a GraphicsOverlay.
If the renderer contains more than a single symbol, it uses the rules to determine the symbol to apply to each geoelement, based on one or several attribute values. There are three basic types of renderers:
- SimpleRenderer - simple renderers use a single symbol for all geoelements.
- UniqueValueRenderer - unique value renders define a different symbol for each unique value of an attribute.
- ClassBreaksRenderer - class break renderers define a different symbol for each range of numeric values.
To symbolize and display the geoelements, apply the renderer to the FeatureLayer.renderer, the GraphicsOverlay.renderer, or the ArcGISSceneLayer.renderer.
A GraphicsOverlay can contain graphics with different geometry dimensions, such as an ArcGISPoint and Polygon. A Renderer, however, can only provide symbols with one geometry dimension. Therefore, if you apply a renderer to a graphics overlay, only graphics with the specified geometry dimension are displayed. All other graphics are not visible.
If you apply an ArcGISSymbol directly to a graphic, the symbol displays in preference to the GraphicsOverlay.renderer.
For raster data, rendering is handled by a RasterRenderer.
- Implemented types
- Mixed in types
- Implementers
Constructors
-
Renderer.fromJson(Map<
String, dynamic> json) -
factory
- Renderer.fromJsonString(String jsonString)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- rotationExpression ↔ String
-
The expression describing how attributes values are translated into a
rotation to be applied to the GeoElement.
getter/setter pair
- rotationType ↔ RotationType
-
Indicates whether the rotation calculated from the
Renderer.rotationExpression is interpreted as arithmetic or geographic.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clone(
) → Renderer - Clones the Renderer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
symbolForFeature(
{required Feature feature, bool applyAttributeOverrides = false}) → ArcGISSymbol? - Returns the symbol that is used to visualize the given feature with override attributes from the renderer.
-
symbolForGraphic(
{required Graphic graphic, bool applyAttributeOverrides = false}) → ArcGISSymbol? - Returns the symbol that is used to visualize the given graphic with override attributes from the renderer.
-
toJson(
) → Map< String, dynamic> -
Returns a JSON representation of this Object in the data type used by jsonDecode.
inherited
-
toJsonString(
) → String -
Returns a JSON representation of this Object as a String.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override