Add IsBaseMapLayer property

This commit is contained in:
Clemens 2021-11-11 22:27:57 +01:00
parent 681da9b625
commit c17092cd38
4 changed files with 12 additions and 7 deletions

View file

@ -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)