Ticket #1018: drawn.patch
| File drawn.patch, 2.1 kB (added by euzuro, 1 year ago) |
|---|
-
lib/OpenLayers/Tile/Image.js
old new 123 123 OpenLayers.Util.modifyDOMElement(this.imgDiv, 124 124 null, null, imageSize) ; 125 125 } 126 this.drawn = true;127 126 return true; 128 127 }, 129 128 -
lib/OpenLayers/Tile.js
old new 72 72 */ 73 73 position: null, 74 74 75 /**76 * Property: drawn77 * {Boolean} false78 */79 drawn: false,80 81 75 /** 82 76 * Property: isLoading 83 77 * {Boolean} Is the tile loading? … … 146 140 147 141 var mapExtent = this.layer.map.getExtent(); 148 142 var withinMapExtent = (mapExtent && 149 this.bounds.intersectsBounds(mapExtent, false));143 this.bounds.intersectsBounds(mapExtent, true)); 150 144 151 145 // There are two cases where we *wouldn't* want to draw the tile: 152 146 // … … 175 169 redraw = true; 176 170 } 177 171 178 this.drawn = false;179 172 this.bounds = bounds.clone(); 180 173 this.position = position.clone(); 181 174 if (redraw) { -
lib/OpenLayers/Layer/Grid.js
old new 548 548 break; 549 549 } 550 550 }; 551 if (this.buffer == 0) {552 for (var r=0, rl=this.grid.length; r<rl; r++) {553 var row = this.grid[r];554 for (var c=0, cl=row.length; c<cl; c++) {555 var tile = row[c];556 if (!tile.drawn &&557 tile.bounds.intersectsBounds(bounds, false)) {558 tile.draw();559 }560 }561 }562 }563 551 }, 564 552 565 553 /**
