Minor changes

This commit is contained in:
ClemensFischer 2025-11-13 23:55:47 +01:00
parent b44018ac8f
commit ef7849948e
3 changed files with 4 additions and 4 deletions

View file

@ -409,7 +409,7 @@ namespace MapControl
element.Arrange(new Rect(x, y, width, height)); element.Arrange(new Rect(x, y, width, height));
} }
internal static Size GetDesiredSize(FrameworkElement element) private static Size GetDesiredSize(FrameworkElement element)
{ {
var width = element.DesiredSize.Width; var width = element.DesiredSize.Width;
var height = element.DesiredSize.Height; var height = element.DesiredSize.Height;

View file

@ -20,7 +20,7 @@ using Avalonia.Media;
namespace MapControl namespace MapControl
{ {
/// <summary> /// <summary>
/// Displays a standard Web Mercator map tile pyramid, e.g. a OpenStreetMap tiles. /// Displays a Web Mercator tile pyramid.
/// </summary> /// </summary>
public partial class MapTileLayer : TilePyramidLayer public partial class MapTileLayer : TilePyramidLayer
{ {

View file

@ -188,9 +188,9 @@ namespace MapControl
} }
} }
public abstract IReadOnlyCollection<string> SupportedCrsIds { get; } public bool IsBaseMapLayer => parentMap != null && parentMap.Children.Count > 0 && parentMap.Children[0] == this;
protected bool IsBaseMapLayer => parentMap != null && parentMap.Children.Count > 0 && parentMap.Children[0] == this; public abstract IReadOnlyCollection<string> SupportedCrsIds { get; }
protected void BeginLoadTiles(IEnumerable<Tile> tiles, string cacheName) protected void BeginLoadTiles(IEnumerable<Tile> tiles, string cacheName)
{ {