Version:

    Google maps elements

    The Google map elements allows you to add a Google map with one or multiple map markers (pins) to your layout.

    For the Google maps elements to work, you must have entered a valid Google maps API key in Google maps API key.

    How a Google map is composed

    To create a Google map you will use two elements:

    • Google map - The Google map. this requires at least one Google map marker to specify a location to display
    • Google map marker - This determines the location the map should display.

    Google-map-structure.png

    You cannot display a map without location markers. In order for the map to display, you need to add at least one Google map marker element to the Google map container. Find more information on Google map marker elements.

    Creating a Google map

    The following steps illustrate the process of creating a Google map device. 

    Step 1 - Add a Google map element

    1. Drag a Google map element onto the Layout canvas. All settings within this are optional. Note: The Google map will not display until it contains at least one Google map marker.

    Step 2 - Add a Google map marker

    1. Drag a Google map marker within your Google map on the Layout canvas
    2. Double click on it to edit its settings
    3. Within Marker location, Enter an address in the Address field. As an example, enter New York
    4. Click Find coordinates
    5. The Preview below will show the location on a Google map. If it doesn't, the Google Maps Api isn't valid and you must enter a valid Api key in Google maps API key.

    Step 3 - Save and view your map

    1. Click Save
    2. View your Google map.
    DX8 knowledge base icon

    Frequently asked questions

    Get instant answers to common questions. Available online 24/7.

    Find answers

    Raise a ticket icon

    Raise a support ticket

    To raise a ticket, sign into Acquia Cloud and select Help in the top menu.

    Raise support ticket

    Acquia

    Copyright © 2020 Acquia, Inc. All Rights Reserved. Drupal is a registered trademark of Dries Buytaert.