mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Add LoadBackgroundTiles property
This commit is contained in:
parent
f2204fa6c0
commit
681da9b625
3 changed files with 10 additions and 9 deletions
|
|
@ -69,7 +69,6 @@ namespace MapControl
|
|||
{
|
||||
RenderTransform = new MatrixTransform();
|
||||
TileImageLoader = tileImageLoader;
|
||||
|
||||
#if WINUI
|
||||
updateTimer = DispatcherQueue.CreateTimer();
|
||||
#endif
|
||||
|
|
@ -177,6 +176,11 @@ namespace MapControl
|
|||
}
|
||||
}
|
||||
|
||||
protected bool LoadBackgroundTiles
|
||||
{
|
||||
get { return this == parentMap?.MapLayer; }
|
||||
}
|
||||
|
||||
private async void OnViewportChanged(object sender, ViewportChangedEventArgs e)
|
||||
{
|
||||
if (Children.Count == 0 || e.ProjectionChanged || Math.Abs(e.LongitudeOffset) > 180d)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue