From 024ee0f21a12359f86d384d11acfb284a2dd3c34 Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Tue, 24 Mar 2026 13:53:18 +0200 Subject: [PATCH] fix(geoportal): layer toggle + enrichment update + refresh button 1. Layer toggle fix: removed isStyleLoaded() check that silently blocked visibility changes when OpenFreeMap style has pending sprite/font loads 2. Enrichment: "Actualizeaza" button always visible (re-fetch from eTerra) replaces "Enrichment" button when data already exists 3. Panel updates with returned enrichment data immediately Co-Authored-By: Claude Opus 4.6 (1M context) --- .../components/feature-info-panel.tsx | 20 +++++++++---------- .../geoportal/components/map-viewer.tsx | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/modules/geoportal/components/feature-info-panel.tsx b/src/modules/geoportal/components/feature-info-panel.tsx index 79262b4..01149a9 100644 --- a/src/modules/geoportal/components/feature-info-panel.tsx +++ b/src/modules/geoportal/components/feature-info-panel.tsx @@ -158,16 +158,16 @@ export function FeatureInfoPanel({ feature, onClose }: FeatureInfoPanelProps) { {/* Action buttons */}
- {!hasRealEnrichment && ( - - )} + {cfStatus?.available && cfStatus.downloadUrl ? (