You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the geojsonlayer.html file, I see there is commented out code for the simple renderer. I just want to add a label to display with my layer. The below code doesn't seem to work out of the box for the "label" attribute; no label displays. Is there something else I need to do here?
```
//Optional SimpleRenderer if you don't want a random symbol and color
var simpleJson = {
"type": "simple",
"label": "labels",
"description": "A bunch of stuff about layers",
"symbol": {
"color": [210,105,30,191],
"size": 10,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriSLS" // esriSMS, esriSLS
}
};
geoJsonLayer.renderer = new SimpleRenderer(simpleJson);
The text was updated successfully, but these errors were encountered:
In the geojsonlayer.html file, I see there is commented out code for the simple renderer. I just want to add a label to display with my layer. The below code doesn't seem to work out of the box for the "label" attribute; no label displays. Is there something else I need to do here?
```
//Optional SimpleRenderer if you don't want a random symbol and color
var simpleJson = {
"type": "simple",
"label": "labels",
"description": "A bunch of stuff about layers",
"symbol": {
"color": [210,105,30,191],
"size": 10,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriSLS" // esriSMS, esriSLS
}
};
geoJsonLayer.renderer = new SimpleRenderer(simpleJson);
The text was updated successfully, but these errors were encountered: