{ "currentVersion": 11.1, "cimVersion": "3.1.0", "id": 0, "name": "Inspection from Current Year", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPoint", "sourceSpatialReference": { "wkid": 102187, "latestWkid": 3776, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5622600, "falseY": -10001100, "xyUnits": 10000, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 }, "copyrightText": "", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "uniqueValue", "valueExpression": "//playground test variables. Use $feature. notation when implementing\n\n// vars to test if inspection is stale\nvar inspection_year = Year($feature.created_date) //e.g. test value: Date(2019,3,5) - inspection year. month integer ranges from 0-11, which is not intuitive. 0 is January. adjust date in statement as required\nvar current_year = Year(Date()) // current year\n\nif (inspection_year == current_year){\n return \"Current Year's Inspection\"}\nelse {return \"Previous Year or No Inspection\"}", "valueExpressionTitle": "Inspection Status", "uniqueValueInfos": [ { "symbol": { "type": "esriPMS", "url": "e6346fb59edf4e2cf995538054a578ca", "imageData": "iVBORw0KGgoAAAANSUhEUgAAABcAAAATCAYAAAB7u5a2AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABzElEQVQ4jWNhoCFgGRKG////X/rux0vqKgL6+6hi+P///6Wvvz8b8/b7M9XDTzdpCHKILWVgYKDc8P///5utuNnf9+HnG2slAe2VbnJRqYyMjNeR1bCQ69r+8wUpf/794nGRCZ9kKG7fxcjI+BRdLUmG////X/Pkix2Nsy7Xh2oIGb+wkwmYYyhu383IyPgJm3oWUgxecbN/9sZ7s63VBI3ABltIuNfi08OCzZBt9xfO9FKML2FkZDyFbjAXCy9DgGLqKpCLCTkIxXCQIQuvty879GSDARszx8z////7MDAw8MEMBqnJ0euChfEnkgzf+3hV/44Hiw0efLrOMOlCsQE7M+fKp1/uMoAM/vr7E0OeQe8FQ3H7Gdgij6DheqK2B5X5da0ffLrO8/r7U4bus1lg14LYQSqZL1zkwtPRkxvRhotxSrW/+v6M4e//P20HnqwDGwoCWkJmDC4y4atgcUCW4TALbr+7yPP196eq0y/3MIhySjP4KCaAg4MUg7EaDgIqgnqdxUYTeZtOJuaC0rOZmEc/KcGB13BGRsZP////r0nTbZRgY+R8Ls2nuIFUg3EazgC1gIGBIez///98xCQ7kgxHs4QsQNPKAgB9nsZezjxfowAAAABJRU5ErkJggg==", "contentType": "image/png", "width": 17, "height": 14, "angle": 0, "xoffset": -5, "yoffset": 5 }, "value": "Current Year's Inspection", "label": "Current Year's Inspection" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 194, 242, 255 ], "toColor": [ 252, 194, 242, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 185, 252, 179, 255 ], "toColor": [ 185, 252, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 184, 240, 252, 255 ], "toColor": [ 184, 240, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 218, 179, 255 ], "toColor": [ 252, 218, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 195, 252, 255 ], "toColor": [ 179, 195, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 184, 189, 255 ], "toColor": [ 252, 184, 189, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 234, 252, 207, 255 ], "toColor": [ 234, 252, 207, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 252, 228, 255 ], "toColor": [ 179, 252, 228, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 212, 225, 252, 255 ], "toColor": [ 212, 225, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 217, 210, 255 ], "toColor": [ 252, 217, 210, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 216, 184, 252, 255 ], "toColor": [ 216, 184, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 212, 232, 255 ], "toColor": [ 252, 212, 232, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 215, 252, 242, 255 ], "toColor": [ 215, 252, 242, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": null }, "defaultVisibility": true, "extent": { "xmin": -5622450.17161471, "ymin": -1.000096453265511E7, "xmax": 5622450.17161471, "ymax": 1.000096453265511E7, "spatialReference": { "wkid": 102187, "latestWkid": 3776, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5622600, "falseY": -10001100, "xyUnits": 10000, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "ASSET_ID", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "GlobalID", "type": "esriFieldTypeGUID", "alias": "GlobalID", "length": 38, "domain": null }, { "name": "OBJECTID", "type": "esriFieldTypeInteger", "alias": "OBJECTID", "domain": null }, { "name": "ASSET_ID", "type": "esriFieldTypeString", "alias": "ASSET_ID", "length": 30, "domain": null }, { "name": "Make_Model", "type": "esriFieldTypeString", "alias": "Make_Model", "length": 255, "domain": null }, { "name": "Status", "type": "esriFieldTypeString", "alias": "Status", "length": 10, "domain": null }, { "name": "FAC_Date", "type": "esriFieldTypeDate", "alias": "FAC_Date", "length": 8, "domain": null }, { "name": "Source", "type": "esriFieldTypeString", "alias": "Source", "length": 300, "domain": null }, { "name": "PhaseName", "type": "esriFieldTypeString", "alias": "PhaseName", "length": 150, "domain": null }, { "name": "Neighbourhood", "type": "esriFieldTypeString", "alias": "Neighbourhood", "length": 100, "domain": null }, { "name": "Install_Year", "type": "esriFieldTypeSmallInteger", "alias": "Install_Year", "domain": null }, { "name": "SHAPE", "type": "esriFieldTypeGeometry", "alias": "SHAPE", "domain": null }, { "name": "GDB_GEOMATTR_DATA", "type": "esriFieldTypeBlob", "alias": "GDB_GEOMATTR_DATA", "domain": null }, { "name": "ParentGUID", "type": "esriFieldTypeGUID", "alias": "ParentGUID", "length": 38, "domain": null }, { "name": "Static_PSI", "type": "esriFieldTypeSmallInteger", "alias": "Static_PSI", "domain": null }, { "name": "Dynamic_PSI", "type": "esriFieldTypeSmallInteger", "alias": "Dynamic_PSI", "domain": null }, { "name": "Condition", "type": "esriFieldTypeString", "alias": "Condition", "length": 10, "domain": null }, { "name": "Function_", "type": "esriFieldTypeString", "alias": "Function_", "length": 10, "domain": null }, { "name": "Capacity", "type": "esriFieldTypeString", "alias": "Capacity", "length": 10, "domain": null }, { "name": "Criticality", "type": "esriFieldTypeString", "alias": "Criticality", "length": 10, "domain": null }, { "name": "Renewal_Cost", "type": "esriFieldTypeDouble", "alias": "Renewal_Cost", "domain": null }, { "name": "Operating_Clearance", "type": "esriFieldTypeString", "alias": "Operating_Clearance", "length": 10, "domain": null }, { "name": "Traffic_Flange_Height", "type": "esriFieldTypeString", "alias": "Traffic_Flange_Height", "length": 255, "domain": null }, { "name": "Side_Ports", "type": "esriFieldTypeString", "alias": "Side_Ports", "length": 255, "domain": null }, { "name": "Pump_Port", "type": "esriFieldTypeString", "alias": "Pump_Port", "length": 255, "domain": null }, { "name": "Operation", "type": "esriFieldTypeString", "alias": "Operation", "length": 255, "domain": null }, { "name": "Hydrant_Drain", "type": "esriFieldTypeString", "alias": "Hydrant_Drain", "length": 10, "domain": null }, { "name": "Make_Model_Rel", "type": "esriFieldTypeString", "alias": "Make_Model_Rel", "length": 255, "domain": null }, { "name": "Body_Year", "type": "esriFieldTypeInteger", "alias": "Body_Year", "domain": null }, { "name": "Pump_Port_Type", "type": "esriFieldTypeString", "alias": "Pump_Port_Type", "length": 255, "domain": null }, { "name": "Comments", "type": "esriFieldTypeString", "alias": "Comments", "length": 400, "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": "W3_Operator", "type": "esriFieldTypeString", "alias": "W3_Operator", "length": 120, "domain": null }, { "name": "Water_Proximity", "type": "esriFieldTypeString", "alias": "Water_Proximity", "length": 10, "domain": null }, { "name": "Pressure_Test", "type": "esriFieldTypeString", "alias": "Pressure_Test", "length": 10, "domain": null }, { "name": "Inspection_Cycle", "type": "esriFieldTypeString", "alias": "Inspection_Cycle", "length": 30, "domain": null }, { "name": "ESRI_OID", "type": "esriFieldTypeOID", "alias": "ESRI_OID", "domain": null } ], "geometryField": { "name": "SHAPE", "type": "esriFieldTypeGeometry", "alias": "SHAPE" }, "indexes": [ { "name": "FDO_GlobalID", "fields": "GlobalID", "isAscending": true, "isUnique": true, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": false, "capabilities": "Map,Query,Data", "maxRecordCount": 2000, "supportsStatistics": true, "supportsExceedsLimitStatistics": true, "supportsAdvancedQueries": true, "hasZ": 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, "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": "UTC", "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": "7666e2317e14423d87447073a52f1b97" }