OpenLayers OpenLayers

Ticket #1147: map.patch

File map.patch, 0.6 kB (added by cph, 10 months ago)
  • Map.js

    old new  
    384384        OpenLayers.Event.stopObserving(window, 'unload', this.unloadDestroy); 
    385385        this.unloadDestroy = null; 
    386386 
     387        if (this.controls != null) { 
     388            for (var i = this.controls.length - 1; i>=0; --i) { 
     389                this.controls[i].deactivate(); 
     390            }  
     391        } 
    387392        if (this.layers != null) { 
    388393            for (var i = this.layers.length - 1; i>=0; --i) { 
    389394                //pass 'false' to destroy so that map wont try to set a new