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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -