{ "currentVersion": 10.91, "cimVersion": "2.9.0", "id": 1, "name": "Road Notices", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPolyline", "sourceSpatialReference": { "wkid": 102748, "latestWkid": 2285, "xyTolerance": 0.00328083333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -117104300, "falseY": -99539600, "xyUnits": 3048.00609601219, "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 closure type as a variable\nvar ClosureType = $feature.ClosureTypeRecord\n//return ClosureType\n\n//Road notices happening before today\nif(DateDiff(Now(), Date($feature.DateFrom), 'days') <0) {return \"Upcoming\"}\n\n//Active road notices\nelse if(DateDiff(Now(), Date($feature.DateFrom), 'days') >=0 &&\nDateDiff(Now(), Date($feature.DateTo), 'days') <=1) {return ClosureType}\n\n//Past road notices\nelse if (DateDiff(Now(), Date($feature.DateTo), 'days') >1) {return \"Completed\"}", "valueExpressionTitle": "Custom", "uniqueValueInfos": [ { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 0, 0, 255 ], "width": 20 }, "value": "Crews Working", "label": "Crews Working" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 0, 0, 255 ], "width": 16 }, "value": "Detour Route", "label": "Detour Route" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 255, 255, 255 ], "width": 8 }, "value": "Road Closed", "label": "Road Closed" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 255, 255, 255 ], "width": 11 }, "value": "Upcoming", "label": "Upcoming" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 227, 214, 148, 255 ], "toColor": [ 227, 214, 148, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 131, 101, 240, 255 ], "toColor": [ 131, 101, 240, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 212, 78, 132, 255 ], "toColor": [ 212, 78, 132, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 68, 129, 156, 255 ], "toColor": [ 68, 129, 156, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 102, 242, 90, 255 ], "toColor": [ 102, 242, 90, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 128, 77, 50, 255 ], "toColor": [ 128, 77, 50, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 84, 209, 163, 255 ], "toColor": [ 84, 209, 163, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 242, 90, 232, 255 ], "toColor": [ 242, 90, 232, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 106, 130, 78, 255 ], "toColor": [ 106, 130, 78, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 108, 72, 130, 255 ], "toColor": [ 108, 72, 130, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 247, 157, 124, 255 ], "toColor": [ 247, 157, 124, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 186, 165, 250, 255 ], "toColor": [ 186, 165, 250, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 188, 224, 79, 255 ], "toColor": [ 188, 224, 79, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": null }, "defaultVisibility": true, "extent": { "xmin": -2.003750706717919E7, "ymin": -9734966.346103208, "xmax": 2.00375070671792E7, "ymax": 6095856.805203899, "spatialReference": { "wkid": 102100, "latestWkid": 3857, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -20037700, "falseY": -30241100, "xyUnits": 1.4892314192838538E8, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "MRID", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "MRID", "type": "esriFieldTypeString", "alias": "MRID", "length": 10, "domain": null }, { "name": "ClosureType", "type": "esriFieldTypeString", "alias": "ClosureType", "length": 20, "domain": { "type": "codedValue", "name": "stRoadClosureReason", "description": "Reasons for road closure", "codedValues": [ { "name": "Road Closed", "code": "Road Closed" }, { "name": "Detour Route", "code": "Detour Route" }, { "name": "Crews Working", "code": "Crews Working" }, { "name": "Temporary No Parking", "code": "No Parking" }, { "name": "Scheduled Temporary No Parking", "code": "Scheduled No Parking" }, { "name": "Completed", "code": "Completed" }, { "name": "Upcoming", "code": "Upcoming" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "ClosureTypeRecord", "type": "esriFieldTypeString", "alias": "ClosureTypeRecord", "length": 254, "domain": { "type": "codedValue", "name": "stRoadClosureReason", "description": "Reasons for road closure", "codedValues": [ { "name": "Road Closed", "code": "Road Closed" }, { "name": "Detour Route", "code": "Detour Route" }, { "name": "Crews Working", "code": "Crews Working" }, { "name": "Temporary No Parking", "code": "No Parking" }, { "name": "Scheduled Temporary No Parking", "code": "Scheduled No Parking" }, { "name": "Completed", "code": "Completed" }, { "name": "Upcoming", "code": "Upcoming" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "Description", "type": "esriFieldTypeString", "alias": "Description", "length": 255, "domain": null }, { "name": "DateFrom", "type": "esriFieldTypeDate", "alias": "DateFrom", "length": 8, "domain": null }, { "name": "DateTo", "type": "esriFieldTypeDate", "alias": "DateTo", "length": 8, "domain": null }, { "name": "WebLink", "type": "esriFieldTypeString", "alias": "WebLink", "length": 255, "domain": null }, { "name": "SHAPE", "type": "esriFieldTypeGeometry", "alias": "SHAPE", "domain": null }, { "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": "SHAPE.STLength()", "type": "esriFieldTypeDouble", "alias": "SHAPE.STLength()", "domain": null } ], "geometryField": { "name": "SHAPE", "type": "esriFieldTypeGeometry", "alias": "SHAPE" }, "indexes": [ { "name": "R74_pk", "fields": "OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "UUID_74", "fields": "GlobalID", "isAscending": true, "isUnique": false, "description": "" }, { "name": "UUID_OID_74", "fields": "GlobalID,OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "S64_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": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasGeometryProperties": true, "geometryProperties": { "shapeLengthFieldName": "SHAPE.STLength()", "units": "esriFeet" }, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "2eb1336d45bd4b59bc4c4e07a26f830b" }