Okay
  Public Ticket #2917959
GOOGLE MAPS
Closed

Comments

  • Gabriela started the conversation

    Hello!

    I cant see the map on the web site, on the editor not appear the section where insert a API, or enable Google Maps, can I use a plugin?

    Thanks!

  •  1,798
    Support Agent replied

    Hi!

    Thank you for contacting us.

    We have inspected your site and seen that you have an RefererNotAllowedMapError error.

    Please see the following link. It will guide you how to solve it.

    https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error

    8260848139.png


    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!

  • Gabriela replied

    Thanks!

    Yes I have the API Key, but I dont founded where insert the code, in which section.

  •  1,798
    Support Agent replied

    Hi Gabriela!

    Did you do the following procedure?

    1. Go to the Google Maps Platform > Credentials page.

      Go to the Credentials page

    2. Select the API key that you want to set a restriction on. The API key property page appears.
    3. Under Key restrictions, set the following restrictions:
    • Application restrictions:
    1. To accept requests from the list of website that you supply, select HTTP referrers (web sites) from the list of Application restrictions.
    2. Specify one or more referrer web sites. For example, *.google.com accepts all sites ending in google.com, such as https://developers.google.com.


      Note: file:// referers need a special representation to be added to the key restriction. The "file://" part should be replaced with "__file_url__" before being added to the key restriction. For example, "file:///path/to/" should be formatted as "__file_url__//path/to/*". After enabling file:// referers, it is recommended you regularly check your usage, to make sure it matches your expectations.

    API restrictions:
    1. Click Restrict key.
    2. Select Maps JavaScript API from Select APIs dropdown. If the Maps JavaScript API is not listed, you need to enable it.
    3. If your project uses Places Library, also select Places API. Similarly, if your project uses other services in the JavaScript API (Directions ServiceDistance Matrix ServiceElevation Service, and/or Geocoding Service), you must also enable and select the corresponding API in this list.
    To finalize your changes, click Save.


    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!