Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google maps API Key #7

Open
JasonRodwell opened this issue Jan 18, 2017 · 2 comments
Open

Google maps API Key #7

JasonRodwell opened this issue Jan 18, 2017 · 2 comments

Comments

@JasonRodwell
Copy link

JasonRodwell commented Jan 18, 2017

Hi Kevin,
where do I need to include my Google maps API key to get the map to display in the front end?

I tried adding it to: App_Plugins / AngularGoogleMaps / 2.0.3 / agm.js (line 12 & line 109) but no luck.

Thanks
Jason

@KevinJump
Copy link
Owner

hi the front end maps are seperated from the ones in the back end so they are actually rendered by the partial view Views/Paritals/Components/LocationMap [
https://github.com/KevinJump/LocalGovStarterKit/blob/v6-main/Src/LGStarterKit.Site/Views/Partials/Components/LocationMap.cshtml]

there is also a helper script in scripts/lgsk.googlemaps.js https://github.com/KevinJump/LocalGovStarterKit/blob/v6-main/Src/LGStarterKit.Site/scripts/lgsk.googlemaps.js

when i put it together it was using api v3 and i don't think you needed an api key to render the map, but i am not sure if that has changed.

@BobbyFromHouston
Copy link

Hi Kevin,

I am seeing the same issue with regard to rendering the map. Google is barking: "This page can't load Google Maps correctly." I think that I just need to be able to plug in the API Key.

I'm sure that I can find it, but any help would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants