How to use the Gutenberg Google Maps Block

My main goal was to develop a Gutenberg map block for Google Maps with the look and feel like it is a standard WordPress block. Meaning that the block configuration is simple and only requires two easy steps.

1. Obtaining a Google Maps API key

Unfortunately, we can not skip this step and for Google Maps to work on our website, we must have an API key for it.

To set it, we need to to the plugin settings to Settings > Map Block:

Google Maps block API key settings

The main challenge here is to get it somewhere in your Google account. As a first step, you can click the link in the plugin settings and then just follow the instructions and video tutorial there.

2. Adding a Google Maps block to the target page and configuring it

Assuming, that we have configured the API key part, now we’re ready to use the Google Maps block on our website.

We can add it just by typing / (slash) and then start to type the block name:

Insert Google Maps block into the content.

Or using the inserter:

Add a Google Maps block to your content via the inserter.

Once you inserted the block, you can use its settings in the sidebar panel to configure it:

Map block for Google Maps settings

The following map block settings are available at this moment:

  • 4 different map styles – standard, light, dark, and styles similar to Apple maps,
  • Zoom level and controls (you can decide whether they are displayed on the map or not),
  • Map center (you can change it easily by dragging the map with your mouse),
  • Possibility to add multiple markers with custom icons.

Adding new features per your requests is always possible. To get more information about it, please contact me before making a purchase.