A subtype layer represents a subtype defined in a feature service layer. It has its own display and editing properties, and can exist only as a child of a subtype group layer.
Referenced by: Subtype Group Layer (SubtypeGroupLayer)
Properties
Property | Details |
---|---|
attributeTableInfo | An attributeTableInfo object defining how the data will be presented in tabular format. |
charts[] | An array of chart items of type WebChart available on the subtype layer. |
disablePopup | Indicates whether a client should ignore popups defined in this layer |
enableEditing | Indicates whether a client should allow feature editing for this layer. Applicable only if the layer has editing capability. |
formInfo | A formInfo object defining the content of the form when you are editing a feature. |
id | A unique identifying string for the layer. |
layerDefinition | A layerDefinition object defining the attribute schema and drawing information for the layer. See layerDefinition properties table. |
layerType | String indicating the layer type. Valid value of this property ArcGISFeatureLayer |
opacity | The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency. |
popupInfo | A popupInfo object defining the content of popup window when you click a feature on the map. |
showLabels | Labels will display if this property is set to true and the layer also has a labelingInfo property associated with it. This property can get stored in the web map config and in the item/data. |
showLegend | Boolean value indicating whether to display the layer in the legend. Default value is true . |
subtypeCode | The feature subtype code identifying the layer. Used with SubtypeGroupLayers. |
title | A user-friendly string title for the layer that can be used in a table of contents. |
visibility | Boolean property determining whether the layer is initially visible in the web map. |
layerDefinition properties
Property | Details |
---|---|
drawingInfo.labelingInfo[] | An object defining the properties used for labeling the layer. If working with Map Image layers, this property is only applicable if the layer is enabled with dynamic layers |
drawingInfo.renderer | An object defined which provides the symbology for the layer. If working with Map Image layers, this property is only applicable if the layer is enabled with dynamic layers |
drawingInfo.scaleSymbols | Boolean property indicating whether symbols should stay the same size in screen units as you zoom in. A value of false means the symbols stay the same size in screen units regardless of the map scale. |
fieldOverrides[] | The layer-specific overrides of field properties. Used by SubtypeGroupLayer to modify field information for each subtype. Any field missing from this array should be hidden. |
maxScale | Integer property used to determine the maximum scale at which the layer is displayed. |
minScale | Integer property used to determine the minimum scale at which the layer is displayed. |
templates[] | A property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types. |
Example
{
"id": "02c7fe67e3c8422189eb497ae45e13dd",
"title": "Insectivora",
"visibility": true,
"opacity": 0.5,
"layerType": "ArcGISFeatureLayer",
"layerDefinition": {
"drawingInfo": {
"renderer": {
"type": "uniqueValue",
"field1": "FAMILY",
"uniqueValueInfos": [
{
"symbol": {
"type": "esriPMS",
"url": "f9727b6dcfaea9242d4174e32c536498",
"imageData": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABiElEQVQ4jWNhoBCw4JETkRTgjv7668/vT99+TiPVAA0JAZ7OHHdTTwYGBobJO0+7v/jwJZmBgeENMQYEmClLT+mNdZO2UZdjYGBgYLDTVPCLmbL+wsM3H3IYGBg24DJAQ5iHI99RSymiOdxRQENKBC5hoy7HsKMyWjpn/rYlx2492fT91+8odANs5EX4q9KcjVyqAuxYsfpJSoRhT3Ucd8fGI5FTd51WefLuUxEDA8MRFgYGBhFrNdkpHVEu+jAn4wMV/jYMAaYapq6ti/uevPtkxsLAwPDmyuNX70V4uQhqRgZ//v17DvfCx+8/d9549sYB2d/4wKHrD36/+PDlONwABgaGDUsPXy4PMNEQIMaA7RfvvGeAxgbMgBu7L9+9QIwrbjx7w3Dt8ZvLDAwMN5ANINobN569YXj/7ftxGB85HRDljaWHL394/enbUmwG3Nh9+e6FIzcfOeCKkTefvzGce/D8Icz56AYwfPz+c2LohNWf8Lng15+/S5H56Hlhw4sPXzYwkAAAeZChUVdHoG0AAAAASUVORK5CYII=",
"contentType": "image/png",
"width": 12,
"height": 12,
"angle": 0,
"xoffset": 0,
"yoffset": 0
},
"value": "11",
"label": "Muridae"
},
{
"symbol": {
"type": "esriPMS",
"url": "43d692ed2bbb1857bb29a32e93ff1662",
"imageData": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABjUlEQVQ4jWNhoBCw4JET4ZYUjf7z+evvn1++TSPVAA0eceFO4/QQTwYGBoaz01e5f3n5NpmBgeENMQYESBlrT3HuKJCWtdJnYGBgYJCzNvLblFx34eOj5zkMDAwbcBmgwSHMny9vZxzhUJchIKymAJeQtdJniNg4UXpHUfeSZ8cvbvr941cUugE2fLKSVYbJAS7WpYms2PwkrKbAEL1lKvex3oWRZ2euUfn89GURAwPDERYGBgYRGQv9KY7NOfowJ+MDVsXxDOq+9qbLfHL7Pj99acbCwMDw5vX1u++5RPgJakYG///8eQ73ws+PX3a+vfnQAdnf+MDDI+d/f3n59jjcAAYGhg2XV24vV/O1FyDGgHu7jr1ngMYGzIAbD/aduvD21gOCrnh76wHDmxv3LzMwMNxANoBob7y9+ZDhx4cvx2F85HRAlDcur9z+4dvrd0uxGXDjwb5TFx4fu+iAK0a+vfnI8PLCzYcw56MbwPDz45eJ62MqPuFzwd8fP5ci89HzwoYvL99uYCABAADfGKFAQcEI9QAAAABJRU5ErkJggg==",
"contentType": "image/png",
"width": 12,
"height": 12,
"angle": 0,
"xoffset": 0,
"yoffset": 0
},
"value": "7",
"label": "Dasyproctidae"
},
{
"symbol": {
"type": "esriPMS",
"url": "05b0a67fd5375e6f3be44c16a4e66b1c",
"imageData": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABhklEQVQ4jWNhoBCw4JETERDljP719c/vb99+TyPVAA0BYa5Oz1BtTwYGBobtK6+6f3j7LZmBgeENMQYEqGiLTokvspTWMJBgYGBgYNAylvSbVLPvwuvnX3IYGBg24DJAg4efPV/XRCoiPMtUQFpBACFhIMFQPcVLem7H0SU3L77Y9OvX3yh0A2xEJXmrXAI1XIKSDVmx+UlaQYChboY394b5FyJ3rL6q8vbl1yIGBoYjLAwMDCLq+uJTYvLM9WFOxgcCEg0YTB0VTJuztva9ffnVjIWBgeHNo7vv3vMKcBDUjAz+/vn/HO6F719+73z64IMDsr/xgWtnn//+8PbbcbgBDAwMG45su11u5kCcCReOP37PAI0NmAE3Lpx8coEYVzx98IHhyd33lxkYGG4gG0C0N54++MDw5cvP4zA+cjogyhtHtt3+8Ondj6XYDLhx4eSTCzcuvHDAFSOfP/xguHfjzUOY89ENYPj+5ffE3rI9n/C54M/PP0uR+eh5YcOHt982MJAAAM+roWJ/cNibAAAAAElFTkSuQmCC",
"contentType": "image/png",
"width": 12,
"height": 12,
"angle": 0,
"xoffset": 0,
"yoffset": 0
},
"value": "8",
"label": "Dipodidae"
}
]
}
},
"templates": [
{
"name": "Muridae",
"prototype": {
"attributes": {
"FAMILY": 11,
"ORDER": 6
}
},
"drawingTool": "esriFeatureEditToolPoint"
},
{
"name": "Dasyproctidae",
"prototype": {
"attributes": {
"FAMILY": 7,
"ORDER": 6
}
},
"drawingTool": "esriFeatureEditToolPoint"
},
{
"name": "Dipodidae",
"prototype": {
"attributes": {
"FAMILY": 8,
"ORDER": 6
}
},
"drawingTool": "esriFeatureEditToolPoint"
}
],
"fieldOverrides": [
{
"name": "OBJECTID",
"alias": "OBJECTID",
"editable": false
},
{
"name": "Shape",
"alias": "SHAPE",
"editable": true
},
{
"name": "ORDER",
"alias": "ORDER",
"editable": true
},
{
"name": "FAMILY",
"alias": "FAMILY",
"editable": true
},
{
"name": "GENUS",
"alias": "GENUS",
"editable": true
},
{
"name": "GENUS_COMMON",
"alias": "GENUS_COMMON",
"editable": true
},
{
"name": "RECORDED_DATE",
"alias": "RECORDED_DATE",
"editable": true
},
{
"name": "COUNTRY",
"alias": "COUNTRY",
"editable": true
},
{
"name": "SPECIES_NUM",
"alias": "SPECIES_NUM",
"editable": true
}
]
},
"subtypeCode": 6,
"popupInfo": {
"title": "{ORDER}"
}
}