GGPKG: Show map shows Google Map with overlay

Everything concerning the Wordpress/Joomla/Drupal plugins
Post Reply
User avatar
panox
Posts: 181
Joined: Mon Mar 12, 2007 11:03 pm
Contact:

GGPKG: Show map shows Google Map with overlay

Post by panox » Tue Jul 31, 2018 11:06 am

As described in the title:
snap5530.jpg
snap5530.jpg (225.37 KiB) Viewed 201 times

Do I have to attach the API-Key somewhere?

Best regards

Harald

User avatar
Hopki
Gnome
Posts: 8414
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: GGPKG: Show map shows Google Map with overlay

Post by Hopki » Tue Jul 31, 2018 1:12 pm

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

User avatar
panox
Posts: 181
Joined: Mon Mar 12, 2007 11:03 pm
Contact:

Re: GGPKG: Show map shows Google Map with overlay

Post by panox » Tue Jul 31, 2018 2:23 pm

Hello Hopki,

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

Best regards

Harald

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests