Changeset 1785
- Timestamp:
- 11/08/06 14:07:32 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/openlayers/2.2/lib/OpenLayers/Layer/WMS/Untiled.js
r1740 r1785 126 126 //clear out the old tile 127 127 if (this.tile) { 128 OpenLayers.Util.clearArray(this.tile);128 this.tile.clear(); 129 129 } 130 130 … … 150 150 var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); 151 151 var pos = this.map.getLayerPxFromLonLat(ul); 152 153 if ( this.tile && !this.tile.size.equals(tileSize)) { 154 this.tile.destroy(); 155 this.tile = null; 156 } 152 157 153 158 if (!this.tile) { branches/openlayers/2.2/lib/OpenLayers/Map.js
r1740 r1785 787 787 var newPx = this.getViewPortPxFromLonLat(lonlat); 788 788 789 this.layerContainerDiv.style.left = (originPx.x - newPx.x) + "px"; 790 this.layerContainerDiv.style.top = (originPx.y - newPx.y) + "px"; 789 if ((originPx != null) && (newPx != null)) { 790 this.layerContainerDiv.style.left = (originPx.x - newPx.x) + "px"; 791 this.layerContainerDiv.style.top = (originPx.y - newPx.y) + "px"; 792 } 791 793 }, 792 794
