mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Add IsBaseMapLayer property
This commit is contained in:
parent
681da9b625
commit
c17092cd38
4 changed files with 12 additions and 7 deletions
|
|
@ -176,9 +176,14 @@ namespace MapControl
|
|||
}
|
||||
}
|
||||
|
||||
protected bool LoadBackgroundTiles
|
||||
protected bool IsBaseMapLayer
|
||||
{
|
||||
get { return this == parentMap?.MapLayer; }
|
||||
get
|
||||
{
|
||||
return parentMap != null
|
||||
&& parentMap.Children.Count > 0
|
||||
&& parentMap.Children[0] == this;
|
||||
}
|
||||
}
|
||||
|
||||
private async void OnViewportChanged(object sender, ViewportChangedEventArgs e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue