Update MapItem.cs

This commit is contained in:
ClemensFischer 2025-01-27 16:56:35 +01:00
parent d3482c2e9f
commit 15e8bbcb86

View file

@ -63,6 +63,7 @@ namespace MapControl
// Attach ViewportChanged handler only if MapTransform is actually used.
//
parentMap.ViewportChanged += OnViewportChanged;
UpdateMapTransform(Location);
}
}
@ -83,6 +84,7 @@ namespace MapControl
if (parentMap != null)
{
parentMap.ViewportChanged += OnViewportChanged;
UpdateMapTransform(Location);
}
}