{
  "id": "20",
  "displayName": "Tree Inventory",
  "shortDisplayName": null,
  "description": "",
  "connectionString": "",
  "copyright": "",
  "hasAttributionData": false,
  "serviceType": "Feature",
  "serviceFunction": "Operational",
  "baseMapGroup": null,
  "baseMapGroupIndex": "",
  "baseMapGroupIsMutuallyExclusive": false,
  "opacity": 1,
  "visible": false,
  "initiallyVisible": false,
  "drawingBehavior": "FeatureLayer",
  "iconUri": null,
  "includeInLayerList": false,
  "defaultAllowSymbolization": true,
  "isExpanded": true,
  "updateInterval": null,
  "dataProvider": null,
  "disableClientCaching": false,
  "serviceTag": "hJ5CHsbQcP68ACJM1Mqu6J9oXi8C+WSOQVriapSssOI=",
  "identifiable": null,
  "includeMosaicDatasetValues": null,
  "includeCatalogItems": null,
  "includeInLegend": null,
  "startTime": null,
  "endTime": null,
  "serverVersion": "10.91",
  "failureAction": "Warn",
  "failureTimeout": null,
  "requestEncoding": null,
  "supportsDynamicLayers": false,
  "hasLayerCatalog": false,
  "autoSave": false,
  "color": null,
  "geometry": null,
  "objectIds": null,
  "onDemandCacheSize": null,
  "outFields": "*",
  "queryMode": "OnDemand",
  "tileHeight": null,
  "tileWidth": null,
  "selectionColor": null,
  "where": null,
  "editVerticesEnabled": true,
  "moveEnabled": false,
  "rotateEnabled": true,
  "scaleEnabled": true,
  "featureClustering": {
    "userCanToggle": true,
    "enabled": false,
    "radius": 50,
    "backgroundColor": [
      255,
      0,
      0,
      255
    ],
    "labelColor": [
      255,
      255,
      255,
      255
    ],
    "maximumFeatures": 10,
    "clusterSize": 0
  },
  "featureHeatMap": {
    "userCanToggle": true,
    "enabled": false,
    "intensity": 30,
    "field": null,
    "gradient": [
      [
        255,
        255,
        255,
        0
      ],
      [
        0,
        0,
        255,
        255
      ],
      [
        255,
        0,
        0,
        255
      ],
      [
        255,
        255,
        0,
        255
      ]
    ],
    "offset": [
      0,
      0.5,
      0.75,
      0.85
    ],
    "respectScaleRange": false
  },
  "themeSettings": [],
  "layerHyperlinks": [],
  "tileInfo": {},
  "minScale": 10000,
  "instantSearch": false,
  "layers": [
    {
      "id": "0",
      "name": "TreeInventory",
      "nativeID": "0",
      "displayName": "Tree Inventory",
      "description": "",
      "defaultVisibility": true,
      "featureType": "Point",
      "type": "DynamicFeatureLayer",
      "maxScale": 0,
      "minScale": 0,
      "visible": false,
      "initiallyVisible": false,
      "showMapTips": true,
      "identifiable": true,
      "queryable": true,
      "searchable": true,
      "supportsIdentify": true,
      "supportsQuery": true,
      "canCopyFeature": false,
      "snappable": true,
      "snappingEnabled": true,
      "hasAttachments": false,
      "featureZoomFactor": null,
      "featureZoomScale": null,
      "featureBorderColor": null,
      "featureBorderWidth": null,
      "featureFillColor": null,
      "showFeatureHyperlinks": "ShowAll",
      "iconUri": null,
      "includeInLayerList": true,
      "includeInLegend": false,
      "allowSymbolization": true,
      "legendUrl": null,
      "styleName": null,
      "drawIndex": null,
      "canToggleLabels": false,
      "showLabels": true,
      "dataProvider": null,
      "featureLabel": "Tree {COMPKEY}",
      "featureDescription": "<div><span style=\"font-family: Tahoma;\">{NAME} ({DIAM} cm)</span></div>",
      "featureLongDescription": "<div><span style=\"font-weight: normal; font-family: Arial;\">Common Name:<span style=\"white-space:pre\">\t</span></span><span style=\"font-weight: bold; font-family: Tahoma;\">{NAME}</span></div><br/><div><span style=\"font-family: Arial;\">Location:<span style=\"white-space:pre\">\t\t\t</span></span><span style=\"font-family: Tahoma;\">{LOCATION}</span></div><div><span style=\"font-family: Arial;\">Diameter (cm):<span style=\"white-space:pre\">\t</span></span><span style=\"font-family: Tahoma;\">{DIAMETER}</span></div><br/><div><span style=\"font-family: Arial;\">Condition:<span style=\"white-space:pre\">\t\t</span></span><span style=\"font-family: Tahoma;\">{CONDITION}</span></div><br/><div><span style=\"font-family: Arial;\">Owner:<span style=\"white-space:pre\">\t\t\t</span></span><span style=\"font-family: Tahoma;\">{OWNER}</span></div><div><span style=\"font-family: Arial;\">Status:<span style=\"white-space:pre\">\t\t\t</span></span><span style=\"font-family: Tahoma;\">{STATUS}</span></div><br/>{ORDERS}",
      "displayField": "BOTNAME",
      "primaryKeyField": "OBJECTID",
      "fullExtent": {
        "xmin": -16861451.714477319,
        "ymin": -4280732.7670519333,
        "xmax": 8942190.0663403552,
        "ymax": 5425176.2814465351,
        "spatialReference": {
          "wkid": 102100
        }
      },
      "parentLayerId": null,
      "subLayerIds": [],
      "hasReports": false,
      "hasDataLinks": true,
      "fields": [
        {
          "name": "OBJECTID",
          "visible": false,
          "dataType": "Int32",
          "displayName": "OBJECTID",
          "alias": "OBJECTID"
        },
        {
          "displayName": "COMPKEY",
          "name": "COMPKEY",
          "alias": "COMPKEY",
          "visible": true,
          "dataType": "Double",
          "searchable": true
        },
        {
          "name": "UNITID",
          "visible": false,
          "dataType": "String",
          "displayName": "UNITID",
          "alias": "UNITID"
        },
        {
          "name": "UNITTYPE",
          "visible": true,
          "dataType": "String",
          "displayName": "UNITTYPE",
          "alias": "UNITTYPE"
        },
        {
          "name": "ZAREA",
          "visible": true,
          "dataType": "String",
          "displayName": "ZAREA",
          "alias": "ZAREA"
        },
        {
          "name": "LOC",
          "visible": true,
          "dataType": "String",
          "displayName": "LOC",
          "alias": "LOC"
        },
        {
          "name": "CONDRAT",
          "visible": true,
          "dataType": "Double",
          "displayName": "CONDRAT",
          "alias": "CONDRAT"
        },
        {
          "name": "SERVSTAT",
          "visible": true,
          "dataType": "String",
          "displayName": "SERVSTAT",
          "alias": "SERVSTAT"
        },
        {
          "name": "INSTDATE",
          "visible": true,
          "dataType": "DateTime",
          "displayName": "INSTDATE",
          "alias": "INSTDATE"
        },
        {
          "name": "ADDRKEY",
          "visible": false,
          "dataType": "Double",
          "displayName": "ADDRKEY",
          "alias": "ADDRKEY"
        },
        {
          "name": "OWN",
          "visible": true,
          "dataType": "String",
          "displayName": "OWN",
          "alias": "OWN"
        },
        {
          "name": "TREETYPE",
          "visible": true,
          "dataType": "String",
          "displayName": "TREETYPE",
          "alias": "TREETYPE"
        },
        {
          "name": "BOTNAME",
          "visible": true,
          "dataType": "String",
          "displayName": "BOTNAME",
          "alias": "BOTNAME"
        },
        {
          "name": "BOTDESC",
          "visible": true,
          "dataType": "String",
          "displayName": "BOTDESC",
          "alias": "BOTDESC"
        },
        {
          "name": "ADDRQUAL",
          "visible": false,
          "dataType": "String",
          "displayName": "ADDRQUAL",
          "alias": "ADDRQUAL"
        },
        {
          "name": "SPACETYPE",
          "visible": true,
          "dataType": "String",
          "displayName": "SPACETYPE",
          "alias": "SPACETYPE"
        },
        {
          "name": "WO",
          "visible": true,
          "dataType": "Int32",
          "displayName": "WO",
          "alias": "WO"
        },
        {
          "name": "STEMNO",
          "visible": true,
          "dataType": "Int32",
          "displayName": "STEMNO",
          "alias": "STEMNO"
        },
        {
          "name": "WIREHT",
          "visible": true,
          "dataType": "Double",
          "displayName": "WIREHT",
          "alias": "WIREHT"
        },
        {
          "name": "DIAM",
          "visible": true,
          "dataType": "Double",
          "displayName": "DIAM",
          "alias": "DIAM"
        },
        {
          "name": "DIAM2",
          "visible": false,
          "dataType": "Double",
          "displayName": "DIAM2",
          "alias": "DIAM2"
        },
        {
          "name": "DIAM3",
          "visible": false,
          "dataType": "Double",
          "displayName": "DIAM3",
          "alias": "DIAM3"
        },
        {
          "name": "DIAM4",
          "visible": false,
          "dataType": "Double",
          "displayName": "DIAM4",
          "alias": "DIAM4"
        },
        {
          "name": "DIAM5",
          "visible": false,
          "dataType": "Double",
          "displayName": "DIAM5",
          "alias": "DIAM5"
        },
        {
          "name": "DIAM6",
          "visible": false,
          "dataType": "Double",
          "displayName": "DIAM6",
          "alias": "DIAM6"
        },
        {
          "name": "DIAM7",
          "visible": false,
          "dataType": "Double",
          "displayName": "DIAM7",
          "alias": "DIAM7"
        },
        {
          "name": "DIAM8",
          "visible": false,
          "dataType": "Double",
          "displayName": "DIAM8",
          "alias": "DIAM8"
        },
        {
          "name": "INVENTORIED",
          "visible": true,
          "dataType": "String",
          "displayName": "INVENTORIED",
          "alias": "INVENTORIED"
        },
        {
          "name": "STRUCCOND",
          "visible": false,
          "dataType": "Int32",
          "displayName": "STRUCCOND",
          "alias": "STRUCCOND"
        },
        {
          "name": "URL_LNK",
          "visible": true,
          "dataType": "String",
          "displayName": "URL_LNK",
          "alias": "URL_LNK"
        },
        {
          "name": "LATITUDE",
          "visible": true,
          "dataType": "Double",
          "displayName": "LATITUDE",
          "alias": "LATITUDE"
        },
        {
          "name": "LONGITUDE",
          "visible": true,
          "dataType": "Double",
          "displayName": "LONGITUDE",
          "alias": "LONGITUDE"
        },
        {
          "name": "XCOORD",
          "visible": true,
          "dataType": "Double",
          "displayName": "XCOORD",
          "alias": "XCOORD"
        },
        {
          "name": "YCOORD",
          "visible": true,
          "dataType": "Double",
          "displayName": "YCOORD",
          "alias": "YCOORD"
        },
        {
          "name": "CENT_X_3857",
          "visible": true,
          "dataType": "Double",
          "displayName": "CENT_X_3857",
          "alias": "CENT_X_3857"
        },
        {
          "name": "CENT_Y_3857",
          "visible": true,
          "dataType": "Double",
          "displayName": "CENT_Y_3857",
          "alias": "CENT_Y_3857"
        },
        {
          "name": "ADDDTTM",
          "visible": true,
          "dataType": "DateTime",
          "displayName": "ADDDTTM",
          "alias": "ADDDTTM"
        },
        {
          "name": "MODDTTM",
          "visible": true,
          "dataType": "DateTime",
          "displayName": "MODDTTM",
          "alias": "MODDTTM"
        },
        {
          "name": "GlobalID",
          "visible": false,
          "dataType": "Guid",
          "displayName": "GlobalID",
          "alias": "GlobalID"
        }
      ],
      "featureHyperlinks": [],
      "layerHyperlinks": [],
      "arcadeExpressions": [
        {
          "expression": "var condition = $feature.CONDRAT;\r\n\r\nreturn Decode(condition,\r\n              0, 'NO TREE',\r\n              1, 'GOOD',\r\n              2, 'FAIR',\r\n              3, 'POOR',\r\n              4, 'DEAD',\r\n              5, 'CONDITIONAL',\r\n              6, 'TREE STUMP',\r\n              7, 'REMOVED',\r\n              condition);",
          "token": "CONDITION"
        },
        {
          "expression": "If ($feature.WO == 0) {\r\n   return '';\r\n} Else {\r\n   return '<' + 'div style=\"font-weight: normal;\"><' + 'span style=\"font-family: Tahoma; color: rgb(0, 153, 0);\">This tree has ' + $feature.WO + ' open work order' + IIf($feature.WO == 1, '', 's') + '.<' + '/span><' + '/div><' + 'br/>';   \r\n}",
          "token": "ORDERS"
        },
        {
          "expression": "var species = ['ALDER', 'ALMOND', 'APPLE', 'ASH', 'BEECH', 'BIRCH', 'BUCKEYE', 'BUCKTHORN', 'CATALPA', 'CEDAR', 'CHERRY', 'CHESTNUT', 'CYPRESS', 'DOGWOOD', 'ELM', 'FIR', 'GINKGO', 'GOLDENCHAIN', 'HACKBERRY', 'HAWTHORN', 'HAZEL', 'HEMLOCK', 'HIGHBUSHCRAN', 'JUNIPER', 'LARCH', 'LILAC', 'LINDEN', 'LOCUST', 'MAGNOLIA', 'MAPLE', 'MOUNTAINASH', 'MULBERRY', 'OAK', 'OLIVE', 'PEAR', 'PINE', 'PLANE', 'REDBUD', 'REDWOOD', 'SUMAC', 'TAMARACK', 'TREEOFHEAVEN', 'TULIPTREE', 'WALNUT', 'WILLOW', 'YELLOWWOOD', 'YEW'];\r\nvar index = IndexOf(species, $feature.TREETYPE);\r\n\r\nIf (index > -1) {\r\n   return '<' + 'div style=\"font-weight: normal; font-family: Arial, Verdana; font-size: 10pt; font-style: normal;\"><' + 'img src=\"http://www7.mississauga.ca/Departments/Parks/Forestry/Public-Tree-Map/images/' + $feature.TREETYPE + '1.jpg\" width=\"320\" height=\"240\"/><' + '/div>';\r\n} Else {\r\n   return '';\r\n}",
          "token": "IMAGE"
        },
        {
          "expression": "If (IsEmpty($feature.TREETYPE) || $feature.TREETYPE == \"STUMP\") {\r\n   return '';\r\n} Else {\r\n   return '<' + 'div style=\"font-weight: normal; font-family: Arial, Verdana; font-size: 10pt;\"><' + 'span><' + 'a href=\"{URL_LNK}\">More info on ' + $feature.TREETYPE + ' trees<' + '/a><' + '/span><' + '/div><' + 'br/>';\r\n}",
          "token": "INFO"
        },
        {
          "expression": "return DefaultValue($feature.BOTDESC, '');",
          "token": "NAME"
        },
        {
          "expression": "return DefaultValue(Trim($feature.LOC), '');",
          "token": "LOCATION"
        },
        {
          "expression": "var owner = $feature.OWN;\r\n\r\nreturn Decode(owner, 'MISS', 'CITY', 'TBD', 'TO BE DETERMINED', 'PEEL', 'REGION', 'PRIV', 'PRIVATE', 'BOUN', 'BOUNDARY', 'MGS', 'PROVINCE (MGS)', 'MTO', 'PROVINCE (MTO)', owner);",
          "token": "OWNER"
        },
        {
          "expression": "var status = $feature.SERVSTAT;\r\n\r\nreturn Decode(status, 'TREE MAINTAINED BY OPERATIONS', 'MAINTAINED BY CITY', 'PRIVATE', 'PRIVATELY MAINTAINED', 'TREE UNDER WARRANTY', 'UNDER WARRANTY', status);",
          "token": "STATUS"
        },
        {
          "expression": "return DefaultValue(Trim($feature.DIAM), '');",
          "token": "DIAMETER"
        }
      ],
      "isDynamic": false,
      "dynamicDefinition": null,
      "themeSettings": [],
      "tileLevelLimits": []
    }
  ],
  "tables": [],
  "fullExtent": {
    "xmin": 594154.22449999955,
    "ymin": 0,
    "xmax": 14935104.638,
    "ymax": 4843575.0315000005,
    "spatialReference": {
      "wkid": 26917
    }
  },
  "spatialReference": {
    "wkid": 26917
  },
  "properties": [],
  "extensions": []
}