@using Microsoft.JSInterop @inject IJSRuntime JSRuntime
@code { string elementId = $"map-{Guid.NewGuid().ToString("D")}"; [Parameter] public double Zoom { get; set; } [Parameter] public List Markers { get; set; } protected async override Task OnAfterRenderAsync(bool firstRender) { await JSRuntime.InvokeVoidAsync( "deliveryMap.showOrUpdate", elementId, Markers); } }