LabelingInfo and Simple Renderer
- Last UpdatedFeb 19, 2025
- 2 minute read
In the below example the Esri States layer is configured with a labelingInfo and a simple renderer.
-
Double click the GISMapApp in the imported app to open the editor.
-
Select the Esri States layer and enable the DRAWINGINFO option.
-
Below it the LABELINGINFO option, select + ITEM to create a new item.
-
In LabelExpression, enter STATE_NAME.
-
Save the layer to view the labels in the preview section.

-
In the BASIC configuration,
-
select Simple for the Renderer (option by default).
-
select Simple Fill for the Symbol.
-
select esriSFSolid for the Style.
-
enable Color and Outline options.
-
-
In basic color,
-
select esriSFSSolid style.
-
select a color with a transparency color.
-
-
In simple line,
-
select esriSFSSolid style.
-
select a transparent color.


-
-
Save the layer to view the renderer in the preview section.

-
Save the configuration in the GISMapApp editor.
Below the json string with the configuration of the layer.
{
"title": "Esri States",
"type": "esri",
"url": " https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3",
"assetNameTemplate": "{STATE_NAME}",
"isBaseMap": false,
"merge": true,
"visible": true,
"drawingInfo": {
"renderer": {
"symbol": {
"style": "esriSFSSolid",
"type": "esriSFS",
"color": [
163,
73,
164,
126
],
"outline": {
"color": [
163,
73,
164,
255
],
"type": "esriSLS"
}
},
"type": "simple"
},
"labelingInfo": [
{
"labelExpression": "STATE_NAME"
}
]
}
}