Add LoadBackgroundTiles property

This commit is contained in:
Clemens 2021-11-10 22:31:39 +01:00
parent f2204fa6c0
commit 681da9b625
3 changed files with 10 additions and 9 deletions

View file

@ -126,7 +126,7 @@ namespace MapControl
.Where((matrix, i) => i == 0 || matrix.Scale <= maxScale)
.ToList();
if (this != ParentMap.MapLayer) // do not load background tiles
if (!LoadBackgroundTiles)
{
currentMatrixes = currentMatrixes.Skip(currentMatrixes.Count - 1).ToList(); // last element only
}