Google Maps throwing lots of errors

Hi guys,

OK I have just installed latest Google Maps plugin on the latest Events+ and when I go to add a map the map does not appear. Looking in Google console I get a load of errors relating to the Google Maps plugin:

SVGElement.offsetWidth' is deprecated and will be removed in M50, around April 2016. See https://www.chromestatus.com/features/5724912467574784 for more details.
util.js:210 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
util.js:210 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required
js?v=3&libraries=panoramio,panoramio&sensor=false&callback=agmInitialize:37 Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error_.hb @ js?v=3&libraries=panoramio,panoramio&sensor=false&callback=agmInitialize:37(anonymous function) @ common.js:51(anonymous function) @ common.js:191c @ common.js:45(anonymous function) @ AuthenticationService.Authenticate?1shttp%3A%2F%2Fwww.nomadpodcast.co.uk%2Fwp-admin%2Fpost.php%3Fpo…:1
google-maps.min.js?ver=4.6.1:4 getCurrentPosition() and watchPosition() are deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
js?v=3&libraries=panoramio,panoramio&sensor=false&callback=agmInitialize:98 Uncaught TypeError: Cannot read property 'addEventListener' of undefined

Sometimes the map is about to load but then this message appears:

Sorry! Something went wrong.
This page didn't load Google Maps correctly. See the JavaScript console for technical details.

I tried in Chrome and Firefox browser, same errors. It looks like its looking for API details but I can see no place to set this up and its not in the plugin's usage instructions.

Any help much appreciated.

Thanks

  • Vaughan
    • Support/SLS MockingJay

    Hi ThePath

    Hope you're well?

    Googlemaps doesn't yet support API keys which is now a requirement for googlemaps.

    Can you follow the directions by Adam in the following thread, included is a beta version of googlemaps with the new API function.

    https://premium.wpmudev.org/forums/topic/so-8

    You will need toget an API key from google, Can you follow instructions in this link https://developers.google.com/maps/documentation/javascript/get-api-key in "Authentication for the standard API — API keys" to "Get an API key" and generate new key for your site.

    Make sure that the referers and authorized domains match your websites domain.

    Hope this helps

  • Vaughan
    • Support/SLS MockingJay

    No Prob :slight_smile: Let us know if you have any issues.

    I have asked our head of support to try & pressure the developer to get a final release out for this so that we don't keep having to provide the beta. :slight_smile:

    Some people did report that it can take a few hours before google API kicks in.

    Cheers

  • ThePath
    • The Bug Hunter

    There are a few issues I have noticed.

    When I save a map thats zoomed in it only ever shows it as zoomed out to almost country level. I even changed the default map zoom settings to City Plan with no effect.

    Also it always shows those annoying images underneath if when the box is not checked. Panoramio stuff.

  • Adam Czajczyk
    • Support Gorilla

    Hello ThePath!

    I tested beta release of Google Maps with recent Events+ plugin but wasn't able to replicate that. The map shows for me zoomed to the level I set and there's no Panoramio photos.

    I would like to take a closer look at this on your site then. Would you mind granting me a support access to it? Here's a guide on how to do this:

    https://premium.wpmudev.org/manuals/wpmu-dev-dashboard-enabling-staff-login/

    Let me also know please about example Event that I should check.

    Best regards,
    Adam

  • ThePath
    • The Bug Hunter

    Hi adam

    I dont have dashboard installed on this site Im afraid.

    How are you adding the map? Are you adding to the post body or via the event location section in event details area?

    I have noticed if I add the map to the main event body text area it works but if I add it to the event location section it shows the map unzoomed and with panoramio images.

    Thanks

  • ThePath
    • The Bug Hunter

    In fact I think it may be a bug, I noticed I had checked the "associate with post" option. I have now unchecked this and remove the map reference from the location and the map still shows....i cant get rid of it.

    Also if you open up the map via the little icon, close it you cannot go back in again until you refresh the page.

    And if you enable the disable scroll addon, the option appears in the map options but when you select it, it does not add the relevant bit to the shortcode you still have to add the disable_scroll="true" manually to the shortcode. On this track it seems that the is_responsive is not automatically applied despite a setting being present which eludes to this being the case.

  • ThePath
    • The Bug Hunter

    Oh for goodness sake!

    OK so I had to delete the map. This removed it from the event. I remade it and only added it to the event body but for some reason it added it to the event location section too. If you leave the shortcode in the location bit and save the unzoomed map appears, if you then delete the shortcode from the location area it makes no difference and you have to delete the map to get rid of the damn thing!

    Also I think if you set the panoramio setting once and then unselect it you cant get rid of them either.

    It appears if you add the map to the

  • Predrag Dubajic
    • Support

    Hi ThePath,

    I was able to replicate the issue with map not being removed once associated with post and later disabled, I have created a bug report for this issue.

    However I'm unable to replicate the first issue you reported, both maps, in event content and in Event location input field are shown properly as you can see it here:

    Could you install WPMU DEV Dashboard and grant us support access until we figure this one out?

    Best regards,
    Predrag

  • ThePath
    • The Bug Hunter

    Hi Predrag,

    I think the error is when adding the map. If you add it using the shortcode icon above the main post description it seems to add it not only to the post but also the location widget too. Caught me out as I didn't want to add it to the location widget and so it added two maps on the front end, one of which was un-zoomed.

    Hopefully these usability issues are ironed out for next release.

    Thanks

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.