I dont understand this Google Maps API key error?!
If I generating GM API key, where to put it?
I use krpano 1.19-pr5
--
PanLUX
I dont understand this Google Maps API key error?!
If I generating GM API key, where to put it?
I use krpano 1.19-pr5
--
PanLUX
Hi,
do you have a link to the example where you have got that error message?
Google has changed it's API again and requires a key now, but normally there should be only a warning in the browser console...
There is currently no direct way to set the key (an API will be added in the next release) but as workaround it would be possible to set the key this way:
Best regards,
Klaus
Hi, Klaus
Links are here:
http://www.konoba-didovsan.com/panorama/GornjiGrad.html
http://www.konoba-didovsan.com/panorama/Kajzerica.html
This is not on my server, and it wasn't online until now.
--
PanLUX
Hello,
I am having the same issue as PanLUX. I am not sure which file to add the workaround code provided by Klaus to? Would someone be able to enlighten me?
Thank you!
Hi,
in the new 1.19-pr6 version the googlemaps.js plugin supports the key setting to allow setting the Google Maps API key.
The tour.xml / vtourskin.xml files were also updated - just set the API key in the tour.xml at the 'maps_api_key' setting.
Best regards,
Klaus
Thanks Klaus, for a quick upgrade of google maps plugin
The tour.xml / vtourskin.xml files were also updated - just set the API key in the tour.xml at the 'maps_api_key' setting.
I think it would be better to use this in vtourskin.xml:
...
if(device.flash,
copy(layer[skin_map].key, skin_settings.maps_bing_api_key);
set(layer[skin_map].url, '%SWFPATH%/plugins/bingmaps.swf');
,
if(skin_settings.maps_type == 'bing',
copy(layer[skin_map].key, skin_settings.maps_bing_api_key);
set(layer[skin_map].url, '%SWFPATH%/plugins/bingmaps.js');
,
copy(layer[skin_map].key, skin_settings.maps_google_api_key);
set(layer[skin_map].url, '%SWFPATH%/plugins/googlemaps.js');
);
);
Display More
--
PanLUX
Hi,
I agree - I have changed that now.
Best regards,
Klaus
Don’t have an account yet? Register yourself now and be a part of our community!