Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
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?
It could be that you need to clear your browser cache (do a hard reload) - have you tried that?
Hi Casper, tried it in a fresh browser - still no joy.
Jason
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:
Delete App_Data/umbraco.config file - this will force the file to regenerate, maybe fixing something wrong.
Upgrade Angular google maps nuget package to latest.
Create an issue on GitHub - LocalGovStarterKit/issues
Thanks again Casper.
I will get around to trying your suggestions - when I get some time to look at this again.
Appreciate you help.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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
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
It could be that you need to clear your browser cache (do a hard reload) - have you tried that?
Hi Casper, tried it in a fresh browser - still no joy.
Jason
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:
Delete App_Data/umbraco.config file - this will force the file to regenerate, maybe fixing something wrong.
Upgrade Angular google maps nuget package to latest.
Create an issue on GitHub - LocalGovStarterKit/issues
Thanks again Casper.
I will get around to trying your suggestions - when I get some time to look at this again.
Appreciate you help.
is working on a reply...