angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

Dev Console warning - Google Maps API warning NoApiKeys

Open nickpricks opened this issue 8 years ago • 10 comments

Warning is coming in dev console on all browsers,

Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

I don't see any way of dynamically inserting Api key?

nickpricks avatar Apr 29 '16 07:04 nickpricks

Hi all, I have got the same problem. Is there any solution to this issue. If no, is there any other problem that this issue can cause?

ghost avatar May 08 '16 01:05 ghost

have u tried this ?

.config(function(uiGmapGoogleMapApiProvider) {
    uiGmapGoogleMapApiProvider.configure({
        //    key: 'your api key',
        v: '3.20', //defaults to latest 3.X anyhow
        libraries: 'weather,geometry,visualization'
    });
})

visiongeist avatar May 08 '16 18:05 visiongeist

Yes, and still get the error: uiGmapGoogleMapApiProvider.configure({

    libraries: 'weather,geometry,visualization',
    key: '{MY API KEY}',
    transport: 'http',
    isGoogleMapsForWork: true
});

Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

edgar0011 avatar May 09 '16 07:05 edgar0011

+1 Same issue here

Siim avatar May 09 '16 12:05 Siim

I figured it out. In my case it was a conflict between underscore.js and lodash.js library. I removed lodash.fp.js and the problem went away. Hopefully it helps!

Siim avatar May 09 '16 12:05 Siim

Same issue here. Didn't fix with removing lodash.

snize avatar May 20 '16 07:05 snize

+1

Didn't fix with removing lodash either

vool avatar Jun 03 '16 16:06 vool

Same issue...

nhim175 avatar Jul 03 '16 01:07 nhim175

+1. Someone could fix it?

demorales13 avatar Feb 07 '17 19:02 demorales13

I've found that calling

fp = _.noConflict();

before loading angular-google-maps solves the issue.

But I suspect the "Lodash 4 compatibility" code in lodash.coffee is the culprit.

gabejohnson avatar Jul 13 '17 14:07 gabejohnson