ZenphotoCMS Forum
google maps api - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: google maps api (/thread-12586.html)



google maps api - slommer - 2016-09-21

Just installed zenphoto last week and all is perfect.
the only I can't get to work is google maps.
Also can't find other people with the issue.
I get the following error:
Oops! Something went wrong.
This page didn't load Google Maps correctly. See the JavaScript console for technical details.

Devtools in chrome says the following:
js?v=3.exp&language=en:34 Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error_.kb @ js?v=3.exp&language=en:34
util.js:206 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

I insert my google Api key in zp-core/zp-extensions/GoogleMap/CodeIgniter-Google-Maps-V3-API/Googlemaps.php
But still doesn't work.
I can see the maps for a sec and then the error popsup.
The test site is http://gallery.skinner.a2000.nu/index.php?album=geotest

Anyone can give me a tip on how to fix this?

Thnx in advance

SlommeR




google maps api - acrylian - 2016-09-21

Apparently Google changed something recently no one noticed and now a key is required if you use the api… Probably the plugin needs some reviewand an option for that key (don't have any right now).

You could also try the currently "half official" OpenStreepMap plugin as an alternative which for sure does not require any keys.




google maps api - fretzl - 2016-09-22

Yes, Google has changed its "Google Maps APIs Standard Plan" since june 2016.
(https://googlegeodevelopers.blogspot.nl/2016/06/building-for-scale-updates-to-google.html)

In the meantime you could try the following:
In ...zp-core/zp-extensions/GoogleMap.php

change line 140 from
`




google maps api - slommer - 2016-09-22

Awesome. Got both things working. But prefer google maps for now. Easier with different themes and openstreetmaps zooms out to country view when display the photo itself.

Thnx for the quick support on this.




google maps api - fretzl - 2016-09-22

Quote:...openstreetmaps zooms out to country view when display the photo itself
You can control that zoom with the plugin option [i]Map zoom (default zoom level)[/i]




google maps api - acrylian - 2016-09-22

Quote:But prefer google maps for now.
Big brother Google for sure is glad about that ;-)




google maps api - acrylian - 2016-09-22

Actually openstreetmap should focus on the marker of the current image and not zoom out (except for album view where it should to fit several markers). If so that probably can be changed.




google maps api - fretzl - 2016-09-24

An option for an API key has been added to the plugin.
Available in the 1.4.13 Support build