Help Center

How to Create Google Maps API Key

From this tutorial, you will learn how to create a Google Maps API key and use it to add the Advanced Map widget of the JetElements plugin to your WordPress website.

Before you start, check the tutorial requirements:

  • Elementor (Free version)

  • JetElements plugin installed and activated

API keys are the credentials that identify the project to which the application is making a call.

Google Maps API key is used to access Google Maps. Some applications or plugins using Google Maps require an individual token.

So if you need to use Google Maps on your site, you should go to the Google Maps Platform and get your key to embed a Google map.

In this guide, we will look through the API key creation process and adding an Advanced Map widget from JetElements to your WordPress website.

Create a Google Map API Key

Go to Google Cloud Console and click the “Get started for free” button.

get started for free in the google cloud console

You will be redirected to Step 1 of 2 of account registration. Choose your Google account and your Country. Afterward, hit the “Agree & continue” button.

account information step

The Step 2 of 2 page will be the billing page. Fill in all the required fields and remember to include the ZIP code.

the first part of the payment information verification step

You will also have to put in your card data in the Payment method section. Afterward, click the “Start free” button.

the second part of the payment information verification step

You will be asked to answer two more questions in a short survey, so Google Maps can serve you better. Once you have answered, click the “Next” button.

Type in the “Google Maps Platform” request in the search bar.

The API key is now generated. Copy it and click the “Go to Google Maps Platform” button.

your api key

Now, go to the APIs & Services. Find the “Geocoding API” service and make sure it is activated.

Activate the “Maps JavaScript API” service the same way.

geocoding app enabled

Add an API Key to JetElements Settings

Go to WordPress Dashboard > Crocoblock > JetPlugins Settings > JetElements tab. 

Open the Integrations tab. Here you can see the Google Maps section, where you should paste the API key in the Google Map API Key field.

Things to know

You can also select another Map Provider if preferred. Among the available providers are “Leaflet” and “Mapbox.”

You can activate the Disable Google Maps API JS file toggle if it is already included by another plugin or theme.

Additionally, you can select the preferred Geocoding Provider: “Google,” “OpenStreetMap,” “Photon,” or “Bing.”Another feature in this section is the Separate Geocoding API key, which, when activated, allows you to add a separate key for the Geocoding API. This option allows you to set more precise restrictions for your API key.

integrations settings

Build a Page with an Advanced Map Widget

Head to the Elementor editor of the page where you want to place the map.

Add an Advanced Map widget to the page.

Select the Map center type and set the desired Map Center Address. For instance, we leave the default “London Eye” location.

Work on other widget settings and customize the page additionally according to your preferences.

advanced map widget in elementor

When you’re ready, press the “Publish” button.

Check the Result

Open the just-edited page on the front end. Here, you can now observe the Advanced Map widget with the location you have selected as the Map Center Address.

advanced map widget on the front end

That’s all; now you know how to embed Google Maps on your WordPress site using the JetElements plugin.

Was this article helpful?
YesNo

Need help?

Ask Facebook community

Get answers from 30K+ Crocoblock Community experts from all over the world.

Start a live chat

Ask question to support agent and share its details via chat messages.