Skip to Content

Google Maps Integration

Connect Google Maps to your Ycode project to use the Google Map provider in Map elements. This integration requires a Google Maps API key with the Maps Embed API and Places API enabled.

Setup

  1. Go to the Google Cloud Console  and create or select a project
  2. Enable the Maps Embed API  and Places API  for your project
  3. Create an API key under APIs & Services > Credentials
  4. In Ycode, go to Integrations > Apps
  5. Find Google Map and enter your API key
  6. Save the configuration

You must enable both the Maps Embed API (for rendering maps) and the Places API (for address search) on your Google Cloud project. The map element will not work without both APIs enabled.

Environment Variable

You can also provide the API key via the GOOGLE_MAPS_EMBED_API_KEY environment variable. When set, the integration shows a “Connected” status on the Apps page and the key cannot be changed through the UI.

GOOGLE_MAPS_EMBED_API_KEY=AIzaSy...

This is useful for self-hosted deployments where you manage secrets through environment configuration.

Usage

Once connected, select Google Map as the provider in any Map element’s settings. Google Maps supports two map styles:

StyleDescription
RoadmapStandard road map view
SatelliteAerial satellite imagery

Restrict your API key to your domain in the Google Cloud Console to prevent unauthorized usage. Under Application restrictions, add your site’s URL.

Last updated on