{ "isCoGoEnabled": false, "extent": { "ymin": 7210834.760000002, "xmin": 354575.6500000004, "ymax": 7688138, "xmax": 621156.7300000004, "spatialReference": { "falseM": -100000, "xyTolerance": 0.001, "mUnits": 10000, "zUnits": 10000, "latestWkid": 25833, "zTolerance": 0.001, "wkid": 25833, "xyUnits": 10000, "mTolerance": 0.001, "falseX": -5120900, "falseY": -9998100, "falseZ": -100000 } }, "isDataBranchVersioned": false, "supportsApplyEditsWithGlobalIds": false, "maxRecordCount": 2000, "infoInEstimates": [ "extent", "count" ], "datesInUnknownTimezone": false, "type": "Feature Layer", "onlyAllowTrueCurveUpdatesByTrueCurveClients": true, "supportsAttachmentsByUploadId": true, "relationships": [], "supportsAttachmentsResizing": true, "cimVersion": "3.3.0", "isDataArchived": false, "id": 3, "supportsStatistics": true, "supportedExportFormats": "sqlite,filegdb,shapefile,csv,geojson", "standardMaxRecordCount": 2000, "isDataVersioned": false, "templates": [ { "name": "Anadrome vassdrag yttergrense og linjer", "description": "", "drawingTool": "esriFeatureEditToolLine", "prototype": { "attributes": { "sjoorret_apner": null, "datafangstdato": null, "fylke": null, "nøyaktighet": null, "apner": null, "sjoorret_stenger": null, "lakseregisteret": null, "stenger": null, "spesielle_bestemmelser": null, "objtype": null, "sjoroye_stenger": null, "produksjon": null, "kommune": null, "sjoroye_apner": null, "laks_stenger": null, "målemetode": null, "stengtsb": null, "laks_apner": null, "vassdrag": null, "i_lakseregisteret": null, "vnr": null, "datagrunnlag": null, "status": null } } } ], "hasGeometryProperties": true, "supportsAdvancedQueries": true, "parentLayer": null, "currentVersion": 11.3, "canScaleSymbols": false, "hasZ": false, "advancedEditingCapabilities": { "supportsAsyncApplyEdits": true, "supportsApplyEditsbyUploadID": true, "supportsReturnEditResults": true, "supportedSqlFormatsInCalculate": [ "standard" ], "supportedApplyEditsUploadIDFormats": "JSON" }, "objectIdField": "objectid", "supportsQuantizationEditMode": true, "name": "Anadrome vassdrag yttergrense og linjer", "allowTrueCurvesUpdates": false, "displayField": "vassdrag", "supportsCalculate": true, "fields": [ { "nullable": false, "defaultValue": null, "editable": false, "length": 4, "type": "esriFieldTypeOID", "modelName": "objectid", "domain": null, "name": "objectid", "alias": "OBJECTID_1" }, { "modelName": "vassdrag", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "vassdrag", "length": 100, "alias": "Vassdrag", "type": "esriFieldTypeString" }, { "modelName": "vassdragsnummer", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "vnr", "length": 50, "alias": "vnr", "type": "esriFieldTypeString" }, { "modelName": "status", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "status", "length": 255, "alias": "Status", "type": "esriFieldTypeString" }, { "modelName": "stengtsb", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "stengtsb", "length": 255, "alias": "StengtSB", "type": "esriFieldTypeString" }, { "modelName": "åpner", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "precision": 1, "name": "apner", "length": 29, "alias": "Åpner", "type": "esriFieldTypeDate" }, { "modelName": "stenger", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "precision": 1, "name": "stenger", "length": 29, "alias": "Stenger", "type": "esriFieldTypeDate" }, { "modelName": "fylke", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "fylke", "length": 255, "alias": "Fylke", "type": "esriFieldTypeString" }, { "modelName": "laks_åpner", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "precision": 1, "name": "laks_apner", "length": 29, "alias": "Laks åpner", "type": "esriFieldTypeDate" }, { "modelName": "laks_stenger", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "precision": 1, "name": "laks_stenger", "length": 29, "alias": "Laks stenger", "type": "esriFieldTypeDate" }, { "modelName": "sjøørret_åpner", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "precision": 1, "name": "sjoorret_apner", "length": 29, "alias": "Sjøørret åpner", "type": "esriFieldTypeDate" }, { "modelName": "sjøørret_stenger", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "precision": 1, "name": "sjoorret_stenger", "length": 29, "alias": "Sjøørret stenger", "type": "esriFieldTypeDate" }, { "modelName": "sjørøye_åpner", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "precision": 1, "name": "sjoroye_apner", "length": 29, "alias": "Sjørøye åpner", "type": "esriFieldTypeDate" }, { "modelName": "lenke", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "lakseregisteret", "length": 255, "alias": "Lakseregisteret", "type": "esriFieldTypeString" }, { "modelName": "sjørøye_stenger", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "precision": 1, "name": "sjoroye_stenger", "length": 29, "alias": "Sjørøye stenger", "type": "esriFieldTypeDate" }, { "modelName": "spesielle_bestemmelser", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "spesielle_bestemmelser", "length": 255, "alias": "Spesielle bestemmelser", "type": "esriFieldTypeString" }, { "modelName": "i_lakseregisteret", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "i_lakseregisteret", "alias": "I lakseregisteret", "type": "esriFieldTypeSmallInteger" }, { "modelName": "kommune", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "kommune", "length": 255, "alias": "Kommune", "type": "esriFieldTypeString" }, { "modelName": "produksjon", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "produksjon", "length": 100, "alias": "Produksjon", "type": "esriFieldTypeString" }, { "modelName": "datagrunnlag", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "datagrunnlag", "length": 50, "alias": "Datagrunnlag", "type": "esriFieldTypeString" }, { "modelName": "objtype", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "objtype", "length": 30, "alias": "objtype", "type": "esriFieldTypeString" }, { "modelName": "målemetode", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "målemetode", "alias": "Målemetode", "type": "esriFieldTypeSmallInteger" }, { "modelName": "nøyaktighet", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "name": "nøyaktighet", "alias": "Nøyaktighet", "type": "esriFieldTypeInteger" }, { "modelName": "datafangstdato", "nullable": true, "editable": true, "defaultValue": null, "domain": null, "precision": 1, "name": "datafangstdato", "length": 29, "alias": "Datafangstdato", "type": "esriFieldTypeDate" }, { "virtual": true, "nullable": true, "editable": false, "defaultValue": null, "domain": null, "name": "SHAPE__Length", "alias": "SHAPE__Length", "type": "esriFieldTypeDouble" } ], "maxRecordCountFactor": 1, "dateFieldsTimeReference": { "respectsDaylightSaving": false, "timeZone": "UTC" }, "supportsFieldDescriptionProperty": true, "hasM": false, "allowGeometryUpdates": true, "useStandardizedQueries": true, "globalIdField": null, "description": "", "syncCanReturnChanges": true, "supportsAsyncDelete": true, "supportedSpatialRelationships": [ "esriSpatialRelIntersects", "esriSpatialRelContains", "esriSpatialRelCrosses", "esriSpatialRelEnvelopeIntersects", "esriSpatialRelOverlaps", "esriSpatialRelTouches", "esriSpatialRelWithin" ], "geometryProperties": { "shapeLengthFieldName": "SHAPE__Length", "units": "esriMeters" }, "supportsRollbackOnFailureParameter": true, "isDataReplicaTracked": false, "standardMaxRecordCountNoGeometry": 16000, "supportsTruncate": true, "indexes": [ { "name": "r252_sde_rowid_uk", "isUnique": true, "description": "", "fields": "objectid", "isAscending": true }, { "name": "a219_ix1", "isUnique": false, "description": "", "fields": "shape", "isAscending": true } ], "supportedAppendSourceFilterFormats": "featureService", "editFieldsInfo": null, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "GUIDFormat": "O", "minScale": 1000000, "hasAttachments": false, "queryBinsCapabilities": { "supportedStatisticTypes": [ "count", "sum", "min", "max", "avg", "stddev", "var", "percentile_cont", "percentile_disc" ], "supportsFixedIntervalBin": true, "supportsAutoIntervalBin": true, "supportsFixedBoundariesBin": true, "supportsDateBin": true }, "advancedQueryCapabilities": { "supportsSqlExpression": true, "supportsQueryWithResultType": true, "supportsQueryRelatedPagination": true, "supportsQueryWithCacheHint": false, "supportsQueryWithDatumTransformation": true, "supportsCurrentUserQueries": true, "supportsQueryAttachmentsWithReturnUrl": true, "supportsDefaultSR": true, "supportsQueryDateBins": false, "supportsQueryWithLodSR": true, "supportsPaginationOnAggregatedQueries": true, "supportsPagination": true, "supportsMaxRecordCountFactor": true, "supportsStatistics": true, "supportsOrderBy": true, "supportsReturningGeometryProperties": true, "supportsFullTextSearch": false, "supportsQueryWithDistance": true, "supportsLod": true, "supportsCountDistinct": true, "supportsAdvancedQueryRelated": true, "supportsQueryAttachments": true, "supportsReturningQueryExtent": true, "supportsQueryAttachmentsCountOnly": true, "supportsOrderByOnlyOnLayerFields": false, "supportsOutFieldSqlExpression": true, "supportsTopFeaturesQuery": true, "supportsReturningGeometryEnvelope": true, "supportsDistinct": true, "supportsReturningGeometryCentroid": false, "supportsQueryAnalytic": true, "supportsPercentileStatistics": true, "supportsHavingClause": true }, "subtypeField": "", "supportsValidateSQL": true, "enableZDefaults": true, "serviceItemId": "7826da41534945dea906d33d10e84ed1", "allowUpdateWithoutMValues": true, "supportsCoordinatesQuantization": true, "types": [], "capabilities": "Query", "maxScale": 0, "supportsAppend": true, "supportsExceedsLimitStatistics": true, "defaultVisibility": true, "advancedQueryAnalyticCapabilities": { "supportsAsync": true, "supportsLinearRegression": true, "supportsPercentileAnalytic": false }, "hasMetadata": true, "supportedAppendFormats": "shapefile,geojson,csv,featureCollection,excel,jsonl,featureService", "tileMaxRecordCount": 2000, "typeIdField": "", "supportsASyncCalculate": true, "supportedQueryFormats": "JSON, geoJSON, PBF", "sqlParserVersion": "PG_11.2.0", "drawingInfo": { "renderer": { "uniqueValueGroups": [ { "heading": "Fisketider", "classes": [ { "symbol": { "color": [ 87, 255, 0, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "values": [ [ "Åpent for fiske" ] ], "description": "Åpent for fiske", "label": "Åpent for fiske" }, { "symbol": { "color": [ 255, 255, 0, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "values": [ [ "Åpner for fiske senere denne sesongen" ] ], "description": "Åpner for fiske senere denne sesongen", "label": "Åpner for fiske senere denne sesongen" }, { "symbol": { "color": [ 242, 175, 46, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "values": [ [ "Sesong avsluttet" ] ], "description": "Sesong avsluttet", "label": "Sesong avsluttet" }, { "symbol": { "color": [ 255, 0, 0, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "values": [ [ "Ikke åpnet for fiske" ] ], "description": "Ikke åpnet for fiske", "label": "Ikke åpnet for fiske" } ] } ], "valueExpression": "// Retrieve the values of the fields\nvar status = $feature.status;\nvar apner = Date($feature.apner);\nvar stenger = Date($feature.stenger);\nvar today = Now();\n\n// Check the value of \"Stengt\"\nif (status == \"Ikke åpnet\") {\n return \"Ikke åpnet for fiske\"; // Replace with the value or color you want for \"Ikke åpent\"\n} else if (status == \"Åpnet\") {\n // Check if today's date is between \"Åpner\" and \"Stenger\"\n if (today >= apner && today <= stenger) {\n return \"Åpent for fiske\"; // Replace with the value or color you want for the open period\n } else if (today < apner) {\n return \"Åpner for fiske senere denne sesongen\"; // Replace with the value or color for before opening\n } else if (today > stenger) {\n return \"Sesong avsluttet\"; // Replace with the value or color for after closing\n }\n}\n\n// Default value if none of the conditions are met\nreturn \"Unknown\";", "authoringInfo": { "colorRamp": { "colorRamps": [ { "toColor": [ 240, 210, 252, 255 ], "fromColor": [ 240, 210, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 183, 252, 182, 255 ], "fromColor": [ 183, 252, 182, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 222, 189, 255 ], "fromColor": [ 252, 222, 189, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 184, 249, 252, 255 ], "fromColor": [ 184, 249, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 187, 196, 255 ], "fromColor": [ 252, 187, 196, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 244, 252, 182, 255 ], "fromColor": [ 244, 252, 182, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 182, 203, 252, 255 ], "fromColor": [ 182, 203, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 187, 252, 220, 255 ], "fromColor": [ 187, 252, 220, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 179, 244, 255 ], "fromColor": [ 252, 179, 244, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 212, 232, 252, 255 ], "fromColor": [ 212, 232, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 201, 182, 252, 255 ], "fromColor": [ 201, 182, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 244, 252, 212, 255 ], "fromColor": [ 244, 252, 212, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 212, 230, 255 ], "fromColor": [ 252, 212, 230, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" } ], "type": "multipart" } }, "defaultSymbol": { "color": [ 150, 138, 196, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "valueExpressionTitle": "Fisketider", "defaultLabel": "Datafeil", "uniqueValueInfos": [ { "symbol": { "color": [ 87, 255, 0, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "label": "Åpent for fiske", "value": "Åpent for fiske" }, { "symbol": { "color": [ 255, 255, 0, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "label": "Åpner for fiske senere denne sesongen", "value": "Åpner for fiske senere denne sesongen" }, { "symbol": { "color": [ 242, 175, 46, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "label": "Sesong avsluttet", "value": "Sesong avsluttet" }, { "symbol": { "color": [ 255, 0, 0, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "label": "Ikke åpnet for fiske", "value": "Ikke åpnet for fiske" } ], "type": "uniqueValue", "fieldDelimiter": "," }, "scaleSymbols": true, "transparency": 0, "labelingInfo": null }, "geometryField": { "sqlType": "sqlTypeOther", "nullable": true, "editable": true, "name": "shape", "typeName": "st_geometry", "length": 2147483647, "type": "esriFieldTypeGeometry" }, "copyrightText": "", "zDefault": 0, "geometryType": "esriGeometryPolyline", "supportsLayerOverrides": true }