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

require(["esri/renderers/jsonUtils"], function(rendererJsonUtils) { /* code goes here */ });

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:
require([
  "esri/renderers/jsonUtils", ... 
], function(jsonUtil, ... ) {
  var renderer = jsonUtil.fromJson(uvrJson);
  ...
});