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