Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Question about Google Maps API Limits

  1. #1
    Thread Starter
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts

    Question about Google Maps API Limits

    hi,

    I have a Vantage site which is generating map errors for the large (category or search) Google Map. The map isn't showing and it's just grey - this was working fine earlier, so I think it's some kind of API limit issue.

    So, I went looking into the Google Maps API limits and API keys etc...specifically this page, which explains how to get an API key and how to set Google Maps API V3 to 'on' for that key.

    I have done all that and have been into vantage\includes\geo\map-providers\google-maps.php and added my API key, as follows:

    public function _enqueue_scripts() {
    $google_maps_url = is_ssl() ? 'https://maps-api-ssl.google.com/maps/api/js' : 'http://maps.google.com/maps/api/js';

    $params = array(
    'v' => 3,
    'sensor' => 'false',
    'key' => 'ncTydSMveAIzaSyBnncTydSwCiHeMveVSRNUqFrQ',
    'region' => $this->options['geo_region'],
    'language' => $this->options['geo_language'],
    );

    $google_maps_url = add_query_arg( $params, $google_maps_url );

    wp_enqueue_script( 'google-maps-api', $google_maps_url, array(), '3', true );

    $appthemes_maps_url = get_template_directory_uri() . '/includes/geo/map-providers/google-maps.js';

    wp_enqueue_script( 'appthemes-maps', $appthemes_maps_url, array(), '1', true );

    }

    p.s. I have changed the above API key to a made-up one for this forum post...

    Shouldn't that get me a site-specific limit of 25,000 calls per day, according to Google APIs Console?

    It seems that Vantage doesn't out-of-the-box use the optional key parameter....Dimitris, can you say why this wasn't added as an option to complete in admin settings?

    But even having set the key, I'm still getting the grey screen...do I have to wait for a set period of time for it to clear?

    Have other people had this grey screen issue, and if so how did you fix it? I'm sure I've seen this reported many times, but can't find any threads on it now....


    Thanks in advance,

    red20

  2. #2
    elvisivkovic's Avatar
    Join Date
    Jul 2012
    Location
    Germany
    Posts
    58
    Thanks
    16
    Thanked 4 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    malkie's Avatar
    Join Date
    Nov 2013
    Location
    United Kingdom
    Posts
    442
    Thanks
    39
    Thanked 62 Times in 60 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Thread Starter
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    malkie's Avatar
    Join Date
    Nov 2013
    Location
    United Kingdom
    Posts
    442
    Thanks
    39
    Thanked 62 Times in 60 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    Thread Starter
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #8
    malkie's Avatar
    Join Date
    Nov 2013
    Location
    United Kingdom
    Posts
    442
    Thanks
    39
    Thanked 62 Times in 60 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #9
    Thread Starter
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #10
    joes's Avatar
    Join Date
    Nov 2012
    Location
    Australia
    Posts
    877
    Thanks
    12
    Thanked 358 Times in 261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Google Maps Question
    By ishop in forum Help Using Vantage (Legacy)
    Replies: 1
    Last Post: October 25th, 2012, 04:53 PM
  2. Question about google maps
    By pedro_alfaiate in forum Report Vantage Bugs (Legacy)
    Replies: 5
    Last Post: July 28th, 2012, 01:13 PM