Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Object: esri/renderers/jsonUtils

dojo.require("esri.renderers.jsonUtils")

Description

(Added at v3.8)
Utility method to create a renderer from JSON.

When coding legacy (non-AMD) style, there is no need to require the module. All methods and properties are available in the namespace. For example, esri.renderers.fromJson().

Samples

Search for samples that use this class.

Methods

NameReturn typeSummary
fromJson(json)RendererConverts the input JSON object to the appropriate esri.renderer.* object.
Method Details

fromJson(json)

Converts the input JSON object to the appropriate esri.renderer.* object.
Return type: Renderer
Parameters:
<Object> json Required The JSON object.
Sample:
var renderer = esri.renderer.fromJson(uvrJson);
Show Modal