{ "currentVersion": 11.5, "cimVersion": "3.5.0", "id": 6, "name": "Lokality údržby", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPolygon", "sourceSpatialReference": { "wkid": 102067, "latestWkid": 5514, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -33699800, "falseY": -33699800, "xyUnits": 10000, "falseZ": 0, "zUnits": 1, "falseM": 0, "mUnits": 1 }, "spatialReference": { "wkid": 102067, "latestWkid": 5514, "xyTolerance": 0.001, "zTolerance": 2, "mTolerance": 0.001, "falseX": -33699800, "falseY": -33699800, "xyUnits": 1.3363876424698351E8, "falseZ": 0, "zUnits": 1, "falseM": -100000, "mUnits": 10000 }, "copyrightText": "", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "uniqueValue", "valueExpression": "var thisDay = DateOnly(Now());\nvar cisteniDay = DateOnly($feature.TERMIN_1_KOLO);\nvar dayDiff;\n\n// Rozdíl dnů\nif (IsEmpty($feature.TERMIN_1_KOLO) == false && Year($feature.TERMIN_1_KOLO) == Year(Now())) {\n dayDiff = DateDiff(cisteniDay, thisDay, \"days\", \"system\");\n}\nelse {\n dayDiff = \"\"\n}\n\n\n// Jedná se o tento týden?\nfunction isThisWeek(thisDay) {\n if (IsEmpty(cisteniDay)) { return false }\n\n var startThisWeek = DateAdd(thisDay, -Weekday(thisDay) + 1, 'days');\n var endThisWeek = DateAdd(startThisWeek, 6, 'days');\n\n if (cisteniDay >= thisDay && cisteniDay <= endThisWeek) {\n return true\n }\n else {\n return false\n }\n}\n\n// Jedná se o příští týden?\nfunction isNextWeek(thisDay) {\n if (IsEmpty(cisteniDay)) { return false }\n\n var startThisWeek = DateAdd(thisDay, -Weekday(thisDay) + 1, 'days');\n var startNextWeek = DateAdd(startThisWeek, 7, 'days');\n var endNextWeek = DateAdd(startNextWeek, 6, 'days');\n if (cisteniDay >= startNextWeek && cisteniDay <= endNextWeek) {\n return true\n }\n else {\n return false\n }\n}\n\nwhen(\n // Dnes\n dayDiff == 0, \"bude probíhat DNES\",\n // Zítra\n dayDiff == 1, \"bude probíhat ZÍTRA\",\n // Tento týden\n isThisWeek(thisDay) == true, \"bude probíhat TENTO TÝDEN\",\n // Příští týden\n isNextWeek(thisDay) == true, \"bude probíhat PŘÍŠTÍ TÝDEN\",\n // Je plánováno\n dayDiff >= 2, \"je PLÁNOVÁNO\",\n // Již proběhlo\n dayDiff < 0, \"již proběhlo\",\n // Čištění nenaplánováno\n \"není naplánováno\"\n)\n\n\n", "valueExpressionTitle": "Čištění", "uniqueValueGroups": [ { "heading": "Čištění", "classes": [ { "label": "bude probíhat DNES", "description": "bude probíhat DNES", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 132, 0, 168, 25 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 132, 0, 168, 255 ], "width": 1 } }, "values": [ [ "bude probíhat DNES" ] ] }, { "label": "bude probíhat PŘÍŠTÍ TÝDEN", "description": "bude probíhat PŘÍŠTÍ TÝDEN", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 230, 0, 169, 25 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 230, 0, 169, 255 ], "width": 1 } }, "values": [ [ "bude probíhat PŘÍŠTÍ TÝDEN" ] ] }, { "label": "bude probíhat TENTO TÝDEN", "description": "bude probíhat TENTO TÝDEN", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 230, 76, 0, 25 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 230, 76, 0, 255 ], "width": 1 } }, "values": [ [ "bude probíhat TENTO TÝDEN" ] ] }, { "label": "bude probíhat ZÍTRA", "description": "bude probíhat ZÍTRA", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 0, 169, 230, 25 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 169, 230, 255 ], "width": 1 } }, "values": [ [ "bude probíhat ZÍTRA" ] ] }, { "label": "je PLÁNOVÁNO", "description": "je PLÁNOVÁNO", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 0, 38, 115, 25 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 38, 115, 255 ], "width": 1 } }, "values": [ [ "je PLÁNOVÁNO" ] ] }, { "label": "již proběhlo", "description": "již proběhlo", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 76, 230, 0, 25 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 76, 230, 0, 255 ], "width": 1 } }, "values": [ [ "již proběhlo" ] ] }, { "label": "není naplánováno", "description": "není naplánováno", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 104, 104, 104, 76 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 104, 104, 104, 255 ], "width": 1 } }, "values": [ [ "není naplánováno" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 132, 0, 168, 25 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 132, 0, 168, 255 ], "width": 1 } }, "value": "bude probíhat DNES", "label": "bude probíhat DNES" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 230, 0, 169, 25 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 230, 0, 169, 255 ], "width": 1 } }, "value": "bude probíhat PŘÍŠTÍ TÝDEN", "label": "bude probíhat PŘÍŠTÍ TÝDEN" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 230, 76, 0, 25 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 230, 76, 0, 255 ], "width": 1 } }, "value": "bude probíhat TENTO TÝDEN", "label": "bude probíhat TENTO TÝDEN" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 0, 169, 230, 25 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 169, 230, 255 ], "width": 1 } }, "value": "bude probíhat ZÍTRA", "label": "bude probíhat ZÍTRA" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 0, 38, 115, 25 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 38, 115, 255 ], "width": 1 } }, "value": "je PLÁNOVÁNO", "label": "je PLÁNOVÁNO" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 76, 230, 0, 25 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 76, 230, 0, 255 ], "width": 1 } }, "value": "již proběhlo", "label": "již proběhlo" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 104, 104, 104, 76 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 104, 104, 104, 255 ], "width": 1 } }, "value": "není naplánováno", "label": "není naplánováno" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 210, 187, 252, 255 ], "toColor": [ 210, 187, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 252, 184, 255 ], "toColor": [ 179, 252, 184, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 202, 179, 255 ], "toColor": [ 252, 202, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 212, 248, 252, 255 ], "toColor": [ 212, 248, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 187, 213, 255 ], "toColor": [ 252, 187, 213, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 251, 212, 255 ], "toColor": [ 252, 251, 212, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 211, 252, 255 ], "toColor": [ 182, 211, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 194, 252, 221, 255 ], "toColor": [ 194, 252, 221, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 189, 249, 255 ], "toColor": [ 252, 189, 249, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 230, 252, 182, 255 ], "toColor": [ 230, 252, 182, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 228, 215, 252, 255 ], "toColor": [ 228, 215, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 218, 215, 255 ], "toColor": [ 252, 218, 215, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 223, 179, 255 ], "toColor": [ 252, 223, 179, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": [ { "labelExpressionInfo": { "expression": "var thisDay = DateOnly(Now());\nvar cisteniDay = DateOnly($feature.TERMIN_1_KOLO);\nvar dayDiff;\n\n// Rozdíl dnů\nif (IsEmpty($feature.TERMIN_1_KOLO) == false && Year($feature.TERMIN_1_KOLO) == Year(Now())) {\n dayDiff = DateDiff(cisteniDay, thisDay, \"days\", \"system\");\n}\nelse {\n dayDiff = \"\"\n}\n\n// Jedná se o tento týden?\nfunction isThisWeek(thisDay) {\n if (IsEmpty(cisteniDay)) { return false }\n\n var startThisWeek = DateAdd(thisDay, -Weekday(thisDay) + 1, 'days');\n var endThisWeek = DateAdd(startThisWeek, 6, 'days');\n\n if (cisteniDay >= thisDay && cisteniDay <= endThisWeek) {\n return true\n }\n else {\n return false\n }\n}\n\n// Jedná se o příští týden?\nfunction isNextWeek(thisDay) {\n if (IsEmpty(cisteniDay)) { return false }\n\n var startThisWeek = DateAdd(thisDay, -Weekday(thisDay) + 1, 'days');\n var startNextWeek = DateAdd(startThisWeek, 7, 'days');\n var endNextWeek = DateAdd(startNextWeek, 6, 'days');\n if (cisteniDay >= startNextWeek && cisteniDay <= endNextWeek) {\n return true\n }\n else {\n return false\n }\n}\n\nwhen(\n // Dnes\n dayDiff == 0, \"\" + \"DNES\" + \"<\/CLR>\",\n // Zítra\n dayDiff == 1, \"\" + \"ZÍTRA\" + textformatting.newline + Text($feature.TERMIN_1_KOLO, \"DD.MM.\") + \"<\/CLR>\",\n // Tento týden\n isThisWeek(thisDay) == true, \"\" + \"TENTO TÝDEN\" + textformatting.newline + Text($feature.TERMIN_1_KOLO, \"DD.MM.\") + \"<\/CLR>\",\n // Příští týden\n isNextWeek(thisDay) == true, \"\" + \"PŘÍŠTÍ TÝDEN\" + textformatting.newline + Text($feature.TERMIN_1_KOLO, \"DD.MM.\") + \"<\/CLR>\",\n // Je plánováno\n dayDiff >= 2, \"\" + \"PLÁNOVÁNO\" + textformatting.newline + Text($feature.TERMIN_1_KOLO, \"DD.MM.\") + \"<\/CLR>\",\n // Již proběhlo\n dayDiff < 0, \"\" + \"PROBĚHLO\" + \"<\/CLR>\",\n \"\" + \"NENÍ\" + textformatting.newline + \"NAPLÁNOVÁNO\" + \"<\/CLR>\"\n)\n\n\n", "title": "Custom" }, "labelPlacement": "esriServerPolygonPlacementAlwaysHorizontal", "multiPart": "labelPerPart", "allowOverrun": true, "deconflictionStrategy": "dynamic", "repeatLabel": false, "useClippedGeometry": true, "stackLabel": false, "removeDuplicates": "none", "useCodedValues": true, "maxScale": 0, "minScale": 520, "name": "Čištění", "priority": 14, "symbol": { "type": "esriTS", "color": [ 0, 0, 0, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "center", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": [ 255, 255, 255, 255 ], "haloSize": 1.3, "font": { "family": "Arial Narrow", "size": 8, "style": "normal", "weight": "bold", "decoration": "none" } } } ] }, "defaultVisibility": true, "extent": { "xmin": -794408.4644999988, "ymin": -992247.9122000001, "xmax": -788514.2300000004, "ymax": -978343.7129999995, "spatialReference": { "wkid": 102067, "latestWkid": 5514, "xyTolerance": 0.001, "zTolerance": 2, "mTolerance": 0.001, "falseX": -33699800, "falseY": -33699800, "xyUnits": 1.3363876424698351E8, "falseZ": 0, "zUnits": 1, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "NAZEV_LOKALITY", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "GlobalID", "type": "esriFieldTypeGlobalID", "alias": "GlobalID", "length": 38, "domain": null }, { "name": "EXIST", "type": "esriFieldTypeSmallInteger", "alias": "Existence prvku", "domain": { "type": "codedValue", "name": "all_exist", "description": "Příznak stavu objektu", "codedValues": [ { "name": "neurčeno", "code": 0 }, { "name": "existující", "code": 1 }, { "name": "odstraněný", "code": 2 }, { "name": "ke zrušení", "code": 6 }, { "name": "v přípravě", "code": 3 }, { "name": "v realizaci", "code": 4 }, { "name": "zrušeno", "code": 9 }, { "name": "návrh", "code": 10 } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDuplicate" } }, { "name": "ID_LOKALITY", "type": "esriFieldTypeString", "alias": "ID lokality", "length": 80, "domain": null }, { "name": "NAZEV_LOKALITY", "type": "esriFieldTypeString", "alias": "Název lokality", "length": 150, "domain": null }, { "name": "TERMIN_1_KOLO", "type": "esriFieldTypeDate", "alias": "Termín čištění (1. kolo)", "length": 8, "domain": null }, { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "SHAPE", "domain": null }, { "name": "Shape.STArea()", "type": "esriFieldTypeDouble", "alias": "SHAPE.STArea()", "domain": null }, { "name": "Shape.STLength()", "type": "esriFieldTypeDouble", "alias": "SHAPE.STLength()", "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "SHAPE" }, "indexes": [ { "name": "R1012_pk", "fields": "OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "UUID_1012", "fields": "GlobalID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "UUID_OID_1012", "fields": "GlobalID,OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "S455_idx", "fields": "Shape", "isAscending": true, "isUnique": true, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": true, "capabilities": "Query,Map,Data", "maxRecordCount": 2000, "maxSelectionCount": 2000, "supportsStatistics": true, "supportsExceedsLimitStatistics": true, "supportsAdvancedQueries": true, "supportedQueryFormats": "JSON, geoJSON, PBF", "isDataVersioned": true, "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": true }, "dateFieldsTimeReference": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasGeometryProperties": true, "geometryProperties": { "shapeAreaFieldName": "Shape.STArea()", "shapeLengthFieldName": "Shape.STLength()", "units": "esriMeters", "mapUnits": {"uwkid": 9001} }, "hasMetadata": true, "isDataArchived": true, "archivingInfo": { "supportsQueryWithHistoricMoment": true, "startArchivingMoment": 1750672055000 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "7a474d05dca343d08255a271f6ec401e" }