Show / Hide Table of Contents

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
System.Object
Renderer
ClassBreaksRenderer
DictionaryRenderer
SimpleRenderer
UniqueValueRenderer
Implements
System.ComponentModel.INotifyPropertyChanged
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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

TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

Relevant samples

Browse WFS layers: Browse a WFS service for layers and add them to the map.
Buffer: Create a buffer around a map point and display the results as a `Graphic`
In This Article
Back to top Copyright © 2022 Esri.