{ "currentVersion": 11.1, "cimVersion": "3.1.0", "id": 0, "name": "Water Hydrants", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPoint", "sourceSpatialReference": { "wkid": 102743, "latestWkid": 3566, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -119796900, "falseY": -89212200, "xyUnits": 3048.0060960121928, "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 the current date\nvar currentDate = Now()\n\n// Get the date from the LastExercisedDate field\nvar FlushedDate = $feature.LastDateFlushed\n\n// Check if the valve date exists and calculate the difference in years\nvar yearsDifference = IIf(IsEmpty(FlushedDate), null, DateDiff(currentDate, FlushedDate, \"years\"))\n\n// Determine if the valve has not been exercised in more than 3 years\nvar NotFlushed = !IsEmpty(yearsDifference) && yearsDifference > 3\n\n// Use a conditional renderer to categorize by type and whether it has been exercised\nvar display = when(\n $feature.WaterSystem == \"Spanish Fork\" && NotFlushed == false, \"Spanish Fork - Flushed\",\n $feature.WaterSystem == \"Spanish Fork\" && NotFlushed == true, \"Spanish Fork - Not Flushed\",\n \"Other\"\n)\n\n// Return the categorized display label\nreturn display", "valueExpressionTitle": "Custom", "uniqueValueInfos": [ { "symbol": { "type": "esriPMS", "url": "2609a8a5ee64760da3d594dfa6b1c76c", "imageData": "iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAYAAAAmlE46AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABA0lEQVQoka3TvyvFURjH8dfJLSkR/gA/UlYlZUREyWIyKIPBtZplEYMsFqNFkf/glpgUs814GcigiMVy9K0zfPve773q5lOnTk/n/TzP53k6FW2q8q9gZAJT+EEt8PwnGOnDOY7RjzNMtwQjKxjCE97TGYisoh64a1bxFL3pPpeLX+BSC/ADnfguxHvwWdpqZBYnGA5UI5N4zQYTucdNZDBQL1bcxUNKsoWZzG/y14H59L4BzHSFJYwlTwsYSW3Wko0Gj7fYxiMOsJeme51Ws4HDBjCwExlHNfCGzZz/l8Bi6XCSRtPesgR5decHUwauowtHhfgX1rBfCgaWC0BTtf07fgE1Bjp6AClzPwAAAABJRU5ErkJggg==", "contentType": "image/png", "width": 10, "height": 12, "angle": 0, "xoffset": 0, "yoffset": 1 }, "value": "Spanish Fork - Flushed", "label": "Spanish Fork - Flushed" }, { "symbol": { "type": "esriPMS", "url": "4d78a1435e11d028a8973c6e21354589", "imageData": "iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAYAAAAmlE46AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABVElEQVQoka2TvyuFURjHP8+hpET4A/xIWZWUEREli8mgDIZ7zns3syxikMVw7z13sSjyHygxKWab8TKQQRGLep9Hb93hdu+Lku92nnM+zznf79Np549q/1cwhDAOTJrZp3PurFwuP/wKhhB6gWNVPXDO9anqETD1I1goFJZVdVBE7kXkxcxegH7v/YqZ1arV6nUuKCKHQE99OduwdeKcOwXyQeAV6AA+murdZvaW+1Tv/YyIlM1sKMbokySZAJ6yYEIIN2Z2WSwWB0qlUq35xi3gtt4kqOo0MBhCyPy1AXOqmp1vAVHVcxFZBEaBzNM8MAy8ichZ3UaLxysR2QDugF0z23bO3VcqlQvv/YGZrQN7LWCMcTNJkjFV9THG52w6DU0fY4wLueFkStN0RET6swaNdTPragymBRSRNaBTVfebxvGepukqsJMLxhiXmoBv9eff8QXprY0IQX/+NgAAAABJRU5ErkJggg==", "contentType": "image/png", "width": 10, "height": 12, "angle": 0, "xoffset": 0, "yoffset": 1 }, "value": "Spanish Fork - Not Flushed", "label": "Spanish Fork - Not Flushed" }, { "symbol": { "type": "esriPMS", "url": "7b0e3c7ea54ae1c0c90d84ebfc3f1bc3", "imageData": "iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAYAAAAmlE46AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABLUlEQVQoka3TsUtcURDF4e+uCyJIRP0DYkRIGwiCZRQlgtgovCgIKVJEW+uQJsRCbGwsbUKM7mIvSKwEre1SqoViIUS0kdUJyiuW3WcE8VSXYX4zcw7csieq/KxgVLwVBnDt1laadvwoGD91Yk3JsltdWvzAu/+CUTUh9OAI50rOhe6omhIOU2aveGNYRUf+Hq6r/8IGD4H8RSuuGuovJBeFp0bFkLCCV+mD2VjXL5zeBRMV+9iJTS/TpMPGjV9xkA+ZwyB6YtOUGy0YUbvvbwLvtI0xvBY2lLxX05ufuZXbaPK4K5kX/ihbUPPtPt3Mb1XLwifJYhOYMl+i4g1m04QzfK7zf5Iyo4Xh5OqTdOcD6tVeH0wR+BFtWGqoX7oxg++FYMqMNwAP6sm/4x/vAlsUzNZtewAAAABJRU5ErkJggg==", "contentType": "image/png", "width": 10, "height": 12, "angle": 0, "xoffset": 0, "yoffset": 1 }, "value": "Other", "label": "Other" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 187, 207, 255 ], "toColor": [ 252, 187, 207, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 187, 252, 191, 255 ], "toColor": [ 187, 252, 191, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 192, 235, 252, 255 ], "toColor": [ 192, 235, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 194, 179, 252, 255 ], "toColor": [ 194, 179, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 236, 204, 255 ], "toColor": [ 252, 236, 204, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 228, 215, 252, 255 ], "toColor": [ 228, 215, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 210, 252, 231, 255 ], "toColor": [ 210, 252, 231, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 248, 187, 252, 255 ], "toColor": [ 248, 187, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 236, 252, 194, 255 ], "toColor": [ 236, 252, 194, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 206, 197, 255 ], "toColor": [ 252, 206, 197, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 201, 252, 255 ], "toColor": [ 179, 201, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 233, 179, 255 ], "toColor": [ 252, 233, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 194, 235, 255 ], "toColor": [ 252, 194, 235, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": null }, "defaultVisibility": false, "extent": { "xmin": 1587734.055049464, "ymin": 7123203.44002822, "xmax": 1638430.238761887, "ymax": 7229325.4220095575, "spatialReference": { "wkid": 102743, "latestWkid": 3566, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -119796900, "falseY": -89212200, "xyUnits": 3048.0060960121928, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "AreaName", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "Northing", "type": "esriFieldTypeDouble", "alias": "Northing", "domain": null }, { "name": "Easting", "type": "esriFieldTypeDouble", "alias": "Easting", "domain": null }, { "name": "Elevation", "type": "esriFieldTypeDouble", "alias": "Elevation", "domain": null }, { "name": "DeadEnd", "type": "esriFieldTypeString", "alias": "Dead End", "length": 10, "domain": { "type": "codedValue", "name": "Yes-No Boolean", "description": "Yes or No Boolean", "codedValues": [ { "name": "Yes", "code": "Yes" }, { "name": "No", "code": "No" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDuplicate" } }, { "name": "FlushSched", "type": "esriFieldTypeString", "alias": "Flush Schedule", "length": 15, "domain": { "type": "codedValue", "name": "UtilitiesFlushSchedule", "description": "Flush Schedule", "codedValues": [ { "name": "Bi-Monthly", "code": "Bi-Monthly" }, { "name": "Bi-Weekly", "code": "Bi-Weekly" }, { "name": "Monthly", "code": "Monthly" }, { "name": "Every Four Years", "code": "Quadrennial" }, { "name": "Tri-Annually", "code": "Tri-Annually" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDuplicate" } }, { "name": "LastDateFlushed", "type": "esriFieldTypeDate", "alias": "Last Date Flushed", "length": 8, "domain": null }, { "name": "addfeats_user", "type": "esriFieldTypeString", "alias": "Created By", "length": 50, "domain": null }, { "name": "addfeats_date", "type": "esriFieldTypeDate", "alias": "Date Created", "length": 8, "domain": null }, { "name": "editfeats_user", "type": "esriFieldTypeString", "alias": "Edited By", "length": 50, "domain": null }, { "name": "editfeats_date", "type": "esriFieldTypeDate", "alias": "Date Edited", "length": 8, "domain": null }, { "name": "YearInstalled", "type": "esriFieldTypeSmallInteger", "alias": "Installed Year", "domain": null }, { "name": "Abandoned", "type": "esriFieldTypeString", "alias": "Abandoned", "length": 10, "domain": { "type": "codedValue", "name": "Yes-No Boolean", "description": "Yes or No Boolean", "codedValues": [ { "name": "Yes", "code": "Yes" }, { "name": "No", "code": "No" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDuplicate" } }, { "name": "MainSize", "type": "esriFieldTypeSmallInteger", "alias": "Main Size", "domain": null }, { "name": "NotesConcerns", "type": "esriFieldTypeString", "alias": "Notes & Concerns", "length": 254, "domain": null }, { "name": "UpdateMaps", "type": "esriFieldTypeString", "alias": "Update Maps?", "length": 10, "domain": { "type": "codedValue", "name": "Yes-No Boolean", "description": "Yes or No Boolean", "codedValues": [ { "name": "Yes", "code": "Yes" }, { "name": "No", "code": "No" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDuplicate" } }, { "name": "PubliclyVisible", "type": "esriFieldTypeString", "alias": "Publicly Visible?", "length": 10, "domain": { "type": "codedValue", "name": "Yes-No Boolean", "description": "Yes or No Boolean", "codedValues": [ { "name": "Yes", "code": "Yes" }, { "name": "No", "code": "No" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDuplicate" } }, { "name": "AreaName", "type": "esriFieldTypeString", "alias": "Area Name", "length": 50, "domain": { "type": "codedValue", "name": "WaterValvesHydrantsAreas", "description": "Valves and Hydrants Exercising Program Area Names", "codedValues": [ { "name": "Canyon", "code": "Canyon" }, { "name": "Northwest", "code": "Northwest" }, { "name": "Northeast", "code": "Northeast" }, { "name": "Southwest", "code": "Southwest" }, { "name": "Southeast", "code": "Southeast" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDuplicate" } }, { "name": "LastFlushResult", "type": "esriFieldTypeString", "alias": "Last Flush Result", "length": 25, "domain": null }, { "name": "HydrantPressure", "type": "esriFieldTypeSmallInteger", "alias": "Hydrant Pressure", "domain": null }, { "name": "DeadEndLengthFt", "type": "esriFieldTypeSmallInteger", "alias": "Dead End Length Ft", "domain": null }, { "name": "DeadEndDiameterInches", "type": "esriFieldTypeSmallInteger", "alias": "Dead End Diameter Inches", "domain": null }, { "name": "RecommendedFlushTimeMins", "type": "esriFieldTypeSmallInteger", "alias": "Recommended Flush Time Mins", "domain": null }, { "name": "LastFlushTimeMins", "type": "esriFieldTypeSmallInteger", "alias": "Last Flush Time Mins", "domain": null }, { "name": "GallonsFlushed", "type": "esriFieldTypeSmallInteger", "alias": "Gallons Flushed", "domain": null }, { "name": "TotalTimeFlushed", "type": "esriFieldTypeSmallInteger", "alias": "Total Time Flushed", "domain": null }, { "name": "AvailableFireFlowGPM", "type": "esriFieldTypeSmallInteger", "alias": "Available Fire Flow GPM", "domain": null }, { "name": "WaterSystem", "type": "esriFieldTypeString", "alias": "Water System", "length": 25, "domain": { "type": "codedValue", "name": "UtilitiesHydrantsSystem", "description": "Which water System Does the Hydrant Belong in?", "codedValues": [ { "name": "Spanish Fork", "code": "Spanish Fork" }, { "name": "County", "code": "County" }, { "name": "Other City", "code": "Other City" }, { "name": "Covered Bridge Canyon", "code": "Covered Bridge Canyon" }, { "name": "Bird's Eye", "code": "Bird's Eye" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDuplicate" } }, { "name": "GlobalID", "type": "esriFieldTypeGlobalID", "alias": "GlobalID", "length": 38, "domain": null }, { "name": "created_user", "type": "esriFieldTypeString", "alias": "created_user", "length": 255, "domain": null }, { "name": "created_date", "type": "esriFieldTypeDate", "alias": "created_date", "length": 8, "domain": null }, { "name": "last_edited_user", "type": "esriFieldTypeString", "alias": "last_edited_user", "length": 255, "domain": null }, { "name": "last_edited_date", "type": "esriFieldTypeDate", "alias": "last_edited_date", "length": 8, "domain": null }, { "name": "TrimbleID", "type": "esriFieldTypeInteger", "alias": "Trimble ID", "domain": null }, { "name": "VerificationNeeded", "type": "esriFieldTypeString", "alias": "VerificationNeeded", "length": 255, "domain": { "type": "codedValue", "name": "Yes-No Boolean", "description": "Yes or No Boolean", "codedValues": [ { "name": "Yes", "code": "Yes" }, { "name": "No", "code": "No" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDuplicate" } }, { "name": "InCanyon", "type": "esriFieldTypeString", "alias": "In the Canyon?", "length": 5, "domain": { "type": "codedValue", "name": "Yes-No Boolean", "description": "Yes or No Boolean", "codedValues": [ { "name": "Yes", "code": "Yes" }, { "name": "No", "code": "No" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDuplicate" } }, { "name": "SHAPE", "type": "esriFieldTypeGeometry", "alias": "SHAPE", "domain": null } ], "geometryField": { "name": "SHAPE", "type": "esriFieldTypeGeometry", "alias": "SHAPE" }, "indexes": [ { "name": "R104_pk", "fields": "OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "UUID_104", "fields": "GlobalID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "UUID_OID_104", "fields": "GlobalID,OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "S80_idx", "fields": "SHAPE", "isAscending": true, "isUnique": true, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": false, "capabilities": "Query,Map,Data", "maxRecordCount": 2000, "supportsStatistics": true, "supportsExceedsLimitStatistics": true, "supportsAdvancedQueries": true, "supportedQueryFormats": "JSON, geoJSON, PBF", "isDataVersioned": true, "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, "supportsPagination": true, "supportsLod": false, "supportsQueryWithLodSR": false, "supportsTrueCurve": true, "supportsQueryWithDatumTransformation": true, "supportsReturningQueryExtent": true, "supportsQueryWithDistance": true, "supportsSqlExpression": true, "supportsTimeRelation": true, "supportsSqlFormat": false, "supportsQueryAnalytic": true }, "supportsDatumTransformation": true, "advancedQueryAnalyticCapabilities": { "supportsLinearRegression": true, "supportsAsync": false, "supportsPercentileAnalytic": true }, "dateFieldsTimeReference": { "timeZone": "Mountain Standard Time", "respectsDaylightSaving": true }, "preferredTimeReference": { "timeZone": "Mountain Standard Time", "respectsDaylightSaving": true }, "datesInUnknownTimezone": false, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "6df6545d556040e5b356eb1ab0539bb9" }