Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • George 33 posts 66 karma points
    Jan 31, 2017 @ 09:49
    George
    1

    Looks Amazing but cannot get key to be recognised!

    Hi,

    Thank you for all your hard work on what looks like an amazing tool! I've installed it, and tried working with it but just cannot get it to recognise my Google Maps API Key. I've tested the key from the website by including it as HTML in a template, and all works fine. So I'm pretty sure the key is good, and my firewall is allowing access to Google maps. Any help on how to debug this would be most helpful!

    (When I first installed I'm sure I saw a button that said something like [Verify Key] or something like that ... but now don't see anything similar. When I edit the datatype it tells me nothing about whether the key is valid or not, only when I try to edit content do I get a red symbol and "Invalid Google Map API Key". This is the same key that's working fine in plain HTML!

    Thanks in advance!

    George

  • Jonathan Richards 288 posts 1742 karma points MVP
    Jan 31, 2017 @ 16:14
    Jonathan Richards
    0

    Hi George,

    If you look at the console log in the browser, is there any errors being generated by Google ?

    Error log in Chrome when you don't have a valid API Key

    Cheers

  • George 33 posts 66 karma points
    Feb 01, 2017 @ 12:02
    George
    1

    Hi Jonathan

    Thanks for such a blinding response!

    Here are the console when I try to access a page in content editor mode: enter image description here

    and from Developer...Data Types: enter image description here

    I hope these help - because they don't make any sense to me :-)

  • Jonathan Richards 288 posts 1742 karma points MVP
    Feb 01, 2017 @ 20:07
    Jonathan Richards
    0

    Hi George,

    Hum, that's not great. 'Cannot read property '$$hashkey; of null' That's something fundamentally wrong with Angular - ouch. Making a guess but its not loading the AGM config settings. Can I suggest deleting that datatype and creating a new one (See image) enter image description here

    Though beyond that, I have a new map data type coming out next week. I've been working on it for the last two weeks, and as well as doing Google Maps, it can use other map providers too. It also contains loads more settings, like map styling, versioning, options etc.

    While this new package contain similar Google API Key code, the loading and handling within the angular framework has been improved. Though from the look of your error, I'm not sure what could be causing it, so I can't say whether my new package would solve your issue.

    Suffice to say, while I'm sorry to hear that my old package is causing issues, but very very soon there will be a new package that does everything that AGM does plus loads more.

  • George 33 posts 66 karma points
    Feb 02, 2017 @ 10:08
    George
    1

    Thanks for your very prompt help Jonathan! I'll hang on for the next version because this looks just great!

Please Sign in or register to post replies

Write your reply to:

Draft