{ "layers": [ { "currentVersion": 11.3, "cimVersion": "3.3.0", "id": 1, "name": "Sandsop status Extern", "type": "Feature Layer", "description": "geodata.samhallsservice.sandsop", "geometryType": "esriGeometryPolygon", "sourceSpatialReference": { "wkid": 3008, "latestWkid": 3008, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5473200, "falseY": -10002100, "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": "// Det verkar som att Today() är dagens datum klockan 00:00:00.\n// För \"today\" måste det se ut så: X >= Today() && X < DateAdd(Today(), 1, 'days')\n// EXEMPEL today: if ($feature.sopning_start_datum > Today() && $feature.sopning_start_datum < DateAdd(Today(), 1, 'days')) {return \"TEST today\"}\n// EXEMPEL tomorrow: if ($feature.sopning_start_datum > DateAdd(Today(), 1, 'days') && $feature.sopning_start_datum < DateAdd(Today(), 2, 'days')) {return \"TEST tomorrow\"}\n// EXEMPEL yesterday: if ($feature.sopning_start_datum > DateAdd(Today(), -1, 'days') && $feature.sopning_start_datum < Today()) {return \"TEST yesterday\"}\nif ($feature.sopning_start_datum > DateAdd(Today(), 1, 'days')) {return \"Sandsopning planerad\"}\nelse if ($feature.sopning_start_datum < DateAdd(Today(), 1, 'days') && $feature.sopning_slut_datum > Today()) {return \"Sandsopning pågår\"} // <= idag AND >= idag\nelse if ($feature.sopning_slut_datum < Today() && $feature.sopning_slut_datum > DateAdd(Today(), -3, 'months')) {return \"Sandsopning klar\"} // <= igår AND >= tre månader sedan", "valueExpressionTitle": "Custom", "defaultSymbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 255, 255, 255, 127 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 2 } }, "defaultLabel": "Ingen sandsopning", "uniqueValueGroups": [ { "heading": "Custom", "classes": [ { "label": "Sandsopning planerad", "description": "Sandsopning planerad", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 255, 170, 0, 127 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 2 } }, "values": [ [ "Sandsopning planerad" ] ] }, { "label": "Sandsopning pågår", "description": "Sandsopning pågår", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 255, 0, 0, 127 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 2 } }, "values": [ [ "Sandsopning pågår" ] ] }, { "label": "Sandsopning klar", "description": "Sandsopning klar", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 209, 255, 115, 127 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 2 } }, "values": [ [ "Sandsopning klar" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 255, 170, 0, 127 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 2 } }, "value": "Sandsopning planerad", "label": "Sandsopning planerad" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 255, 0, 0, 127 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 2 } }, "value": "Sandsopning pågår", "label": "Sandsopning pågår" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 209, 255, 115, 127 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 2 } }, "value": "Sandsopning klar", "label": "Sandsopning klar" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 212, 252, 210, 255 ], "toColor": [ 212, 252, 210, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 179, 251, 255 ], "toColor": [ 252, 179, 251, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 217, 252, 255 ], "toColor": [ 179, 217, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 190, 182, 255 ], "toColor": [ 252, 190, 182, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 233, 179, 255 ], "toColor": [ 252, 233, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 212, 242, 255 ], "toColor": [ 252, 212, 242, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 189, 252, 250, 255 ], "toColor": [ 189, 252, 250, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 183, 252, 255 ], "toColor": [ 179, 183, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 230, 215, 255 ], "toColor": [ 252, 230, 215, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 224, 252, 179, 255 ], "toColor": [ 224, 252, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 182, 222, 255 ], "toColor": [ 252, 182, 222, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 252, 185, 255 ], "toColor": [ 179, 252, 185, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 212, 207, 252, 255 ], "toColor": [ 212, 207, 252, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": [ { "labelExpressionInfo": { "expression": "$feature.distrikt", "title": "Custom" }, "labelPlacement": "esriServerPolygonPlacementAlwaysHorizontal", "multiPart": "labelLargest", "allowOverrun": true, "deconflictionStrategy": "dynamic", "repeatLabel": false, "useClippedGeometry": false, "stackLabel": true, "stackAlignment": "dynamic", "removeDuplicates": "none", "stackRowLength": 24, "useCodedValues": true, "maxScale": 0, "minScale": 100000, "name": "Class 1", "priority": -1, "symbol": { "type": "esriTS", "color": [ 0, 0, 0, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": [ 255, 255, 255, 255 ], "haloSize": 2, "font": { "family": "Tahoma", "size": 10, "style": "normal", "weight": "bold", "decoration": "none" } } } ] }, "defaultVisibility": true, "extent": { "xmin": 104052, "ymin": 6385813, "xmax": 135160, "ymax": 6419298, "spatialReference": { "wkid": 3008, "latestWkid": 3008, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5473200, "falseY": -10002100, "xyUnits": 10000, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "omrade", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "id", "type": "esriFieldTypeOID", "alias": "id", "domain": null }, { "name": "omrade", "type": "esriFieldTypeString", "alias": "Område", "length": 50, "domain": null }, { "name": "sopning_start_datum", "type": "esriFieldTypeDate", "alias": "Startdatum", "length": 8, "domain": null }, { "name": "sopning_slut_datum", "type": "esriFieldTypeDate", "alias": "Slutdatum", "length": 8, "domain": null }, { "name": "sopning_beskrivning", "type": "esriFieldTypeString", "alias": "Beskrivning (automatisk påfyllning)", "length": 50, "domain": null }, { "name": "url", "type": "esriFieldTypeString", "alias": "Länk", "length": 250, "domain": null }, { "name": "geom", "type": "esriFieldTypeGeometry", "alias": "geom", "domain": null }, { "name": "distrikt", "type": "esriFieldTypeString", "alias": "Distrikt", "length": 50, "domain": null }, { "name": "driftomrade", "type": "esriFieldTypeString", "alias": "Driftomrade", "length": 50, "domain": null } ], "geometryField": { "name": "geom", "type": "esriFieldTypeGeometry", "alias": "geom" }, "indexes": null, "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": true, "capabilities": "Map,Query,Data", "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, "supportsAdvancedQueryRelated": true, "supportsQueryRelatedPagination": true, "supportsPagination": true, "supportsLod": false, "supportsQueryWithLodSR": false, "supportsTrueCurve": true, "supportsQueryWithDatumTransformation": true, "supportsReturningQueryExtent": true, "supportsQueryWithDistance": true, "supportsSqlExpression": true, "supportsTimeRelation": true, "supportsSqlFormat": false, "supportsQueryAnalytic": true, "supportsCurrentUserQueries": true }, "supportsDatumTransformation": true, "advancedQueryAnalyticCapabilities": { "supportsLinearRegression": true, "supportsAsync": false, "supportsPercentileAnalytic": false }, "dateFieldsTimeReference": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "49e587e9c79546b9805e1a9c0069e215" } ], "tables": [] }