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
Method Details
Converts the input JSON object to the appropriate esri.renderer.* object.
Parameters:
<Object > json |
Required |
The JSON object. |
Sample:
require([
"esri/renderers/jsonUtils", ...
], function(jsonUtil, ... ) {
var renderer = jsonUtil.fromJson(uvrJson);
...
});