queue  45
support
Results 1 to 3 of 3

Thread: Google Map

  1. #1
    Junior Member
    Join Date
    Aug 2016
    Posts
    8

    Google Map

    Hi,
    I've installed the theme of a new wordpress site, you can find it here:
    http://oftalpharma.it/wp2016
    (of course is a work in progress site)
    but I'm not able to see the Google Map in contact-us page, here:

    http://oftalpharma.it/wp2016/contatto/

    The JavaScript console reports the following errors:

    - Google Maps API error: MissingKeyMapError https://developers.google.com/maps/d...-key-map-error
    - Uncaught TypeError: Cannot read property 'addEventListener' of undefined

    and the following warnings:
    - Google Maps API warning: NoApiKeys https://developers.google.com/maps/d...es#no-api-keys
    - Google Maps API warning: SensorNotRequired https://developers.google.com/maps/d...r-not-required

    Could you help me to understand where I have to put the Google Map API Key?

    Thanks, regards,
    Gianfranco Giachetti

  2. #2
    Junior Member
    Join Date
    Aug 2016
    Posts
    8
    Can someone help me please?

    Thank you...

  3. #3
    Junior Member
    Join Date
    Aug 2016
    Posts
    8
    Solved.
    In the file:

    wp-content/themes/form/theme/php/PeTheme/PeThemeFormAsset.php

    I've added the key in the last line:

    wp_enqueue_script( 'pe_theme_form_gmap', '//maps.googleapis.com/maps/api/js?v=3.exp&key=MYGOOGLEAPIKEYHERE' );