{ "currentVersion": 11.5, "cimVersion": "3.5.0", "id": 2, "name": "Reservoir Last Inspection", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPolygon", "sourceSpatialReference": { "wkid": 102654, "latestWkid": 2232, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -118767900, "falseY": -94525500, "xyUnits": 3048.0060960121928, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 }, "spatialReference": { "wkid": 102654, "latestWkid": 2232, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -118767900, "falseY": -94525500, "xyUnits": 3048.0060960121928, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 }, "copyrightText": "", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "uniqueValue", "valueExpression": "// Done / Due\nvar d = $feature.LAST_INSP_DATE;\nvar t = Today();\nvar done = !IsEmpty(d) && Year(d) == Year(t) && Month(d) == Month(t) && Day(d) == Day(t);\n\n// Level vs. max / min\nvar lvl = $feature.LAST_LAKE_LEVEL;\nvar state = \"In range\";\nif (!IsEmpty(lvl)) {\n if (!IsEmpty($feature.MAX_LEVEL) && lvl > $feature.MAX_LEVEL) {\n state = \"Above max\";\n } else if (!IsEmpty($feature.MIN_LEVEL) && lvl < $feature.MIN_LEVEL) {\n state = \"Below min\";\n }\n}\n\nreturn IIf(done, \"Done\", \"Due\") + \" - \" + state;\n\n", "valueExpressionTitle": "Custom", "uniqueValueGroups": [ { "heading": "Custom", "classes": [ { "label": "Done - Above max", "description": "Done - Above max", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 27, 150, 78, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 215, 25, 28, 255 ], "width": 2 } }, "values": [ [ "Done - Above max" ] ] }, { "label": "Done - In range", "description": "Done - In range", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 27, 150, 78, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 77, 77, 77, 255 ], "width": 1 } }, "values": [ [ "Done - In range" ] ] }, { "label": "Due - Below min", "description": "Due - Below min", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 240, 138, 43, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 33, 102, 172, 255 ], "width": 2 } }, "values": [ [ "Due - Below min" ] ] }, { "label": "Due - In range", "description": "Due - In range", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 240, 138, 43, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 77, 77, 77, 255 ], "width": 1 } }, "values": [ [ "Due - In range" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 27, 150, 78, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 215, 25, 28, 255 ], "width": 2 } }, "value": "Done - Above max", "label": "Done - Above max" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 27, 150, 78, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 77, 77, 77, 255 ], "width": 1 } }, "value": "Done - In range", "label": "Done - In range" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 240, 138, 43, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 33, 102, 172, 255 ], "width": 2 } }, "value": "Due - Below min", "label": "Due - Below min" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 240, 138, 43, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 77, 77, 77, 255 ], "width": 1 } }, "value": "Due - In range", "label": "Due - In range" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 240, 179, 255 ], "toColor": [ 252, 240, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 194, 179, 252, 255 ], "toColor": [ 194, 179, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 244, 252, 255 ], "toColor": [ 179, 244, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 184, 189, 255 ], "toColor": [ 252, 184, 189, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 252, 188, 255 ], "toColor": [ 182, 252, 188, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 189, 242, 255 ], "toColor": [ 252, 189, 242, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 210, 217, 252, 255 ], "toColor": [ 210, 217, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 235, 215, 255 ], "toColor": [ 252, 235, 215, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 207, 252, 226, 255 ], "toColor": [ 207, 252, 226, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 222, 252, 182, 255 ], "toColor": [ 222, 252, 182, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 212, 212, 255 ], "toColor": [ 252, 212, 212, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 199, 179, 255 ], "toColor": [ 252, 199, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 197, 252, 255 ], "toColor": [ 182, 197, 252, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": [ { "labelExpressionInfo": { "expression": "var lbl = \"\";\r\nif (!IsEmpty($feature.INSPECTION_ORDER)) {\r\n lbl = $feature.INSPECTION_ORDER + TextFormatting.NewLine;\r\n}\r\nlbl += $feature.LABEL;\r\n\r\nvar mn = $feature.MIN_LEVEL;\r\nvar mx = $feature.MAX_LEVEL;\r\nif (!IsEmpty(mn) && !IsEmpty(mx)) {\r\n lbl += \" (Min \" + Round(mn, 2) + \"/Max \" + Round(mx, 2) + \")\";\r\n} else if (!IsEmpty(mx)) {\r\n lbl += \" (Max \" + Round(mx, 2) + \")\";\r\n}\r\n\r\nif (!IsEmpty($feature.LAST_LAKE_LEVEL)) {\r\n lbl += TextFormatting.NewLine + \"Last: \" + Round($feature.LAST_LAKE_LEVEL, 2);\r\n}\r\nreturn lbl;\r\n\r\n\r\n\r\n\r\n\r\n", "title": "Custom" }, "labelPlacement": "esriServerPolygonPlacementAlwaysHorizontal", "multiPart": "labelLargest", "allowOverrun": true, "deconflictionStrategy": "dynamic", "repeatLabel": false, "useClippedGeometry": true, "stackLabel": true, "stackAlignment": "dynamic", "removeDuplicates": "none", "stackRowLength": 24, "useCodedValues": true, "maxScale": 0, "minScale": 0, "name": "Class 1", "priority": -1, "symbol": { "type": "esriTS", "color": [ 255, 255, 255, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": [ 0, 0, 0, 255 ], "haloSize": 1, "font": { "family": "Arial Narrow", "size": 10, "style": "normal", "weight": "bold", "decoration": "none" } } } ] }, "defaultVisibility": true, "extent": { "xmin": 3144036.1687502265, "ymin": 1727547.4676013887, "xmax": 3188287.637005642, "ymax": 1789909.0879566371, "spatialReference": { "wkid": 102654, "latestWkid": 2232, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -118767900, "falseY": -94525500, "xyUnits": 3048.0060960121928, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "LABEL", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "LABEL", "type": "esriFieldTypeString", "alias": "LABEL", "length": 50, "domain": null }, { "name": "INSPECTION_ORDER", "type": "esriFieldTypeSmallInteger", "alias": "INSPECTION_ORDER", "domain": null }, { "name": "RES_GLOBALID", "type": "esriFieldTypeGUID", "alias": "RES_GLOBALID", "length": 38, "domain": null }, { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null }, { "name": "LAST_INSP_DATE", "type": "esriFieldTypeDate", "alias": "LAST_INSP_DATE", "length": 8, "precision": 1, "domain": null }, { "name": "LAST_LAKE_LEVEL", "type": "esriFieldTypeDouble", "alias": "LAST_LAKE_LEVEL", "domain": null }, { "name": "LAST_LEVEL_DATE", "type": "esriFieldTypeDate", "alias": "LAST_LEVEL_DATE", "length": 8, "precision": 1, "domain": null }, { "name": "MAX_LEVEL", "type": "esriFieldTypeDouble", "alias": "MAX_LEVEL", "domain": null }, { "name": "MIN_LEVEL", "type": "esriFieldTypeDouble", "alias": "MIN_LEVEL", "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": null, "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": true, "capabilities": "Query,Map,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": { "timeZone": "Mountain Standard Time", "timeZoneIANA": "Etc/GMT+7", "respectsDaylightSaving": false }, "preferredTimeReference": { "timeZone": "Mountain Standard Time", "timeZoneIANA": "Etc/GMT+7", "respectsDaylightSaving": false }, "datesInUnknownTimezone": false, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "uniqueIdInfo": { "type": "simple", "fields": [ "OBJECTID" ], "OIDFieldContainsHashValue": false }, "maxUniqueIDCount": 100000 }