mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MapTileLayer.cs
This commit is contained in:
parent
ae8cc0b030
commit
cefc457d37
|
|
@ -122,14 +122,17 @@ namespace MapControl
|
||||||
|
|
||||||
if (ParentMap == null || !ParentMap.MapProjection.IsWebMercator)
|
if (ParentMap == null || !ParentMap.MapProjection.IsWebMercator)
|
||||||
{
|
{
|
||||||
|
update = TileMatrix != null;
|
||||||
TileMatrix = null;
|
TileMatrix = null;
|
||||||
update = true;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (TileSource != TileImageLoader.TileSource)
|
if (TileSource != TileImageLoader.TileSource)
|
||||||
{
|
{
|
||||||
Tiles = new List<Tile>();
|
if (Tiles.Count > 0)
|
||||||
|
{
|
||||||
|
Tiles = new List<Tile>(); // clear all
|
||||||
|
}
|
||||||
update = true;
|
update = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue