Override gmap API Key

Created on 8 December 2021, about 3 years ago
Updated 19 June 2023, over 1 year ago

Problem/Motivation

In case you don't want to hard code gmap API Key directly inside webform_gmap_field.libraries.yml file , you can override with your actual gmap key on your custom theme or subtheme .info.yml file like this:

libraries-override:
  webform_gmap_field/global:
    js:
      //maps.googleapis.com/maps/api/js?callback=initMap&libraries=&v=weekly&key=your_gmap_key: //maps.googleapis.com/maps/api/js?callback=initMap&libraries=&v=weekly&key=your_actual_gmap_key

💬 Support request
Status

Closed: duplicate

Version

1.0

Component

Documentation

Created by

🇬🇷Greece Christos Diamantis

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024