initial commit

This commit is contained in:
Niklas Kapelle
2020-12-17 16:52:43 +01:00
commit 2918fe6b12
102 changed files with 4465 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
@using Microsoft.JSInterop
@inject IJSRuntime JSRuntime
<div id="@elementId" style="height: 100%; width: 100%;"></div>
@code {
string elementId = $"map-{Guid.NewGuid().ToString("D")}";
[Parameter] public double Zoom { get; set; }
[Parameter] public List<Marker> Markers { get; set; }
protected async override Task OnAfterRenderAsync(bool firstRender)
{
await JSRuntime.InvokeVoidAsync(
"deliveryMap.showOrUpdate",
elementId,
Markers);
}
}

View File

@@ -0,0 +1,13 @@
namespace BlazingPizza.ComponentsLibrary.Map
{
public class Marker
{
public string Description { get; set; }
public double X { get; set; }
public double Y { get; set; }
public bool ShowPopup { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace BlazingPizza.ComponentsLibrary.Map
{
public class Point
{
public double X { get; set; }
public double Y { get; set; }
}
}