From 9aa9941b201a49914671ffb394256ad84bf1855f Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Sat, 6 Sep 2025 13:45:21 +0200 Subject: [PATCH] Update MapBase.MapLayer.cs --- MapControl/Shared/MapBase.MapLayer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MapControl/Shared/MapBase.MapLayer.cs b/MapControl/Shared/MapBase.MapLayer.cs index e8fae7e3..9baf933d 100644 --- a/MapControl/Shared/MapBase.MapLayer.cs +++ b/MapControl/Shared/MapBase.MapLayer.cs @@ -133,8 +133,8 @@ namespace MapControl if (mapLayers.Count > 0) { -#if WPF - // Execute at DispatcherPriority.DataBind to ensure that all bindings are evaluated. +#if WPF // Execute at DispatcherPriority.DataBind to ensure that all bindings are evaluated. + // Dispatcher.Invoke(() => AddMapLayers(mapLayers, index), DispatcherPriority.DataBind); #else AddMapLayers(mapLayers, index);