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

Map is not working in Server-Client UI #6

Closed
ghost opened this issue Mar 23, 2018 · 1 comment
Closed

Map is not working in Server-Client UI #6

ghost opened this issue Mar 23, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 23, 2018

Update: I just realized adding <script> tag with API_KEY makes the map work only in Chrome incognito mode.

Since now it requires to use API_KEY , I tried to add key in app.js file however the map does not load and displays the MissingKeyMap Error.

I am running the server on localhost:3000. I even tried replacing my own api key but no luck.
Can you please help how can I fix this.
app.js


.config(['uiGmapGoogleMapApiProvider', function(uiGmapGoogleMapApiProvider) {
var config = {
key: 'AIzaSyCU86vupyU0nMI7QvDnfJXteNxLyfrMSDg',
v: '3.3', //defaults to latest 3.X anyhow
libraries: 'weather,geometry,visualization'
}
if ((/herokuapp/).test(window.location.host))
config.key = 'AIzaSyCU86vupyU0nMI7QvDnfJXteNxLyfrMSDg'
uiGmapGoogleMapApiProvider.configure(config);
}])
.config(['cfpLoadingBarProvider', function(cfpLoadingBarProvider) {
cfpLoadingBarProvider.includeSpinner = false;
}])

Am I missing anything ?

@ghost
Copy link
Author

ghost commented Mar 24, 2018

Resolved, using new API key and appending & . API_KEY + &

@ghost ghost closed this as completed Mar 24, 2018
This issue was closed.
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

0 participants