yenbao1340 / gmaps-utility-library-dev

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

this.div_ is null #89

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I use multiple marker groups with visibility toggling like shown in this
example:
http://gmaps-utility-library.googlecode.com/svn/trunk/labeledmarker/release/docs
/examples.html

It works well as long as I do not change the zoom level or move the map. If
I zoom into the map a "this.div_ is null" error is reported by my FireFox
browser and the "for"-loop that iterates through all markers in a group is
exited. As a result not all markers change their visibility.
You can reproduce the problem here: http://home.arcor.de/gak-a/gc/indexXML.html
Clicking on the green box in the right top corner should toggle the
visibility of all green box markers. It works well as long as you do not
zoom into the map. Then, only part of the green box markers toggle and a
"this.div_ is null" error happens.

I tried labeledmarker version 1.1, 1.2, and 1.3 and all result in the same
error.

Any ideas? Is it a bug in my implementation, of labeledmarker or of Google
maps?

Thanks in advance for any comments and help!

Original issue reported on code.google.com by gerald.g...@gmail.com on 17 Feb 2009 at 11:11

GoogleCodeExporter commented 8 years ago
Update to my post:

I removed the toogle functionality. Then, my code works well for revisions < 
1.3.
However, there is still a "this.div_" error with r1.3.

I uploaded two examples:
v1.2 http://home.arcor.de/gak-a/gc/indexXML12.html
v1.3 http://home.arcor.de/gak-a/gc/indexXML13.html   <-- "this.div_" error when
zooming in/out of the map.

I use FireFox 3.0.6.

Original comment by gerald.g...@gmail.com on 27 Feb 2009 at 11:21

GoogleCodeExporter commented 8 years ago
Fixed in r933 by moving DIV construction into initialize, where it belongs. 
Also 
added example to check that this works as expected.
http://gmaps-utility-library-
dev.googlecode.com/svn/trunk/labeledmarker/examples/markerremove.html

Original comment by pamela.fox on 28 Feb 2009 at 7:35

GoogleCodeExporter commented 8 years ago
Fixed in 1.4 release.

Original comment by pamela.fox on 23 Jun 2009 at 9:56