Blazor Google Map

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

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/adding-a-google-map#key.

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.Glyph option to an empty string to hide a marker's glyph.

Use icon fonts #

Use the PinElement.UseIconFonts and PinElement.Glyph options to use the icon fonts.

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 #