Change feature layer renderer

Description

This sample demonstrates how to override and reset a renderer of a feature layer. Simply use the override button to set a new renderer and the reset button to reset the original renderer.

How it works

Each AGSFeatureLayer object has a default render as supplied by the feature service. You can override this renderer by creating a new renderer (AGSRender) and setting the render property on the feature layer. If you wish to reset the renderer to the feature service's original renderer then call the method resetRenderer.


In this topic
  1. Description