I want to load a renderer from a JSON-String, but nothing shows. I can't find any error in the JSON-String, so I have no idea what is going wrong.
var flurLayer = new FeatureLayer({
url: "...",
fields: ["art", "render_pro", "katalog"],
title: "Flurstuecke",
renderer: rendererJsonUtils.fromJSON(sr)
})
var sr = {
"type": "simple",
"symbol": {
"type": "esriSFS",
"style": "esriSFSSolid",
"color": [255, 255, 0, 0.5],
"outline": {
"type": "esriSLS",
"style": "esriSLSSolid",
"color": [0, 0, 255, 1],
"width": 1.0
}
},
"label": "",
"description": "",
"rotationType": "geographic",
"rotationExpression": ""
}