Marco M
Marco M

Reputation: 1

map.js:56 Uncaught TypeError: this.l.keys is not a function - Google Maps

I came here searching some help if someone is having the same issue.

In my work, we have a web application that used Gmaps API version 3.34, but on may 15, this version was deleted for google and the maps stop working.

The app, takes automatically the new version 3.37, but the console throw the error:

map.js:56 Uncaught TypeError: this.l.keys is not a function at _.ll.Ab (map.js:56) at ou (map.js:43) at map.js:44

Some info about the app:

I tied some variations but nothing works:

The console shows the error in the Gmap API line 56, at this point:

||a;g=this.C.ka;h=_.ua(this.l.keys());for(var l=h.next();!l.done;l=h.next()){l=l.value;var m=this.l.get(l),q=m.la,r=q.Y,v=new Bs(g,k,r),u=new Bs(g,a,r),w=!this.J&&

The error is:

Uncaught TypeError: this.l.keys is not a function

I apreciate some help

Thx

Upvotes: -4

Views: 1114

Answers (1)

Matheos Gomes
Matheos Gomes

Reputation: 31

I have the same issue, one workaround is to remove 'center' from Maps options.

The same error is thrown when you try to setCenter().

Edit* : Turns out i was naming a method Map() and javascript already has a Map() function.

Check your code if you're not doing the same or the includes in the page.

Upvotes: 3

Related Questions