question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google now requires ApiKey for all new URLs, please update readme.md with...

See original GitHub issue

Issue description Google now requires ApiKey for all new URLs, please update readme.md with code below

var googleKey = function () {
    var config = new LazyMapsAPILoaderConfig();
    config.apiKey = 'YOUR_KEY';
    return config;
}

@NgModule({
    imports: [BrowserModule],
    providers: [ANGULAR2_GOOGLE_MAPS_PROVIDERS,
    {provide: LazyMapsAPILoaderConfig, useFactory: () => googleKey()}],
    bootstrap: [Main],
})
export class App {
}

Steps to reproduce and a minimal demo of the problem use a new URL that was not grandfathered in (google never seen it) and map will not work

Current behavior no data

Expected/desired behavior if key provided all works

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
sebholsteincommented, Aug 19, 2016

Ya, I will update this example:

@NgModule({
  imports: [BrowserModule, AgmCoreModule.forRoot()],
  providers: [
    provideLazyMapsAPILoaderConfig({apiKey: 'key'})
  ],
  declarations: [MyMapsProjectAppComponent],
  bootstrap: [MyMapsProjectAppComponent]
})
export class AppModule {
}
1reaction
dlpittacommented, Sep 1, 2016

@SebastianM, in this middle time, I solved the problem. I’m not sure what causes the problem but I just unified the .html e .css files inside the code of responsible component for Google Maps API implementation, and it works! Thanks for your time!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google now requires ApiKey for all new URLs, please update ...
Issue description Google now requires ApiKey for all new URLs, please update readme.md with code below var googleKey = function () { var ......
Read more >
Use API Keys with Geocoding API | Google Developers
This guide shows how to create, restrict, and use your API key for Google Maps Platform. Before you begin. Before you start using...
Read more >
ggmap - README
ggmap is an R package that makes it easy to retrieve raster map tiles from popular online mapping services like Google Maps and...
Read more >
git - Download single files from GitHub - Stack Overflow
Go to the file you want to download. Click it to view the contents within the GitHub UI. In the top right, right...
Read more >
ReadMe: OpenAPI and Swagger for API Documentation
These machine-readable formats define everything a developer needs to integrate with an API: authentication, endpoints, HTTP methods, request ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found