Angular-google-maps: Uncaught TypeError: Cannot read property 'Ra' of null

Created on 17 May 2016  路  8Comments  路  Source: SebastianM/angular-google-maps

Steps to reproduce

  1. Open the Demo http://plnkr.co/edit/YX7W20?p=preview
  2. After grabbing the map and panning it with enough inertia that it continues to pan after letting go, panning it again throws an error.
  3. In console pops up error:

Uncaught TypeError: Cannot read property 'Ra' of null
_.t.ul @ common.js:251
_.I.trigger @ js?v=3&callback=angular2googlemaps911:91
nx @ common.js:200
(anonymous function) @ common.js:199
_.I.trigger @ js?v=3&callback=angular2googlemaps911:91
_.t.Ym @ common.js:264
_.t.$n @ common.js:238
ZoneDelegate.invokeTask @ zone.[email protected]?main=browser:356
Zone.runTask @ zone.[email protected]?main=browser:256
ZoneTask.invoke @ zone.[email protected]?main=browser:423

important AgmMap bug

All 8 comments

@dubadub thanks for the bug report. I can reproduce it. Not totally sure what is going on. This needs more research. I'm happy to merge a bug fix (if someone has a clue)

i also confirm this one....i

@SebastianM
First, great job with the library! It rocks!

According to a comment in gmaps-api-issues #7988 (linked below), "This error was introduced by the latest release of the Maps API experimental version. We have rolled back the release while we are investigating."

Looks like explicitly referencing API version 3.18 is working out. Not explicitly referencing the version number will directly get you the experimental API version (v3.exp)

https://developers.google.com/maps/documentation/javascript/versions

https://code.google.com/p/gmaps-api-issues/issues/detail?id=7991
https://code.google.com/p/gmaps-api-issues/issues/detail?id=7988

Hope this helps!

@genocation Thanks you! :)

Looks like explicitly referencing API version 3.18 is working out.

3.18 is not working for me (also this version and the described bug is very old)

Not explicitly referencing the version number will directly get you the experimental API version (v3.exp)

The LazyMapsAPILoader uses v3 by default, so this can be no problem of a experimental version:
https://maps.googleapis.com/maps/api/js?v=3&callback=angular2googlemaps765

Still investigating...

I discovered that this must be a Zone.js bug. When using the plain Google Maps API and adding Zone.js to the page, the described error occurs. Demo: http://plnkr.co/edit/hbjkks?p=preview

I will create an Issue for Zone.js shortly.

For the record I started getting this one more in recent versions...

me too!

shims.js?1466631798260:5 Uncaught TypeError: Cannot read property 'Qa' of null

you just have to manually drag the map a little and it comes

This is fixed with angular RC 5

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nthonymiller picture nthonymiller  路  4Comments

DeveloperAdd007 picture DeveloperAdd007  路  3Comments

dineshkumar20 picture dineshkumar20  路  3Comments

n1t3w0lf picture n1t3w0lf  路  3Comments

marcelinobadin picture marcelinobadin  路  3Comments