Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.42 KB

README.md

File metadata and controls

35 lines (29 loc) · 1.42 KB

BlazorCore GoogleMap

Package Version NuGet Downloads License

About

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.

Installation

BlazorCore.GoogleMap is available on NuGet.

dotnet add package BlazorCore.GoogleMap

Usage

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();
  ...
}

Dependences

BlazorCore.GoogleMap package depends on other BlazorGore Nuget packages: