Blazor Google Map

Blazor Bootstrap Google Map component will create maps to show locations anywhere in the world using the Google JavaScript API.
API Documentation

Prerequisite #

Before you start using the GoogleMap component in your project, you need an API key. Please follow the link below for detailed steps. Link: https://developers.google.com/maps/documentation/javascript/get-api-key?setupProd=prerequisites.

Examples #

This example demonstrates how to use a simple Google Map component.

Add a marker to a map #

This example demonstrates how to use a simple Google Map component with marker.

Marker customization #

Scale the marker #

To scale a marker, use the PinElement.Scale option.

Change the background color #

Use the PinElement.Background option to change the background color of a marker.

Change the border color #

Use the PinElement.BorderColor option to change the border color of a marker.

Change the glyph color #

Use the PinElement.GlyphColor option to change the glyph color of a marker.

Hide the glyph #

Set the PinElement.GlyphText option to an empty string to hide a marker's glyph.

Use text glyphs #

Use the PinElement.GlyphText option to show text in a marker pin.

Use image glyphs #

Use the PinElement.GlyphSrc option to show an image in a marker pin.

Use icon fonts #

Existing PinElement.UseIconFonts and legacy PinElement.Glyph configurations remain supported while existing applications migrate.

Markers with HTML and CSS #

Make a marker clickable #

This example shows you how to make markers respond to click events. To make a marker clickable: Set the Clickable parameter to true.

Dynamic markers #

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.