{ "currentVersion": 11.4, "cimVersion": "3.4.0", "id": 1, "name": "SewerRootControl", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPolyline", "sourceSpatialReference": { "wkid": 102100, "latestWkid": 3857, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -20037700, "falseY": -30241100, "xyUnits": 10000, "falseZ": 0, "zUnits": 1, "falseM": 0, "mUnits": 1 }, "copyrightText": "", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "uniqueValue", "valueExpression": "// Get today's date\nvar today = Now()\n\n// Get the LastTreatmentDate field\nvar treatmentDate = $feature.LastTreatmentDate\n\n// Check for null or empty date\nif (IsEmpty(treatmentDate)) {\n return \"Not Treated\"\n}\n\n// Calculate the difference in months\nvar monthsAgo = DateDiff(today, treatmentDate, \"months\")\n\n// Return category based on how long ago the treatment was\nif (monthsAgo <= 6) {\n return \"0-6 months\"\n} else if (monthsAgo <= 24) {\n return \"6-24 months\"\n} else if (monthsAgo <= 36) {\n return \"24-36 months\"\n} else {\n return \"36+ months\"\n}\n", "valueExpressionTitle": "Custom", "uniqueValueGroups": [ { "heading": "Custom", "classes": [ { "label": "0-6 months", "description": "0-6 months", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 112, 255, 255 ], "width": 1.5 }, "values": [ [ "0-6 months" ] ] }, { "label": "6-24 months", "description": "6-24 months", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 230, 152, 0, 255 ], "width": 1.5 }, "values": [ [ "6-24 months" ] ] }, { "label": "36+ months", "description": "36+ months", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 1.5 }, "values": [ [ "36+ months" ] ] }, { "label": "Not Treated", "description": "Not Treated", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 178, 178, 178, 255 ], "width": 1.5 }, "values": [ [ "Not Treated" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 112, 255, 255 ], "width": 1.5 }, "value": "0-6 months", "label": "0-6 months" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 230, 152, 0, 255 ], "width": 1.5 }, "value": "6-24 months", "label": "6-24 months" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 1.5 }, "value": "36+ months", "label": "36+ months" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 178, 178, 178, 255 ], "width": 1.5 }, "value": "Not Treated", "label": "Not Treated" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 189, 200, 252, 255 ], "toColor": [ 189, 200, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 244, 252, 179, 255 ], "toColor": [ 244, 252, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 179, 180, 255 ], "toColor": [ 252, 179, 180, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 252, 242, 255 ], "toColor": [ 182, 252, 242, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 192, 244, 255 ], "toColor": [ 252, 192, 244, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 229, 215, 255 ], "toColor": [ 252, 229, 215, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 215, 235, 252, 255 ], "toColor": [ 215, 235, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 252, 197, 255 ], "toColor": [ 182, 252, 197, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 218, 182, 252, 255 ], "toColor": [ 218, 182, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 202, 221, 255 ], "toColor": [ 252, 202, 221, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 215, 252, 223, 255 ], "toColor": [ 215, 252, 223, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 247, 202, 255 ], "toColor": [ 252, 247, 202, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 230, 212, 252, 255 ], "toColor": [ 230, 212, 252, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": null }, "defaultVisibility": true, "extent": { "xmin": -105.0154267765154, "ymin": 39.828262006269455, "xmax": -104.82517873145984, "ymax": 40.000723636193996, "spatialReference": { "wkid": 4326, "latestWkid": 4326, "xyTolerance": 8.983152841195215E-9, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -400, "falseY": -400, "xyUnits": 9.999999999999999E8, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "Name", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "TYPE", "type": "esriFieldTypeInteger", "alias": "Type", "domain": null }, { "name": "PrimaryID", "type": "esriFieldTypeString", "alias": "Primary ID", "length": 20, "domain": null }, { "name": "UNITID", "type": "esriFieldTypeString", "alias": "Unit ID - Start", "length": 254, "domain": null }, { "name": "UNITID2", "type": "esriFieldTypeString", "alias": "Unit ID - End", "length": 254, "domain": null }, { "name": "DIAMETER", "type": "esriFieldTypeInteger", "alias": "Diameter (in)", "domain": null }, { "name": "MATERIAL", "type": "esriFieldTypeString", "alias": "Material", "length": 30, "domain": null }, { "name": "OWNER", "type": "esriFieldTypeString", "alias": "Owner", "length": 50, "domain": null }, { "name": "YEAR_INSTALLED", "type": "esriFieldTypeSmallInteger", "alias": "Year Installed", "domain": null }, { "name": "CIP_Year", "type": "esriFieldTypeSmallInteger", "alias": "CIP Year", "domain": null }, { "name": "Asbuilt_Length", "type": "esriFieldTypeDouble", "alias": "Asbuilt Length", "domain": null }, { "name": "COMMENT", "type": "esriFieldTypeString", "alias": "Comment", "length": 255, "domain": null }, { "name": "Location", "type": "esriFieldTypeString", "alias": "Location", "length": 250, "domain": null }, { "name": "GXP_ID", "type": "esriFieldTypeString", "alias": "GXP ID", "length": 50, "domain": null }, { "name": "TV_Pipe_Type", "type": "esriFieldTypeString", "alias": "TV - Material", "length": 30, "domain": null }, { "name": "TV_Pipe_Width", "type": "esriFieldTypeDouble", "alias": "TV - Diameter", "domain": null }, { "name": "TV_Pipe_Shape", "type": "esriFieldTypeString", "alias": "TV - Shape", "length": 35, "domain": null }, { "name": "TV_Date_Start", "type": "esriFieldTypeDate", "alias": "TV - Start Date", "length": 8, "domain": null }, { "name": "TV_Date_End", "type": "esriFieldTypeDate", "alias": "TV - End Date", "length": 8, "domain": null }, { "name": "TV_Reason", "type": "esriFieldTypeString", "alias": "TV - Reason", "length": 60, "domain": null }, { "name": "TV_Pipe_Condition", "type": "esriFieldTypeString", "alias": "TV - Pipe Condition", "length": 50, "domain": null }, { "name": "TV_Surface_Condition", "type": "esriFieldTypeString", "alias": "TV - Surface Condition", "length": 30, "domain": null }, { "name": "TV_Footage", "type": "esriFieldTypeDouble", "alias": "TV - Footage", "domain": null }, { "name": "TV_Operator", "type": "esriFieldTypeString", "alias": "TV - Operator", "length": 50, "domain": null }, { "name": "TV_Comment", "type": "esriFieldTypeString", "alias": "TV - Comment", "length": 255, "domain": null }, { "name": "DOCS_IDNum", "type": "esriFieldTypeInteger", "alias": "Docs ID", "domain": null }, { "name": "ASBUILT", "type": "esriFieldTypeString", "alias": "AsBuilt", "length": 250, "domain": null }, { "name": "LEGACY_ID", "type": "esriFieldTypeString", "alias": "Legacy ID", "length": 250, "domain": null }, { "name": "ID_UPDATE", "type": "esriFieldTypeString", "alias": "ID Update Note", "length": 250, "domain": null }, { "name": "GIS_STATUS", "type": "esriFieldTypeString", "alias": "GIS Status", "length": 50, "domain": null }, { "name": "CREATOR", "type": "esriFieldTypeString", "alias": "Creator", "length": 100, "domain": null }, { "name": "CREATE_DATE", "type": "esriFieldTypeDate", "alias": "Create Date", "length": 8, "domain": null }, { "name": "EDITOR", "type": "esriFieldTypeString", "alias": "Editor", "length": 100, "domain": null }, { "name": "EDIT_DATE", "type": "esriFieldTypeDate", "alias": "Edit Date", "length": 8, "domain": null }, { "name": "ENABLED", "type": "esriFieldTypeSmallInteger", "alias": "Enabled", "domain": null }, { "name": "GlobalID", "type": "esriFieldTypeGlobalID", "alias": "GlobalID", "length": 38, "domain": null }, { "name": "GIS_ID", "type": "esriFieldTypeInteger", "alias": "GIS ID", "domain": null }, { "name": "FID_1", "type": "esriFieldTypeInteger", "alias": "FID", "domain": null }, { "name": "FtrID", "type": "esriFieldTypeString", "alias": "FtrID", "length": 3, "domain": null }, { "name": "LastTrt", "type": "esriFieldTypeString", "alias": "LastTrt", "length": 9, "domain": null }, { "name": "Location_1", "type": "esriFieldTypeString", "alias": "Location", "length": 50, "domain": null }, { "name": "Name", "type": "esriFieldTypeString", "alias": "Name", "length": 13, "domain": null }, { "name": "PrimaryID_1", "type": "esriFieldTypeString", "alias": "PrimaryID", "length": 13, "domain": null }, { "name": "GXPID", "type": "esriFieldTypeString", "alias": "GXPID", "length": 23, "domain": null }, { "name": "UpMH", "type": "esriFieldTypeString", "alias": "UpMH", "length": 6, "domain": null }, { "name": "DnMH", "type": "esriFieldTypeString", "alias": "DnMH", "length": 6, "domain": null }, { "name": "Size", "type": "esriFieldTypeString", "alias": "Size", "length": 2, "domain": null }, { "name": "Feet", "type": "esriFieldTypeString", "alias": "Feet", "length": 6, "domain": null }, { "name": "Material_1", "type": "esriFieldTypeString", "alias": "Material", "length": 14, "domain": null }, { "name": "GuarEnd", "type": "esriFieldTypeString", "alias": "GuarEnd", "length": 9, "domain": null }, { "name": "NextTreate", "type": "esriFieldTypeString", "alias": "NextTreate", "length": 4, "domain": null }, { "name": "LastTreatmentDate", "type": "esriFieldTypeDate", "alias": "LastTreatmentDate", "length": 8, "domain": null }, { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null }, { "name": "Shape.STLength()", "type": "esriFieldTypeDouble", "alias": "Shape.STLength()", "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "R623_pk", "fields": "OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "UUID_623", "fields": "GlobalID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "S372_idx", "fields": "Shape", "isAscending": true, "isUnique": true, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": false, "capabilities": "Map,Query,Data", "maxRecordCount": 2000, "maxSelectionCount": 2000, "supportsStatistics": true, "supportsExceedsLimitStatistics": true, "supportsAdvancedQueries": true, "supportedQueryFormats": "JSON, geoJSON, PBF", "isDataVersioned": false, "ownershipBasedAccessControlForFeatures": {"allowOthersToQuery": true}, "useStandardizedQueries": true, "supportedSpatialRelationships": [ "esriSpatialRelIntersects", "esriSpatialRelContains", "esriSpatialRelCrosses", "esriSpatialRelEnvelopeIntersects", "esriSpatialRelIndexIntersects", "esriSpatialRelOverlaps", "esriSpatialRelTouches", "esriSpatialRelWithin", "esriSpatialRelRelation" ], "advancedQueryCapabilities": { "useStandardizedQueries": true, "supportsStatistics": true, "supportsPercentileStatistics": true, "supportsHavingClause": true, "supportsOrderBy": true, "supportsDistinct": true, "supportsCountDistinct": true, "supportsAdvancedQueryRelated": true, "supportsQueryRelatedPagination": true, "supportsPagination": true, "supportsLod": false, "supportsQueryWithLodSR": false, "supportsTrueCurve": true, "supportsQueryWithDatumTransformation": true, "supportsReturningQueryExtent": true, "supportsQueryWithDistance": true, "supportsSqlExpression": true, "supportsTimeRelation": true, "supportsSqlFormat": false, "supportsQueryAnalytic": true, "supportsCurrentUserQueries": true }, "supportsDatumTransformation": true, "advancedQueryAnalyticCapabilities": { "supportsLinearRegression": true, "supportsAsync": false, "supportsPercentileAnalytic": true }, "dateFieldsTimeReference": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasGeometryProperties": true, "geometryProperties": { "shapeLengthFieldName": "Shape.STLength()", "units": "esriMeters", "mapUnits": {"uwkid": 9001} }, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true }