{ "layers": [ { "currentVersion": 11.5, "cimVersion": "3.5.0", "id": 0, "name": "Street Lights", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPoint", "sourceSpatialReference": { "wkid": 26917, "latestWkid": 26917, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5120900, "falseY": -9998100, "xyUnits": 10000, "falseZ": 0, "zUnits": 1, "falseM": 0, "mUnits": 1 }, "spatialReference": { "wkt2": "PROJCRS[\"NAD83 UTM, Zone 17 North, Meter\",BASEGEOGCRS[\"unnamed\",DATUM[\"WGS84\",ELLIPSOID[\"WGS84\",6378137.0,298.257223563,LENGTHUNIT[\"Meter\",1.0]]],PRIMEM[\"Greenwich\",0.0,ANGLEUNIT[\"Degree\",0.0174532925199433]],CS[ellipsoidal,2],ANGLEUNIT[\"Degree\",0.0174532925199433]],CONVERSION[\"Transverse_Mercator\",METHOD[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",500000.0,LENGTHUNIT[\"Meter\",1.0]],PARAMETER[\"False_Northing\",0.0,LENGTHUNIT[\"Meter\",1.0]],PARAMETER[\"Central_Meridian\",-81.0,ANGLEUNIT[\"Degree\",0.0174532925199433]],PARAMETER[\"Scale_Factor\",0.9996,SCALEUNIT[\"Unity\",1.0]],PARAMETER[\"Latitude_Of_Origin\",0.0,ANGLEUNIT[\"Degree\",0.0174532925199433]]],CS[Cartesian,2],AXIS[\"Easting (X)\",east,ORDER[1]],AXIS[\"Northing (Y)\",north,ORDER[2]],LENGTHUNIT[\"Meter\",1.0]]", "wkt": "PROJCS[\"NAD83 UTM, Zone 17 North, Meter\",GEOGCS[\"unnamed\",DATUM[\"WGS84\",SPHEROID[\"WGS84\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",-81.0],PARAMETER[\"Scale_Factor\",0.9996],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]", "xyTolerance": 0.001, "zTolerance": 2, "mTolerance": 0.001, "falseX": -5120900, "falseY": -9998100, "xyUnits": 4.504455473910538E8, "falseZ": 0, "zUnits": 1, "falseM": -100000, "mUnits": 10000 }, "copyrightText": "", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "uniqueValue", "valueExpression": "// Get the current date\nvar today = Now()\n\n// Extract the current month and year\nvar currentMonth = Month(today)\nvar currentYear = Year(today)\n\n// Define the start and end of the periods\nvar startOfWinterPeriod = Date(currentYear, 11, 1)\nvar endOfWinterPeriod = Date(currentYear + 1, 3, 1)\n\nvar startOfSpringPeriod = Date(currentYear, 3, 1)\nvar endOfSpringPeriod = Date(currentYear, 11, 1)\n\n// Extract the inspection date\nvar inspectionDate = $feature.Date_Inspected\nvar inspectionMonth = Month(inspectionDate)\nvar inspectionYear = Year(inspectionDate)\n\n// Check if the current date is within the November to March period\nif (today >= startOfWinterPeriod && today < endOfWinterPeriod) {\n // Check if the inspection was in November or December of the current year\n if (inspectionYear == currentYear && (inspectionMonth == 11 || inspectionMonth == 12)) {\n return \"Updated\"\n } else {\n return \"Not Updated\"\n }\n}\n// Check if the current date is within the March to October period\nelse if (today >= startOfSpringPeriod && today < endOfSpringPeriod) {\n // Check if the inspection was in March, April, or May of the current year\n if (inspectionYear == currentYear && (inspectionMonth == 3 || inspectionMonth == 4 || inspectionMonth == 5)) {\n return \"Updated\"\n } else {\n return \"Not Updated\"\n }\n} else {\n return \"Outside Period\"\n}", "valueExpressionTitle": "Custom", "defaultSymbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 130, 130, 130, 255 ], "size": 4, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.7 } }, "defaultLabel": "", "uniqueValueGroups": [ { "heading": "Custom", "classes": [ { "label": "Not Updated", "description": "Not Updated", "symbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 255, 255, 0, 255 ], "size": 10, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.6 } }, "values": [ [ "Not Updated" ] ] }, { "label": "Updated", "description": "Updated", "symbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 56, 168, 0, 255 ], "size": 10, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.6 } }, "values": [ [ "Updated" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 255, 255, 0, 255 ], "size": 10, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.6 } }, "value": "Not Updated", "label": "Not Updated" }, { "symbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 56, 168, 0, 255 ], "size": 10, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.6 } }, "value": "Updated", "label": "Updated" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 228, 192, 255 ], "toColor": [ 252, 228, 192, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 189, 182, 252, 255 ], "toColor": [ 189, 182, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 239, 252, 255 ], "toColor": [ 182, 239, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 252, 189, 255 ], "toColor": [ 179, 252, 189, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 189, 217, 255 ], "toColor": [ 252, 189, 217, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 237, 252, 187, 255 ], "toColor": [ 237, 252, 187, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 202, 252, 227, 255 ], "toColor": [ 202, 252, 227, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 217, 212, 252, 255 ], "toColor": [ 217, 212, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 189, 251, 255 ], "toColor": [ 252, 189, 251, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 208, 202, 255 ], "toColor": [ 252, 208, 202, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 213, 252, 255 ], "toColor": [ 179, 213, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 212, 247, 255 ], "toColor": [ 252, 212, 247, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 230, 252, 210, 255 ], "toColor": [ 230, 252, 210, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": [ { "labelExpressionInfo": { "expression": "$feature.LIGHT_ID", "title": "Custom" }, "labelPlacement": "esriServerPointLabelPlacementAboveRight", "deconflictionStrategy": "dynamic", "removeDuplicates": "none", "stackLabel": false, "useCodedValues": true, "maxScale": 0, "minScale": 10000, "name": "Class 1", "priority": -1, "symbol": { "type": "esriTS", "color": [ 78, 78, 78, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": [ 255, 255, 0, 255 ], "haloSize": 2, "font": { "family": "Arial", "size": 8, "style": "normal", "weight": "bold", "decoration": "none" } } } ] }, "defaultVisibility": true, "extent": { "xmin": 522322.48799982824, "ymin": 4714270.10661718, "xmax": 570886.2668994671, "ymax": 4760814.241717653, "spatialReference": { "wkt2": "PROJCRS[\"NAD83 UTM, Zone 17 North, Meter\",BASEGEOGCRS[\"unnamed\",DATUM[\"WGS84\",ELLIPSOID[\"WGS84\",6378137.0,298.257223563,LENGTHUNIT[\"Meter\",1.0]]],PRIMEM[\"Greenwich\",0.0,ANGLEUNIT[\"Degree\",0.0174532925199433]],CS[ellipsoidal,2],ANGLEUNIT[\"Degree\",0.0174532925199433]],CONVERSION[\"Transverse_Mercator\",METHOD[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",500000.0,LENGTHUNIT[\"Meter\",1.0]],PARAMETER[\"False_Northing\",0.0,LENGTHUNIT[\"Meter\",1.0]],PARAMETER[\"Central_Meridian\",-81.0,ANGLEUNIT[\"Degree\",0.0174532925199433]],PARAMETER[\"Scale_Factor\",0.9996,SCALEUNIT[\"Unity\",1.0]],PARAMETER[\"Latitude_Of_Origin\",0.0,ANGLEUNIT[\"Degree\",0.0174532925199433]]],CS[Cartesian,2],AXIS[\"Easting (X)\",east,ORDER[1]],AXIS[\"Northing (Y)\",north,ORDER[2]],LENGTHUNIT[\"Meter\",1.0]]", "wkt": "PROJCS[\"NAD83 UTM, Zone 17 North, Meter\",GEOGCS[\"unnamed\",DATUM[\"WGS84\",SPHEROID[\"WGS84\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",-81.0],PARAMETER[\"Scale_Factor\",0.9996],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]", "xyTolerance": 0.001, "zTolerance": 2, "mTolerance": 0.001, "falseX": -5120900, "falseY": -9998100, "xyUnits": 4.504455473910538E8, "falseZ": 0, "zUnits": 1, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": true, "attachmentProperties": [ { "name": "id", "fieldName": "ATTACHMENTID", "isEnabled": true }, { "name": "globalid", "fieldName": "GLOBALID", "isEnabled": false }, { "name": "keywords", "fieldName": "KEYWORDS", "isEnabled": false }, { "name": "name", "fieldName": "ATT_NAME", "isEnabled": true }, { "name": "contentType", "fieldName": "CONTENT_TYPE", "isEnabled": true }, { "name": "size", "fieldName": "DATA_SIZE", "isEnabled": true }, { "name": "exifInfo", "fieldName": "EXIFINFO", "isEnabled": false } ], "attachmentFields": [ { "name": "ATTACHMENTID", "type": "esriFieldTypeOID", "alias": "ATTACHMENTID", "editable": false, "nullable": false, "length": 4, "domain": null }, { "name": "ATT_NAME", "type": "esriFieldTypeString", "alias": "ATT_NAME", "editable": true, "nullable": false, "length": 250, "domain": null }, { "name": "CONTENT_TYPE", "type": "esriFieldTypeString", "alias": "CONTENT_TYPE", "editable": true, "nullable": false, "length": 150, "domain": null }, { "name": "DATA_SIZE", "type": "esriFieldTypeInteger", "alias": "DATA_SIZE", "editable": true, "nullable": false, "length": 4, "domain": null } ], "supportsAttachmentsResizing": true, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "TOWN", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "LIGHT_ID", "type": "esriFieldTypeDouble", "alias": "LIGHT_ID", "domain": null }, { "name": "TOWN", "type": "esriFieldTypeString", "alias": "TOWN", "length": 50, "domain": null }, { "name": "OWNED_BY", "type": "esriFieldTypeString", "alias": "OWNED_BY", "length": 14, "domain": null }, { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null }, { "name": "Date_Inspected", "type": "esriFieldTypeDate", "alias": "Date_Inspected", "length": 8, "domain": null }, { "name": "InspectedBy", "type": "esriFieldTypeString", "alias": "InspectedBy", "length": 255, "domain": { "type": "codedValue", "name": "SL_Inspectors", "description": "People who will be inspecting street lights", "codedValues": [ { "name": "Rob Marsh", "code": "Rob Marsh" }, { "name": "Jay Manning", "code": "Jay Manning" }, { "name": "Derek Harding", "code": "Derek Harding" }, { "name": "Josh Seguin", "code": "Josh Seguin" }, { "name": "Rick Simon", "code": "Rick Simon" }, { "name": "Darnell Bernardo", "code": "Darnell Bernardo" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "Issue", "type": "esriFieldTypeString", "alias": "Issue", "length": 255, "domain": { "type": "codedValue", "name": "SL_Issues", "description": "Street Light Issues", "codedValues": [ { "name": "Won't Turn On", "code": "On" }, { "name": "Won't Turn Off", "code": "Off" }, { "name": "Flashing", "code": "Flashing" }, { "name": "None", "code": "None" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "TreeTrimmingRequired", "type": "esriFieldTypeString", "alias": "TreeTrimmingRequired", "length": 255, "domain": { "type": "codedValue", "name": "SL_Tree_Trimming", "description": "Tree Trimming Required", "codedValues": [ { "name": "Yes", "code": "Yes" }, { "name": "No", "code": "No" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "Comments", "type": "esriFieldTypeString", "alias": "Comments", "length": 1000, "domain": null }, { "name": "OID_", "type": "esriFieldTypeInteger", "alias": "OID_", "domain": null }, { "name": "MATERIAL", "type": "esriFieldTypeString", "alias": "MATERIAL", "length": 11, "domain": null }, { "name": "STYLE", "type": "esriFieldTypeString", "alias": "STYLE", "length": 13, "domain": null }, { "name": "STREET", "type": "esriFieldTypeString", "alias": "STREET", "length": 37, "domain": null }, { "name": "YEAR_CHECK", "type": "esriFieldTypeDouble", "alias": "YEAR_CHECK", "domain": null }, { "name": "STATUS", "type": "esriFieldTypeString", "alias": "STATUS", "length": 50, "domain": null }, { "name": "TYPE", "type": "esriFieldTypeString", "alias": "TYPE", "length": 254, "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "R55_pk", "fields": "OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "S25_idx", "fields": "Shape", "isAscending": true, "isUnique": true, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": true, "capabilities": "Map,Query,Data", "maxRecordCount": 1000, "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, "supportsQueryAttachments": true, "supportsQueryAttachmentsWithReturnUrl": true, "supportsQueryAnalytic": true, "supportsCurrentUserQueries": true }, "supportsDatumTransformation": true, "advancedQueryAnalyticCapabilities": { "supportsLinearRegression": true, "supportsAsync": false, "supportsPercentileAnalytic": true }, "dateFieldsTimeReference": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "aedf3c72b4f740f682f5635b7c3af16a" } ], "tables": [] }