Page 1 of 1

GGPKG: Show map shows Google Map with overlay

Posted: Tue Jul 31, 2018 11:06 am
by panox
As described in the title:
snap5530.jpg
snap5530.jpg (225.37 KiB) Viewed 1635 times

Do I have to attach the API-Key somewhere?

Best regards

Harald

Re: GGPKG: Show map shows Google Map with overlay

Posted: Tue Jul 31, 2018 1:12 pm
by Hopki
Hi Harald,
The Map option in the plugin was before we had maps in the skin editor and before Google started charging so was a stop gap that never got removed.
Our preferred/suggested way would be you deselect this and use the map skin element which can use your API key.

However if you like the idea of the map below the pano then you can manually add you API in the ggpkg-import.php file.
wp/wp-content/plugins/ggpkg-import/ggpkg-import.php
Find:

Code: Select all

wp_enqueue_script('googlemaps', 'https://maps.googleapis.com/maps/api/js?v=3.exp');
Then add your API:

Code: Select all

wp_enqueue_script('googlemaps', 'https://maps.googleapis.com/maps/api/js?v=3&key=YOUR_KEY');
Regards,
Hopki

Re: GGPKG: Show map shows Google Map with overlay

Posted: Tue Jul 31, 2018 2:23 pm
by panox
Hello Hopki,

thank you for your helpful support! :D
snap5533.jpg
snap5533.jpg (189.15 KiB) Viewed 1627 times
Have a nice and hopefully not so hot day!

Best regards

Harald