Class Renderer
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.
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.Symbology
Assembly: Esri.ArcGISRuntime.dll
Syntax
public abstract class Renderer : INotifyPropertyChanged
Remarks
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 Renderer, the Renderer, or the Renderer.
A GraphicsOverlay can contain graphics with different geometry dimensions, such as a MapPoint 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 a Symbol directly to a graphic, the symbol displays in preference to the Renderer.
For raster data, rendering is handled by a RasterRenderer.
Properties
Name | Description |
---|---|
RotationExpression | Gets or sets the expression describing how GeoElement's attributes are translated into a rotation to be applied to the GeoElement. |
RotationType | Gets or sets whether the rotation calculated from the RotationExpression is relative to the screen or map. |
SceneProperties | Gets or sets the scene properties for the renderer. |
UnknownJson | Gets unknown data from the source JSON. |
UnsupportedJson | Gets unsupported data from the source JSON. |
Methods
Name | Description |
---|---|
Clone() | Returns a clone of the Renderer. |
FromJson(String) | Returns the json representation of the renderer |
GetSymbol(GeoElement) | Returns the symbol the renderer uses to represent the supplied GeoElement. |
GetSymbol(GeoElement, Boolean) | Returns the symbol used to visualize the given GeoElement with override attributes from renderer. |
ToJson() | Returns the json representation of the renderer |
Events
Name | Description |
---|---|
PropertyChanged | Occurs when a property value changes. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |