I am building a cross-platform app using MAUI Blazor Hybrid template. This allows me to define and use MAUI.AcrGISRuntime.Mapping library on the Blazor Server component but I am unable to render the MapView with the reference of MapView.
This is how I am referencing it.
<MapView Map="@_mapView" Width="100%" Height="100px;" />
@code{
private static MapView _mapView;
private async Task InitializeMapAsync()
{
_mapView = new MapView
{
Map = new Map(new Uri("https://www.arcgis.com/apps/mapviewer/index.html?webmap=55ebf90799fa4a3fa57562700a68c405"))
};
}
}
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
await InitializeMapAsync();
}
}