OpenLayers OpenLayers

Changeset 674

Show
Ignore:
Timestamp:
06/22/06 11:35:33 (2 years ago)
Author:
crschmidt
Message:

Make the UntiledWMS work better. This changes the API for an internal function (moveToNewExtent), but doesn't break any existing code.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Layer/UntiledWMS.js

    r672 r674  
    8686                                             url, this.map.getSize()); 
    8787    }, 
    88     moveTo:function(bounds,zoomChanged) { 
    89         this.div.innerHTML = ""; 
    90         tile = this.addTile(bounds, new OpenLayers.Pixel(-parseInt(this.map.layerContainerDiv.style.left), -parseInt(this.map.layerContainerDiv.style.top))); 
    91         tile.draw(); 
     88    moveTo:function(bounds,zoomChanged, minor) { 
     89        if (!minor) { 
     90            this.div.innerHTML = ""; 
     91            tile = this.addTile(bounds, new OpenLayers.Pixel(-parseInt(this.map.layerContainerDiv.style.left), -parseInt(this.map.layerContainerDiv.style.top))); 
     92            tile.draw(); 
     93        } 
    9294    }, 
    9395    /** @final @type String */ 
  • trunk/openlayers/lib/OpenLayers/Map.js

    r663 r674  
    476476 
    477477        if (!minor) this.events.triggerEvent("movestart"); 
    478         this.moveToNewExtent(zoomChanged); 
     478        this.moveToNewExtent(zoomChanged, minor); 
    479479        if (!minor) this.events.triggerEvent("moveend"); 
    480480    }, 
     
    484484     * @private 
    485485     */ 
    486     moveToNewExtent: function (zoomChanged) { 
     486    moveToNewExtent: function (zoomChanged, minor) { 
    487487        if (zoomChanged != null) { // reset the layerContainerDiv's location 
    488488            this.layerContainerDiv.style.left = "0px"; 
     
    497497        var bounds = this.getExtent(); 
    498498        for (var i = 0; i < this.layers.length; i++) { 
    499             this.layers[i].moveTo(bounds, (zoomChanged != null)); 
     499            this.layers[i].moveTo(bounds, (zoomChanged != null), minor); 
    500500        } 
    501501        this.events.triggerEvent("move");