Blazor components that render Google Maps, encapsulating map control and management within .NET code. These components seamlessly function with both WebAssembly and Server-hosted Blazor models.
BlazorCore.GoogleMap is available on NuGet.
dotnet add package BlazorCore.GoogleMap
Add using statement to your Blazor <component/page>.razor
file. Or globally reference it into _Imports.razor file.
using BlazorCore.GoogleMap;
using BlazorCore.JSInterop;
...
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.Services.AddBlazorCoreJsInterop();
builder.Services.AddGMapComponent();
...
}
BlazorCore.GoogleMap package depends on other BlazorGore Nuget packages:
- BlazorCore.JSInterop which handles JS Interop for Geolocation services.
Distributed under the Apache License. See LICENSE
for more information.
Han Chee - @hancheester - hanchee@codecultivation.com
Project Link: https://github.com/hancheester/BlazorCore.GoogleMap