mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-07 23:45:05 +00:00
Static MapLayerMenuItem.MapLayerFactory
This commit is contained in:
parent
5afea53c7c
commit
62ffed2caf
6 changed files with 35 additions and 49 deletions
|
|
@ -18,19 +18,19 @@ namespace MapControl.UiTools
|
|||
#elif UWP || WINUI
|
||||
[ContentProperty(Name = nameof(MapProjection))]
|
||||
#endif
|
||||
public class MapProjectionMenuItem : MapMenuItem
|
||||
public partial class MapProjectionMenuItem : MapMenuItem
|
||||
{
|
||||
#if AVALONIA
|
||||
[Content]
|
||||
#endif
|
||||
public string MapProjection { get; set; }
|
||||
|
||||
protected override bool GetIsChecked(MapBase map)
|
||||
public override bool GetIsChecked(MapBase map)
|
||||
{
|
||||
return map.MapProjection.ToString() == MapProjection;
|
||||
}
|
||||
|
||||
public override Task Execute(MapBase map)
|
||||
public override Task ExecuteAsync(MapBase map)
|
||||
{
|
||||
if (!GetIsChecked(map))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue