{ "currentVersion": 11.4, "cimVersion": "3.4.0", "id": 11, "name": "Koege_85fraktil", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPolyline", "sourceSpatialReference": { "wkid": 4326, "latestWkid": 4326, "xyTolerance": 8.983152841195215E-9, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -400, "falseY": -400, "xyUnits": 1.1258999068426238E13, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 }, "copyrightText": "", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "uniqueValue", "valueExpression": "// Define variables for speed limits and thresholds\nvar v85 = $feature.v85Speed // Hastighedsgrænse attributen\nvar maxSpeed = $feature.maxSpeed // Maksimal hastighed attributen\n\n// Calculate thresholds\nvar lowerThreshold = maxSpeed * 1.1 // Hastighedsgrænse + 10%\nvar upperThreshold = maxSpeed * 1.2 // Hastighedsgrænse + 20%\n\n// Check conditions and assign colors based on thresholds\nif (v85 <= lowerThreshold) {\n return \"green\" // 85% fraktil er under hastighedsgrænsen + 10%\n} \nelse if (v85 > lowerThreshold && v85 <= upperThreshold) {\n return \"yellow\" // 85% fraktil er mellem hastighedsgrænse + 10% og + 20%\n} \nelse if (v85 > upperThreshold) {\n return \"red\" // 85% fraktil er over hastighedsgrænse + 20%\n} ", "valueExpressionTitle": "Farvekode", "uniqueValueGroups": [ { "heading": "", "classes": [ { "label": "85% fraktil er under [hastighedsgrænsen + 10 %]", "description": "85% fraktil er under [hastighedsgrænsen + 10 %]", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 56, 168, 0, 255 ], "width": 1.5 }, "values": [ [ "green" ] ] }, { "label": "85% fraktil er mellem [hastighedsgrænse + 10 % og + 20%]", "description": "85% fraktil er mellem [hastighedsgrænse + 10 % og + 20%]", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 230, 230, 0, 255 ], "width": 1.5 }, "values": [ [ "yellow" ] ] }, { "label": "85% fraktil er over [hastighedsgrænse + 20%]", "description": "85% fraktil er over [hastighedsgrænse + 20%]", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 1.5 }, "values": [ [ "red" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 56, 168, 0, 255 ], "width": 1.5 }, "value": "green", "label": "85% fraktil er under [hastighedsgrænsen + 10 %]" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 230, 230, 0, 255 ], "width": 1.5 }, "value": "yellow", "label": "85% fraktil er mellem [hastighedsgrænse + 10 % og + 20%]" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 1.5 }, "value": "red", "label": "85% fraktil er over [hastighedsgrænse + 20%]" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 251, 252, 197, 255 ], "toColor": [ 251, 252, 197, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 194, 179, 252, 255 ], "toColor": [ 194, 179, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 182, 190, 255 ], "toColor": [ 252, 182, 190, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 239, 252, 255 ], "toColor": [ 179, 239, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 252, 182, 255 ], "toColor": [ 179, 252, 182, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 247, 210, 252, 255 ], "toColor": [ 247, 210, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 228, 212, 255 ], "toColor": [ 252, 228, 212, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 199, 252, 222, 255 ], "toColor": [ 199, 252, 222, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 249, 182, 252, 255 ], "toColor": [ 249, 182, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 215, 225, 252, 255 ], "toColor": [ 215, 225, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 194, 199, 252, 255 ], "toColor": [ 194, 199, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 210, 226, 255 ], "toColor": [ 252, 210, 226, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 214, 252, 197, 255 ], "toColor": [ 214, 252, 197, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": null }, "defaultVisibility": true, "extent": { "xmin": 683236.5070030761, "ymin": 6139615.629105136, "xmax": 705184.1520145461, "ymax": 6159798.703342488, "spatialReference": { "wkid": 25832, "latestWkid": 25832, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5120900, "falseY": -9998100, "xyUnits": 10000, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "segmentID", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null }, { "name": "segmentID", "type": "esriFieldTypeInteger", "alias": "segmentID", "domain": null }, { "name": "v85Speed", "type": "esriFieldTypeSingle", "alias": "v85Speed", "domain": null }, { "name": "averageSpe", "type": "esriFieldTypeSingle", "alias": "averageSpe", "domain": null }, { "name": "maxSpeed", "type": "esriFieldTypeSingle", "alias": "maxSpeed", "domain": null }, { "name": "optimalSpe", "type": "esriFieldTypeSingle", "alias": "optimalSpe", "domain": null }, { "name": "totalProbe", "type": "esriFieldTypeInteger", "alias": "totalProbe", "domain": null }, { "name": "roadClass", "type": "esriFieldTypeSmallInteger", "alias": "roadClass", "domain": null }, { "name": "FID", "type": "esriFieldTypeOID", "alias": "FID", "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "Shape", "fields": "Shape", "isAscending": true, "isUnique": false, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": false, "capabilities": "Map,Query,Data", "maxRecordCount": 2000, "maxSelectionCount": 2000, "supportsStatistics": false, "supportsExceedsLimitStatistics": false, "supportsAdvancedQueries": false, "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": false, "supportsPercentileStatistics": false, "supportsHavingClause": false, "supportsOrderBy": false, "supportsDistinct": false, "supportsCountDistinct": false, "supportsAdvancedQueryRelated": true, "supportsQueryRelatedPagination": true, "supportsPagination": false, "supportsLod": false, "supportsQueryWithLodSR": false, "supportsTrueCurve": true, "supportsQueryWithDatumTransformation": true, "supportsReturningQueryExtent": true, "supportsQueryWithDistance": true, "supportsSqlExpression": false, "supportsTimeRelation": true, "supportsSqlFormat": false, "supportsQueryAnalytic": false, "supportsCurrentUserQueries": true }, "supportsDatumTransformation": true, "dateFieldsTimeReference": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "237fd44ac6174361829c00bf47673345" }