PackageViewer (iOS) & GoogleMap HTTP referrer ?

Q&A about the latest versions
Post Reply
Peres
Posts: 2
Joined: Mon Apr 26, 2021 8:42 pm

Sun May 02, 2021 8:33 pm

May I ask -
What would be a correct HTTP referrer in the GoogleMap API Credentials section, for showing map content in projects uploaded to the PackageViewer (iOS) ?
A HTTP referrer of localhost:1234/* (or similar) works in Safari but not in iOS.

Thanks & best regards,
Rainer
User avatar
Hopki
Gnome
Posts: 11365
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Mon May 03, 2021 9:19 pm

Hi Rainer,
Only do this if the tour is going to be loaded in the APP and no one can download the package.
So basically only you using it on your device, otherwise use OpenStreetMap as it's free.
If you leave the HTTP blank and it will then be open.

Screenshot 2021-05-03 at 20.16.22.png
Screenshot 2021-05-03 at 20.16.22.png (27.33 KiB) Viewed 187 times

Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
thomas
Chief Gnome
Posts: 2568
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

Tue May 04, 2021 3:56 pm

The files in the package viewer are opened with the "file:" protocol. In the Google API key resrictions you need to use the macro __file_url__ to make the work. So with

Code: Select all

__file_url__*   
you can allow Google Maps in the package, and also prevent others from using your key on their website.
Screen Shot 2021-05-04 at 15.55.33.png
Screen Shot 2021-05-04 at 15.55.33.png (28.06 KiB) Viewed 176 times
MfG, Thomas
Peres
Posts: 2
Joined: Mon Apr 26, 2021 8:42 pm

Tue May 04, 2021 4:34 pm

Thanks a lot Hopi and Thomas, for your advice and the warning about the referrer.
Much appreciated.

Best regards,
Rainer
Post Reply