mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MapItem.cs
This commit is contained in:
parent
d3482c2e9f
commit
15e8bbcb86
|
|
@ -63,6 +63,7 @@ namespace MapControl
|
||||||
// Attach ViewportChanged handler only if MapTransform is actually used.
|
// Attach ViewportChanged handler only if MapTransform is actually used.
|
||||||
//
|
//
|
||||||
parentMap.ViewportChanged += OnViewportChanged;
|
parentMap.ViewportChanged += OnViewportChanged;
|
||||||
|
|
||||||
UpdateMapTransform(Location);
|
UpdateMapTransform(Location);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -83,6 +84,7 @@ namespace MapControl
|
||||||
if (parentMap != null)
|
if (parentMap != null)
|
||||||
{
|
{
|
||||||
parentMap.ViewportChanged += OnViewportChanged;
|
parentMap.ViewportChanged += OnViewportChanged;
|
||||||
|
|
||||||
UpdateMapTransform(Location);
|
UpdateMapTransform(Location);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue