mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 22:46:58 +00:00
MapItem
This commit is contained in:
parent
085154c614
commit
0696441a4e
4 changed files with 9 additions and 9 deletions
|
|
@ -60,7 +60,7 @@ namespace MapControl
|
|||
//
|
||||
parentMap.ViewportChanged += OnViewportChanged;
|
||||
|
||||
UpdateMapTransform(Location);
|
||||
UpdateMapTransform();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -81,7 +81,7 @@ namespace MapControl
|
|||
{
|
||||
parentMap.ViewportChanged += OnViewportChanged;
|
||||
|
||||
UpdateMapTransform(Location);
|
||||
UpdateMapTransform();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -91,14 +91,14 @@ namespace MapControl
|
|||
|
||||
private void OnViewportChanged(object sender, ViewportChangedEventArgs e)
|
||||
{
|
||||
UpdateMapTransform(Location);
|
||||
UpdateMapTransform();
|
||||
}
|
||||
|
||||
private void UpdateMapTransform(Location location)
|
||||
private void UpdateMapTransform()
|
||||
{
|
||||
if (mapTransform != null && parentMap != null && location != null)
|
||||
if (mapTransform != null && parentMap != null && Location != null)
|
||||
{
|
||||
mapTransform.Matrix = parentMap.GetMapTransform(location);
|
||||
mapTransform.Matrix = parentMap.GetMapTransform(Location);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue