mirror of
https://github.com/farcasclaudiu/BlazorDeviceInterop.git
synced 2026-06-22 07:01:03 +03:00
Add project files.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user