{ "currentVersion": 10.91, "cimVersion": "2.9.0", "id": 0, "name": "Roads Cleaned by Litter Patrol", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPolyline", "sourceSpatialReference": { "wkid": 102695, "latestWkid": 2255, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -16151000, "falseY": -43523900, "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": "// roads which were cleaned within the last 30 days belong in the first group\nif (DateDiff(Now(), Date($feature.DATE), 'days') <= 30) {\n return \"Cleaned within the last 30 days\" }\n// roads which were cleaned more than 30 days ago but less than 100 days ago belong in the second group\nelse if (DateDiff(Now(), Date($feature.DATE), 'days') > 30 &&\nDateDiff(Now(), Date($feature.DATE), 'days') < 100) {\n return \"Cleaned between 30 to 100 days ago\" }\n// roads which were cleaned 100 days ago or more belong in the third group\nelse if (DateDiff(Now(), Date($feature.DATE), 'days') >= 100) {\n return \"Cleaned more than 100 days ago\" }\n//roads which do not satisfy any of the given conditions belong in the fourth group\nelse {\n return \"None of these conditions\" }", "valueExpressionTitle": "Custom", "uniqueValueInfos": [ { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 85, 255, 0, 255 ], "width": 4 }, "value": "Cleaned within the last 30 days", "label": "Cleaned within the last 30 days" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 255, 0, 255 ], "width": 4 }, "value": "Cleaned between 30 to 100 days ago", "label": "Cleaned between 30 to 100 days ago" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 170, 0, 255 ], "width": 4 }, "value": "Cleaned more than 100 days ago", "label": "Cleaned more than 100 days ago" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 189, 217, 252, 255 ], "toColor": [ 189, 217, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 252, 188, 255 ], "toColor": [ 179, 252, 188, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 184, 182, 255 ], "toColor": [ 252, 184, 182, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 182, 251, 255 ], "toColor": [ 252, 182, 251, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 245, 210, 255 ], "toColor": [ 252, 245, 210, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 187, 252, 246, 255 ], "toColor": [ 187, 252, 246, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 215, 238, 255 ], "toColor": [ 252, 215, 238, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 250, 252, 179, 255 ], "toColor": [ 250, 252, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 204, 192, 252, 255 ], "toColor": [ 204, 192, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 220, 252, 210, 255 ], "toColor": [ 220, 252, 210, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 215, 194, 255 ], "toColor": [ 252, 215, 194, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 204, 236, 252, 255 ], "toColor": [ 204, 236, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 184, 223, 255 ], "toColor": [ 252, 184, 223, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": null }, "defaultVisibility": true, "extent": { "xmin": 2311515.517808497, "ymin": 1904552.6251964867, "xmax": 2479466.749818746, "ymax": 1999532.3158141524, "spatialReference": { "wkid": 102695, "latestWkid": 2255, "xyTolerance": 0.003280833333333333, "zTolerance": 2, "mTolerance": 0.001, "falseX": -16151000, "falseY": -43523900, "xyUnits": 1.3724816813086346E8, "falseZ": 0, "zUnits": 1, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "NAME", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "ID", "type": "esriFieldTypeInteger", "alias": "ID", "domain": null }, { "name": "OBJECTID", "type": "esriFieldTypeInteger", "alias": "OBJECTID", "domain": null }, { "name": "NAME", "type": "esriFieldTypeString", "alias": "NAME", "length": 50, "domain": null }, { "name": "Length", "type": "esriFieldTypeDouble", "alias": "Length", "domain": null }, { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null }, { "name": "GlobalID", "type": "esriFieldTypeGUID", "alias": "GlobalID", "length": 38, "domain": null }, { "name": "DATE", "type": "esriFieldTypeDate", "alias": "DATE", "length": 8, "domain": null }, { "name": "INSPECTOR", "type": "esriFieldTypeString", "alias": "INSPECTOR", "length": 50, "domain": null }, { "name": "ROAD_ID", "type": "esriFieldTypeGUID", "alias": "ROAD_ID", "length": 38, "domain": null }, { "name": "ordered", "type": "esriFieldTypeDouble", "alias": "ordered", "domain": null }, { "name": "ESRI_OID", "type": "esriFieldTypeOID", "alias": "ESRI_OID", "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": null, "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": false, "capabilities": "Map", "maxRecordCount": 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, "supportsPagination": true, "supportsLod": false, "supportsQueryWithLodSR": false, "supportsTrueCurve": false, "supportsReturningQueryExtent": true, "supportsQueryWithDistance": true, "supportsSqlExpression": true, "supportsTimeRelation": true, "supportsSqlFormat": false, "supportsQueryAnalytic": 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": "4f3cc29ce434439abc32c8ea49329f69" }