{ "layers": [ { "currentVersion": 11.3, "cimVersion": "3.3.0", "id": 1, "name": "Sandsop status Extern", "type": "Feature Layer", "parentLayer": null, "defaultVisibility": true, "minScale": 0, "maxScale": 0, "canScaleSymbols": false, "geometryType": "esriGeometryPolygon", "description": "geodata.samhallsservice.sandsop", "copyrightText": "", "editFieldsInfo": null, "ownershipBasedAccessControlForFeatures": null, "syncCanReturnChanges": false, "relationships": [], "isDataVersioned": false, "isDataArchived": false, "infoInEstimates": [ "count" ], "isDataBranchVersioned": false, "isDataReplicaTracked": false, "isCoGoEnabled": false, "supportsRollbackOnFailureParameter": true, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsStatistics": true, "supportsExceedsLimitStatistics": true, "supportsAdvancedQueries": true, "supportsValidateSQL": true, "supportsCoordinatesQuantization": true, "supportsQuantizationEditMode": true, "supportsCalculate": true, "supportsASyncCalculate": true, "supportsDatumTransformation": true, "advancedQueryCapabilities": { "supportsPagination": true, "supportsTrueCurve": true, "supportsQueryWithDistance": true, "supportsReturningQueryExtent": true, "supportsStatistics": true, "supportsPercentileStatistics": true, "supportsHavingClause": true, "supportsOrderBy": true, "supportsDistinct": true, "supportsCountDistinct": true, "supportsAdvancedQueryRelated": true, "supportsQueryRelatedPagination": true, "supportsCurrentUserQueries": true, "supportsQueryWithResultType": true, "supportsReturningGeometryCentroid": true, "supportsSqlExpression": true, "supportsQueryWithDatumTransformation": true, "supportsLod": false, "supportsQueryWithLodSR": false, "supportsQueryAnalytic": true }, "advancedQueryAnalyticCapabilities": { "supportsLinearRegression": true, "supportsAsync": true, "supportsPercentileAnalytic": false }, "advancedEditingCapabilities": { "supportedSqlFormatsInCalculate": [ "standard" ], "supportsAsyncApplyEdits": true, "supportsApplyEditsbyUploadID": true, "supportedApplyEditsUploadIDFormats": "JSON" }, "hasMetadata": 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 } }, "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 }, "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": [ 252, 197, 202, 255 ], "toColor": [ 252, 197, 202, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 252, 185, 255 ], "toColor": [ 182, 252, 185, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 190, 252, 255 ], "toColor": [ 179, 190, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 194, 247, 252, 255 ], "toColor": [ 194, 247, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 238, 179, 255 ], "toColor": [ 252, 238, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 251, 179, 252, 255 ], "toColor": [ 251, 179, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 242, 212, 252, 255 ], "toColor": [ 242, 212, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 215, 252, 221, 255 ], "toColor": [ 215, 252, 221, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 232, 212, 255 ], "toColor": [ 252, 232, 212, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 213, 252, 255 ], "toColor": [ 179, 213, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 211, 179, 252, 255 ], "toColor": [ 211, 179, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 228, 252, 192, 255 ], "toColor": [ 228, 252, 192, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 179, 210, 255 ], "toColor": [ 252, 179, 210, 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" } } } ] }, "hasM": false, "hasZ": false, "allowGeometryUpdates": true, "allowTrueCurvesUpdates": true, "onlyAllowTrueCurveUpdatesByTrueCurveClients": true, "hasAttachments": false, "supportsApplyEditsWithGlobalIds": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "objectIdField": "id", "globalIdField": "", "displayField": "omrade", "typeIdField": "", "subtypeField": "", "fields": [ { "name": "id", "type": "esriFieldTypeOID", "alias": "id", "domain": null, "editable": false, "nullable": false, "defaultValue": null, "modelName": "id" }, { "name": "omrade", "type": "esriFieldTypeString", "alias": "Område", "domain": null, "editable": false, "nullable": true, "length": 50, "defaultValue": null, "modelName": "omrade" }, { "name": "sopning_start_datum", "type": "esriFieldTypeDate", "alias": "Startdatum", "domain": null, "editable": false, "nullable": false, "length": 8, "defaultValue": null, "modelName": "sopning_start_datum" }, { "name": "sopning_slut_datum", "type": "esriFieldTypeDate", "alias": "Slutdatum", "domain": null, "editable": false, "nullable": false, "length": 8, "defaultValue": null, "modelName": "sopning_slut_datum" }, { "name": "sopning_beskrivning", "type": "esriFieldTypeString", "alias": "Beskrivning (automatisk påfyllning)", "domain": null, "editable": false, "nullable": true, "length": 50, "defaultValue": null, "modelName": "sopning_beskrivning" }, { "name": "url", "type": "esriFieldTypeString", "alias": "Länk", "domain": null, "editable": false, "nullable": false, "length": 250, "defaultValue": null, "modelName": "url" }, { "name": "distrikt", "type": "esriFieldTypeString", "alias": "Distrikt", "domain": null, "editable": false, "nullable": false, "length": 50, "defaultValue": null, "modelName": "distrikt" }, { "name": "driftomrade", "type": "esriFieldTypeString", "alias": "Driftomrade", "domain": null, "editable": false, "nullable": false, "length": 50, "defaultValue": null, "modelName": "driftomrade" } ], "geometryField": { "name": "geom", "type": "esriFieldTypeGeometry", "alias": "geom", "domain": null, "editable": true, "nullable": true, "defaultValue": null, "modelName": "geom" }, "datesInUnknownTimezone": false, "dateFieldsTimeReference": { "timeZone": "UTC", "respectsDaylightSaving": false }, "preferredTimeReference": null, "types": [], "templates": [ { "name": "Sandsop status Extern", "description": "", "prototype": { "attributes": {} }, "drawingTool": "esriFeatureEditToolPolygon" } ], "maxRecordCount": 2000, "supportedQueryFormats": "JSON, geoJSON, PBF", "supportedExportFormats": "sqlite,filegdb,shapefile,csv,geojson", "capabilities": "Query", "useStandardizedQueries": true, "supportedSpatialRelationships": [ "esriSpatialRelIntersects", "esriSpatialRelContains", "esriSpatialRelCrosses", "esriSpatialRelEnvelopeIntersects", "esriSpatialRelIndexIntersects", "esriSpatialRelOverlaps", "esriSpatialRelTouches", "esriSpatialRelWithin", "esriSpatialRelRelation" ], "standardMaxRecordCount": 4000, "tileMaxRecordCount": 4000, "standardMaxRecordCountNoGeometry": 32000, "maxRecordCountFactor": 1, "serviceItemId": "848d6dd71e9143e984c8fecd70f11513" } ], "tables": [] }