kkpowar / gmaps-utility-library-dev

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

Error occurred by setLatLng method with LabeledMarker in MarkerManager #54

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I used both  LabeledMarker(Ver1.2) and MarkerManager(Ver 1.1) .
After added LabeledMarker to MarkerManager and refreshed,
I set marker point to another large distance point by setLatLng() method then
「this.div_ is null」error occurred from labeledmaker.js

(Evasion)
Set large number to borderPadding parameter of  MarkerManager options ,
then this error not occurred. But large number of  borderPadding param is
bad perfomance.

Is that a bug ?

Original issue reported on code.google.com by yyr...@gmail.com on 6 Aug 2008 at 9:29

GoogleCodeExporter commented 8 years ago
Can you provide a link demonstrating this?

Original comment by pamela.fox on 27 Aug 2008 at 5:55

GoogleCodeExporter commented 8 years ago
This is link to test page.
http://yoneyone.my-sv.net/testmarker.htm

Original comment by yyr...@gmail.com on 28 Aug 2008 at 8:02

GoogleCodeExporter commented 8 years ago
Ah, okay. It's trying to redraw the label when it doesnt exist. Can you try
commenting out the line in LabeledMarker.prototype.setLatLng that says
this.redrawLabel_() and see if it still occurs?

Original comment by pamela.fox on 30 Aug 2008 at 2:11

GoogleCodeExporter commented 8 years ago
Thank you. 
Thank you. 
It was possible to solve it thanks to your advice. 

Original comment by yyr...@gmail.com on 1 Sep 2008 at 7:11

GoogleCodeExporter commented 8 years ago
Great, glad that works. I've pushed the fix in r710.

Original comment by pamela.fox on 2 Sep 2008 at 3:12