From 5883d6e66553480a4363100139c43007c288be3f Mon Sep 17 00:00:00 2001 From: ellamartirosyan Date: Thu, 14 May 2026 11:40:04 +0300 Subject: [PATCH 1/5] chore: remove useOptimizedTileRequests from conf --- confd/production.tmpl | 1 - confd/production.toml | 1 - helm/templates/configmap.yaml | 1 - helm/values.yaml | 1 - src/common/config/index.ts | 1 - 5 files changed, 5 deletions(-) diff --git a/confd/production.tmpl b/confd/production.tmpl index ca40a1bfa..544713f52 100644 --- a/confd/production.tmpl +++ b/confd/production.tmpl @@ -28,7 +28,6 @@ window._env_ = { center: {{ getv "/configuration/map/center" "[34.811, 31.908]" }}, zoom: {{ getv "/configuration/map/zoom" "14" }}, mapMode2D: '{{ getv "/configuration/map/mapmode2d" "INFINITE_SCROLL" }}', - useOptimizedTileRequests: {{ getv "/configuration/map/use/optimized/tile/requests" "false" }}, showDebuggerTool: {{ getv "/configuration/map/show/debugger/tool" "false" }}, showActiveLayersTool: {{ getv "/configuration/map/show/active/layers/tool" "true" }}, showGeocoderTool: {{ getv "/configuration/map/show/geocoder/tool" "true" }}, diff --git a/confd/production.toml b/confd/production.toml index 3fb0c6a64..5a05544bc 100644 --- a/confd/production.toml +++ b/confd/production.toml @@ -26,7 +26,6 @@ keys = [ "/configuration/map/center", "/configuration/map/zoom", "/configuration/map/mapmode2d", - "/configuration/map/use/optimized/tile/requests", "/configuration/map/show/debugger/tool", "/configuration/map/show/active/layers/tool", "/configuration/map/show/geocoder/tool", diff --git a/helm/templates/configmap.yaml b/helm/templates/configmap.yaml index 288be01d0..265839391 100644 --- a/helm/templates/configmap.yaml +++ b/helm/templates/configmap.yaml @@ -45,7 +45,6 @@ CONFIGURATION_MAP_CENTER: {{ quote .Values.env.map.center }} CONFIGURATION_MAP_ZOOM: {{ quote .Values.env.map.zoom }} CONFIGURATION_MAP_MAPMODE2D: {{ quote .Values.env.map.mapMode2D }} - CONFIGURATION_MAP_USE_OPTIMIZED_TILE_REQUESTS: {{ quote .Values.env.map.useOptimizedTileRequests }} CONFIGURATION_MAP_SHOW_DEBUGGER_TOOL: {{ quote .Values.env.map.showDebuggerTool }} CONFIGURATION_MAP_SHOW_ACTIVE_LAYERS_TOOL: {{ quote .Values.env.map.showActiveLayersTool }} CONFIGURATION_MAP_SHOW_GEOCODER_TOOL: {{ quote .Values.env.map.showGeocoderTool }} diff --git a/helm/values.yaml b/helm/values.yaml index 83ab3ad45..22ebbb819 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -138,7 +138,6 @@ env: center: '[34.811, 31.908]' zoom: 7 mapMode2D: INFINITE_SCROLL - useOptimizedTileRequests: false showDebuggerTool: false showActiveLayersTool: true showGeocoderTool: true diff --git a/src/common/config/index.ts b/src/common/config/index.ts index 722ac6cfd..d32a4ea19 100644 --- a/src/common/config/index.ts +++ b/src/common/config/index.ts @@ -148,7 +148,6 @@ const APP_CONFIG = { CENTER: MAP.center as [number, number], ZOOM: MAP.zoom as number, MAPMODE2D: MAP.mapMode2D, - USE_OPTIMIZED_TILE_REQUESTS: MAP.useOptimizedTileRequests as boolean, SHOW_DEBUGGER_TOOL: MAP.showDebuggerTool, SHOW_ACTIVE_LAYERS_TOOL: MAP.showActiveLayersTool, SHOW_GEOCODER_TOOL: MAP.showGeocoderTool, From 4e11d6b3bba33ad948db74066ffb5bb0c985b62d Mon Sep 17 00:00:00 2001 From: ellamartirosyan Date: Wed, 20 May 2026 16:33:30 +0300 Subject: [PATCH 2/5] feat: tiles optimization plus cesium inspector checkboxes --- src/common/i18n/en.json | 2 ++ src/common/i18n/he.json | 2 ++ src/discrete-layer/views/discrete-layer-view.tsx | 8 ++++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/common/i18n/en.json b/src/common/i18n/en.json index bd979cc99..70e07de8e 100644 --- a/src/common/i18n/en.json +++ b/src/common/i18n/en.json @@ -742,6 +742,8 @@ "map.zoom.label": "zoom", "debug-panel.title": "Debugger Tool", + "debug-panel.tile-requests-optimization": "Tile Requests Optimization", + "debug-panel.cesium-inspector": "Cesium Inspector", "debug-panel.wfs.title": "Data Layers", "debug-panel.wfs.cache": "Cache", "debug-panel.wfs.extent": "Extent", diff --git a/src/common/i18n/he.json b/src/common/i18n/he.json index d26c266f2..0ccd025f4 100644 --- a/src/common/i18n/he.json +++ b/src/common/i18n/he.json @@ -742,6 +742,8 @@ "map.zoom.label": "זום", "debug-panel.title": "דיבאגר", + "debug-panel.tile-requests-optimization": "אופטימיזציית בקשות אריחים", + "debug-panel.cesium-inspector": "כלי בדיקה של סזיום", "debug-panel.wfs.title": "שכבות מידע", "debug-panel.wfs.cache": "בזכרון", "debug-panel.wfs.extent": "בתצוגה", diff --git a/src/discrete-layer/views/discrete-layer-view.tsx b/src/discrete-layer/views/discrete-layer-view.tsx index 701d39147..854f7e764 100644 --- a/src/discrete-layer/views/discrete-layer-view.tsx +++ b/src/discrete-layer/views/discrete-layer-view.tsx @@ -291,6 +291,8 @@ const DiscreteLayerView: React.FC = observer(() => { KILOMETERS_UNIT: intl.formatMessage({ id: 'map.scale.units.kilometers' }), ZOOM_LABEL: intl.formatMessage({ id: 'map.zoom.label' }), DEBUG_PANEL_TITLE: intl.formatMessage({ id: 'debug-panel.title' }), + TILE_REQUESTS_OPTIMIZATION_CHECKBOX: intl.formatMessage({ id: 'debug-panel.tile-requests-optimization' }), + CESIUM_INSPECTOR_CHECKBOX: intl.formatMessage({ id: 'debug-panel.cesium-inspector' }), WFS_TITLE: intl.formatMessage({ id: 'debug-panel.wfs.title' }), WFS_CACHE: intl.formatMessage({ id: 'debug-panel.wfs.cache' }), WFS_EXTENT: intl.formatMessage({ id: 'debug-panel.wfs.extent' }), @@ -672,6 +674,8 @@ const DiscreteLayerView: React.FC = observer(() => { }); }, []); + const isAdminUser = store.userStore.user?.role === UserRole.ADMIN; + const PanelExpanderButton: React.FC = () => { const isRtl = intl.locale === 'he'; const iconClassExpand = isRtl ? 'mc-icon-Arrows-Left' : 'mc-icon-Arrows-Right'; @@ -1308,6 +1312,7 @@ const DiscreteLayerView: React.FC = observer(() => { value={{ actionsMenuDimensions, setActionsMenuDimensions }} > { imageryProvider={false} locale={mapSettingsLocale} baseMaps={store.discreteLayersStore.baseMaps} - useOptimizedTileRequests={CONFIG.MAP.USE_OPTIMIZED_TILE_REQUESTS} layerManagerFootprintMetaFieldPath={'layerRecord.footprint'} // @ts-ignore imageryContextMenu={} @@ -1330,7 +1334,7 @@ const DiscreteLayerView: React.FC = observer(() => { imgText: intl.formatMessage({ id: 'map-legends.actions.img' }), }, }} - showDebuggerTool={CONFIG.MAP.SHOW_DEBUGGER_TOOL} + showDebuggerTool={CONFIG.MAP.SHOW_DEBUGGER_TOOL === true && isAdminUser} showActiveLayersTool={CONFIG.MAP.SHOW_ACTIVE_LAYERS_TOOL} {...(CONFIG.MAP.SHOW_GEOCODER_TOOL ? { geocoderPanel: GEOCODER_OPTIONS } : {})} > From b2974a5853fe0767433a2b141bcb61ccf17cd103 Mon Sep 17 00:00:00 2001 From: ellamartirosyan Date: Wed, 20 May 2026 16:41:22 +0300 Subject: [PATCH 3/5] fix: prettier --- src/discrete-layer/views/discrete-layer-view.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/discrete-layer/views/discrete-layer-view.tsx b/src/discrete-layer/views/discrete-layer-view.tsx index 854f7e764..55df4be3e 100644 --- a/src/discrete-layer/views/discrete-layer-view.tsx +++ b/src/discrete-layer/views/discrete-layer-view.tsx @@ -291,7 +291,9 @@ const DiscreteLayerView: React.FC = observer(() => { KILOMETERS_UNIT: intl.formatMessage({ id: 'map.scale.units.kilometers' }), ZOOM_LABEL: intl.formatMessage({ id: 'map.zoom.label' }), DEBUG_PANEL_TITLE: intl.formatMessage({ id: 'debug-panel.title' }), - TILE_REQUESTS_OPTIMIZATION_CHECKBOX: intl.formatMessage({ id: 'debug-panel.tile-requests-optimization' }), + TILE_REQUESTS_OPTIMIZATION_CHECKBOX: intl.formatMessage({ + id: 'debug-panel.tile-requests-optimization', + }), CESIUM_INSPECTOR_CHECKBOX: intl.formatMessage({ id: 'debug-panel.cesium-inspector' }), WFS_TITLE: intl.formatMessage({ id: 'debug-panel.wfs.title' }), WFS_CACHE: intl.formatMessage({ id: 'debug-panel.wfs.cache' }), From 1cca029a4f4d9ffb60dd3ed80fc8cccc8469fec4 Mon Sep 17 00:00:00 2001 From: ellamartirosyan Date: Wed, 20 May 2026 18:25:03 +0300 Subject: [PATCH 4/5] chore: fix --- src/discrete-layer/views/discrete-layer-view.css | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/discrete-layer/views/discrete-layer-view.css b/src/discrete-layer/views/discrete-layer-view.css index ca82ebed9..dec7a43dc 100644 --- a/src/discrete-layer/views/discrete-layer-view.css +++ b/src/discrete-layer/views/discrete-layer-view.css @@ -117,10 +117,6 @@ body[dir='rtl'] .headerSystemAreaContainer { margin: 14px; } -.errorMessage { - /* margin: 16px; */ -} - .errorDescription { margin: 16px; } From 987146693adbf140f538ab43bd81f768956b0230 Mon Sep 17 00:00:00 2001 From: ellamartirosyan Date: Thu, 21 May 2026 11:26:45 +0300 Subject: [PATCH 5/5] fix: height --- src/discrete-layer/views/discrete-layer-view.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/discrete-layer/views/discrete-layer-view.css b/src/discrete-layer/views/discrete-layer-view.css index dec7a43dc..b80466e29 100644 --- a/src/discrete-layer/views/discrete-layer-view.css +++ b/src/discrete-layer/views/discrete-layer-view.css @@ -258,11 +258,16 @@ body[dir='rtl'] .tabHeaderContainer .filterByCatalogEntitySelect { margin-right: 0; } +/***** Cesium Map *****/ .cesium-viewer .bottomToolsContainer > div { height: 28px; } -/****** BADGE *****/ +.cesium-viewer .cesium-cesiumInspector-button { + line-height: initial; +} + +/***** BADGE *****/ /* inspired by https://codepen.io/codepenicillin/pen/eYjYmpO */ .position { position: relative; @@ -298,6 +303,7 @@ body[dir='rtl'] .MuiBox-root .resultsContainer { direction: ltr; } +/***** COLORS *****/ .success { color: var(--mdc-theme-gc-success) !important; }