"Uncaught TypeError: Cannot read property 'scale' of null" after dragging the map

798 views
Skip to first unread message

Ross Allen

unread,
Jun 22, 2011, 1:12:29 PM6/22/11
to google-map...@googlegroups.com
After dragging the map a few times on airbnb.com/search you can no longer click markers or drag the map again in Chrome. The zoom control on the left still works, and after changing the zoom once with that control the rest of the map works again too.

Occasionally the exception "Uncaught TypeError: Cannot read property 'scale' of null" is thrown, but for the most part no exceptions show up in the console. No "scale" property is ever accessed by Airbnb's JavaScript, so it must be internal to the Google Maps API.

This happens most frequently in Chrome. I am using 13.0.782.24, but I have heard reports of this problem in other versions. I have yet to reproduce this in Firefox.

The page is using GMaps v3.2.

Has anyone experienced something similar to this?

geoco...@gmail.com

unread,
Jun 22, 2011, 5:22:23 PM6/22/11
to Google Maps JavaScript API v3
Just an FYI, v3.2 has been retired. Pages calling for v3.2 are
actually using v3.3:
Documentation of Versions
Documentation will always reflect the nightly (development) version.
However, for each version, we will offer a separately maintained
reference.

* Nightly Version (3.5) Reference (Current)
* Release Version (3.4) Reference (Feature-Stable)
* Release Version (3.3) Reference (Frozen)
* Versions 3.0, 3.1 and 3.2 have been retired

from:
http://code.google.com/apis/maps/documentation/javascript/basics.html#VersionDocs

Have you tried with any of the other versions that are available?

-- Larry

Ross Allen

unread,
Jun 28, 2011, 2:32:55 AM6/28/11
to google-map...@googlegroups.com
Hey Larry,

Thanks for the response. airbnb.com/search is now on Google Maps v3.5, but the dead listeners still happen after a drag or two in the map view. After dragging occasionally the markers no longer receive events, and the map cannot be dragged again. The zoom control is still functional, and after changing the zoom level with it once the map is draggable again.

This happens consistently in Chrome 13.0.782.32 beta on OS X, but I have not seen it in any other browser.

I unfortunately don't have much more information than that because no exceptions are thrown, but you can reproduce it quickly by using the map view at http://www.airbnb.com/search/

Luke Mahé

unread,
Jun 28, 2011, 2:38:24 AM6/28/11
to google-map...@googlegroups.com
I can't replicate any issues on Chrome. Are you able to create a page that has the least amount of html, css and js that still causes the problem?

-- Luke


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/RVIiI35ALCYJ.

To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply all
Reply to author
Forward
0 new messages