google maps api 3 - ProjectedOverlay.js [Function remove] bug -


i'm projectedoverlay.js user , have noticed problem remove function.

in past versions people claimed there error concerning placement of this.setmap(null) in function. apparently solved removing mentioned line. think problem not solved, because omitting call, when change map zoom overlays appear again.

i think better solution put mentioned call @ end of function. i've tested , me it's working perfectly.

// remove main div map pane  projectedoverlay.prototype.remove = function() {  if (this.div_)   {   this.div_.parentnode.removechild(this.div_);   this.div_ = null;   this.setmap(null);  } } 

regards


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -