PackageViewer (iOS) & GoogleMap HTTP referrer ?

Q&A about the latest versions
Post Reply
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,
User avatar
Posts: 11369
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK

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 217 times

Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
User avatar
Chief Gnome
Posts: 2570
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria

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

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 206 times
MfG, Thomas
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,
Post Reply