Copied to clipboard

Flag this post as spam?

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


  • Jason Rodwell 5 posts 76 karma points
    Nov 12, 2016 @ 13:35
    Jason Rodwell
    0

    Invalid Google Map API Key

    Hi, I've installed the starter kit including the content but I get an error with the Google map.

    In the back office the "Location Info" tab of the "A Building" page shows an "Invalid Google Map API Key" error.

    When browsing the "/example-content/a-building/" page the map doesn't show & the console returns a "MissingKeyMapError".

    Do I need to include my own API key? If so, where do I add it?

    Thanks Jason

  • Casper 70 posts 308 karma points
    Nov 12, 2016 @ 18:26
    Casper
    0

    Hi,

    I have not tried out this starter kit myself.

    In the Git repo i found this file - look at line 7 - that suggests there must be somewhere you can set that key in the backend: Line 7 is an input field that takes an api key

    I would suggest that you go to developer -> datatypes. Here you will most propably find the maps datatype, and there you should be able to set the key.

    If not the try to look at this: Line 12 has an apiKey var - follow that to see how the plugin resolve the api key

  • Jason Rodwell 5 posts 76 karma points
    Nov 13, 2016 @ 16:18
    Jason Rodwell
    0

    Hi Casper, thanks for your help.

    There is a "Location - Map" picker in the Datatypes where I could add the key.

    This fixed it in the back office.

    However, I tried adding it to the apiKey var in the page you indicated here

    but still no luck...doesn't work in the front end.

    Anyone else have any ideas/suggestions?

    Thanks Jason

  • Casper 70 posts 308 karma points
    Nov 13, 2016 @ 17:45
    Casper
    0

    It could be that you need to clear your browser cache (do a hard reload) - have you tried that?

  • Jason Rodwell 5 posts 76 karma points
    Nov 14, 2016 @ 07:42
    Jason Rodwell
    0

    Hi Casper, tried it in a fresh browser - still no joy.

    Jason

  • Casper 70 posts 308 karma points
    Nov 14, 2016 @ 09:58
    Casper
    0

    Sorry to hear that. Again I have not installed it, so I can check out what is going on.

    In you situation I would go for:

    1. Delete App_Data/umbraco.config file - this will force the file to regenerate, maybe fixing something wrong.

    2. Upgrade Angular google maps nuget package to latest.

    3. Create an issue on GitHub - LocalGovStarterKit/issues

  • Jason Rodwell 5 posts 76 karma points
    Dec 19, 2016 @ 09:35
    Jason Rodwell
    1

    Thanks again Casper.

    I will get around to trying your suggestions - when I get some time to look at this again.

    Appreciate you help.

Please Sign in or register to post replies

Write your reply to:

Draft