mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-30 20:34:38 +01:00
Added OverlayOpacity
This commit is contained in:
parent
1827372db6
commit
ffd1c1c6cd
|
|
@ -51,6 +51,8 @@ namespace MapControl.UiTools
|
|||
|
||||
public int InsertOrder { get; set; }
|
||||
|
||||
public double OverlayOpacity { get; set; } = 1d;
|
||||
|
||||
public override async Task ExecuteAsync(MapBase map)
|
||||
{
|
||||
if (MapLayer == null)
|
||||
|
|
@ -93,6 +95,8 @@ namespace MapControl.UiTools
|
|||
{
|
||||
MapLayer = await GeoImage.CreateAsync(SourcePath);
|
||||
}
|
||||
|
||||
MapLayer.Opacity = OverlayOpacity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue