yenbao1340 / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

this.map_ is undefined #127

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Today I ran into this problem when I zoom or move the map.
Issue 89 (http://code.google.com/p/gmaps-utility-library-dev/issues/detail?
id=89) is related to this issue because I also got the error described 
there.

I'm using the MarkerManager class (v1.0) and the LabeledMarker class 
(v1.4).

I think there was a change in the call to the 
LabeledMarker.prototype.redrawLabel_ function on line 149.
I noticed that this function is called twice (when zooming).
The first call everything works out just fine, but the in the second call 
the variable "this.map_" is undefined, causing the javascript code to 
crash.

When I change this function and add a "if(this.map_)" statement around the 
code in this function it works fine again, but that's not the source of 
the problem.

Maybe you can solve this?

Some additional info:

Error: a is undefined
Source file: 
http://maps.gstatic.com/intl/nl_ALL/mapfiles/159e/maps2.api/main.js
Line: 274

Error: a is undefined
Source file: 
http://maps.gstatic.com/intl/nl_ALL/mapfiles/159e/maps2.api/main.js
Line: 1111

Error: this.map_ is undefined 
Source file: [domain]/js/labeledmarker.js 
Line: 153

Using: Firefox 3.0.11 on Windows Vista Ultimate SP1

Original issue reported on code.google.com by dirkpenn...@gmail.com on 1 Jul 2009 at 8:37

GoogleCodeExporter commented 8 years ago
I get both of these same errors.  This was a year ago and no response?  yikes

Original comment by tommy.wi...@gmail.com on 15 Sep 2010 at 6:49