Files
BlazorDeviceInterop/BlazorDeviceInterop.Components/LeafletMap/Layer.cs
T
Bernard Darnton 9576c5aa5b Add project files.
2020-10-12 06:03:49 +13:00

21 lines
538 B
C#

using Microsoft.JSInterop;
using System.Threading.Tasks;
namespace BlazorDeviceInterop.Components.LeafletMap
{
public abstract class Layer : InteropObject
{
public async Task<Layer> AddTo(Map map)
{
await _jsObjRef.JSRuntime.InvokeVoidAsync("LeafletMap.Layer.addTo", this, map);
return this;
}
public async Task<Layer> Remove()
{
await _jsObjRef.JSRuntime.InvokeVoidAsync("LeafletMap.Layer.remove", this);
return this;
}
}
}