Skip to content

Adding a Google Map ​

Velum has its own Google Map widget, with styled maps, your own pins and a placeholder that can hold the map back until the visitor allows it. It needs a Google Maps API key, which you enter once for the whole site. Elementor's own widget has almost the same name, Google Maps: the Velum one carries the Velum tag.

Adding the API key ​

Elementor → Editor → Settings → Integrations → Google Maps Embed API

API Key sits under Google Maps Embed API, in the Settings of the Editor

▶️ Step 1. ​

Create a key in the Google Cloud console and switch on the Maps JavaScript API for it. The Embed API that the section is named after is not enough for this widget. Google's guide is Use API keys.

▶️ Step 2. ​

Go to Elementor → Editor → Settings, open the Integrations tab and paste the key into API Key under Google Maps Embed API.

▶️ Step 3. ​

Click Save Changes at the bottom of the page.

Adding the map and its marker ​

Elements → Google Map → Content → Markers

Searching the Elements panel for Google Map shows Elementor's widget and Velum's, which carries the Velum tag

▶️ Step 1. ​

In the Elements panel, search for Google Map and drag the widget with the Velum tag onto the page.

▶️ Step 2. ​

In the Content tab, open Markers and click the marker in the list. Type its Latitude and Longitude: the widget takes coordinates, not an address. You can copy them from Google Maps by right-clicking the place.

A marker holds Latitude, Longitude, a Title and the text of its Info Window

▶️ Step 3. ​

Fill in Title and Info Window if a click on the marker should open a text, and click Publish, or Update on a page that is already published.

For more places, click Add Item and give each marker its coordinates. With one marker the map uses Zoom from the Map section; with several it zooms out until all of them fit.

Styling the map ​

Google Map widget → Content → Map

Map ID and Map Styles are the two ways to style the map

There are two ways, and the map uses one of them:

  • Map ID: a map style that you build in Google Cloud. Paste its ID, and Map Styles disappears.
  • Map Styles: a JSON style array that you paste in, for example from Snazzy Maps. The demo's dark map is styled this way.

The pin takes its color and size from Pin Color in the Style tab and Pin Size in the Layout tab. A marker can also carry its own Icon.

Google Map widget → Settings → Interaction → Load Map

Load Map set to After a Click

▶️ Step 1. ​

Open the Settings tab and the Interaction section, and set Load Map to After a Click. The visitor then sees the Poster image, the Placeholder Text and a button, and nothing loads from Google until the button is clicked. The three are in the Placeholder section of the Content tab.

▶️ Step 2. ​

Click Publish, or Update.

With a cookie consent plugin the map follows the visitor's choice by itself, whatever Load Map says. It reads Complianz, CookieYes, WPConsent, Real Cookie Banner and any plugin that uses the WP Consent API. Until the visitor allows the category chosen in Consent Category, in the Map section, the map shows the Consent Text instead. Choose the category your consent plugin files Google Maps under; it is Marketing by default.

A note shows instead of the map ​

INFO

Set a Google Maps API key in Elementor's Integrations settings to show this map. Only administrators see this note.

No key is saved yet, or the field is empty. Visitors see only the poster. Add the key as described in Adding the API key. If the key is saved and the map still does not appear, check in the Google Cloud console that the Maps JavaScript API is switched on for it.