Member
Member
slommer   2016-09-21, 18:00
#1

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

Administrator
Administrator
acrylian   2016-09-21, 19:20
#2

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.

Administrator
Administrator
fretzl   2016-09-22, 09:06
#3

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
`

Member
Member
slommer   2016-09-22, 09:35
#4

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.

Administrator
Administrator
fretzl   2016-09-22, 10:23
#5

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]

Administrator
Administrator
acrylian   2016-09-22, 10:23
#6

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

Administrator
Administrator
acrylian   2016-09-22, 10:25
#7

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.

Administrator
Administrator
fretzl   2016-09-24, 11:46
#8

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.