mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-09 00:14:51 +00:00
Removed UseLayoutRounding handling from MapPanel
This commit is contained in:
parent
9cb4a9be7e
commit
93b58fa01e
7 changed files with 11 additions and 31 deletions
|
|
@ -10,7 +10,6 @@ using System.Threading.Tasks;
|
|||
using System.Xml.Linq;
|
||||
#if AVALONIA
|
||||
using DependencyProperty = Avalonia.AvaloniaProperty;
|
||||
using FrameworkElement = Avalonia.Controls.Control;
|
||||
using ImageSource = Avalonia.Media.IImage;
|
||||
#elif WINUI
|
||||
using Microsoft.UI.Xaml;
|
||||
|
|
@ -38,7 +37,7 @@ namespace MapControl
|
|||
DependencyPropertyHelper.Register<WmsImageLayer, string>(nameof(WmsLayers), null, false,
|
||||
async (layer, oldValue, newValue) =>
|
||||
{
|
||||
// Ignore property change from GetImageAsync, when Layers was null.
|
||||
// Ignore property change from GetImageAsync when Layers was null.
|
||||
//
|
||||
if (oldValue != null)
|
||||
{
|
||||
|
|
@ -50,14 +49,6 @@ namespace MapControl
|
|||
DependencyPropertyHelper.Register<WmsImageLayer, string>(nameof(WmsStyles), string.Empty, false,
|
||||
async (layer, oldValue, newValue) => await layer.UpdateImageAsync());
|
||||
|
||||
public WmsImageLayer()
|
||||
{
|
||||
foreach (FrameworkElement child in Children)
|
||||
{
|
||||
child.UseLayoutRounding = true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The base request URL.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue