google maps api

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

Comments

  • acrylian Administrator, Developer
    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.
  • fretzl Administrator, Developer
    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
    `">`

    to

    `">`
  • 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.
  • fretzl Administrator, Developer
    ...openstreetmaps zooms out to country view when display the photo itself
    You can control that zoom with the plugin option Map zoom (default zoom level)
  • acrylian Administrator, Developer
    But prefer google maps for now.

    Big brother Google for sure is glad about that ;-)
  • acrylian Administrator, Developer
    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.
  • fretzl Administrator, Developer
    An option for an API key has been added to the plugin.
    Available in the 1.4.13 Support build
Sign In or Register to comment.