Ticket #1552: gridfix.patch
| File gridfix.patch, 0.9 kB (added by kleptog, 8 months ago) |
|---|
-
Layer/Grid.js
old new 353 353 var minCols = Math.ceil(viewSize.w/this.tileSize.w) + 354 354 Math.max(1, 2 * this.buffer); 355 355 356 var extent = this.ma p.getMaxExtent();356 var extent = this.maxExtent; 357 357 var resolution = this.map.getResolution(); 358 358 359 359 var tileLayout = this.calculateGridLayout(bounds, extent, resolution); … … 719 719 * {<OpenLayers.Bounds>} Bounds of the tile at the given pixel location. 720 720 */ 721 721 getTileBounds: function(viewPortPx) { 722 var maxExtent = this.ma p.getMaxExtent();722 var maxExtent = this.maxExtent; 723 723 var resolution = this.getResolution(); 724 724 var tileMapWidth = resolution * this.tileSize.w; 725 725 var tileMapHeight = resolution * this.tileSize.h;
