mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 22:18:56 +00:00
Added OverlayOpacity
This commit is contained in:
parent
1827372db6
commit
ffd1c1c6cd
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue