Changeset 3768
- Timestamp:
- 07/16/07 18:08:28 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Layer/Image.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer/MapServer.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer/MapServer/Untiled.js (modified) (2 diffs)
- trunk/openlayers/lib/OpenLayers/Layer/TMS.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer/WMS.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer/WorldWind.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Tile/Image.js (modified) (3 diffs)
- trunk/openlayers/tests/Layer/test_MapServer.html (modified) (2 diffs)
- trunk/openlayers/tests/Layer/test_WMS.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Layer/Image.js
r3767 r3768 160 160 //create the new tile 161 161 this.tile = new OpenLayers.Tile.Image(this, ulPx, this.extent, 162 this.url, this.tileSize);162 null, this.tileSize); 163 163 } else { 164 164 //just resize the tile and set it's new position trunk/openlayers/lib/OpenLayers/Layer/MapServer.js
r3767 r3768 89 89 */ 90 90 addTile:function(bounds,position) { 91 var url = this.getURL(bounds);92 return new OpenLayers.Tile.Image(this, position, bounds, url, this.tileSize);91 return new OpenLayers.Tile.Image(this, position, bounds, 92 null, this.tileSize); 93 93 }, 94 94 trunk/openlayers/lib/OpenLayers/Layer/MapServer/Untiled.js
r3767 r3768 182 182 this.setTileSize(); 183 183 184 //formulate request url string185 var url = this.getURL(tileBounds);186 187 184 //determine new position (upper left corner of new bounds) 188 185 var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); … … 198 195 if (!this.tile) { 199 196 this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, 200 url, this.tileSize);197 null, this.tileSize); 201 198 this.tile.draw(); 202 199 var onload = function() { trunk/openlayers/lib/OpenLayers/Layer/TMS.js
r3767 r3768 117 117 */ 118 118 addTile:function(bounds,position) { 119 var url = this.getURL(bounds);120 119 return new OpenLayers.Tile.Image(this, position, bounds, 121 url, this.tileSize);120 null, this.tileSize); 122 121 }, 123 122 trunk/openlayers/lib/OpenLayers/Layer/WMS.js
r3767 r3768 163 163 */ 164 164 addTile:function(bounds,position) { 165 var url = this.getURL(bounds);166 165 return new OpenLayers.Tile.Image(this, position, bounds, 167 url, this.tileSize);166 null, this.tileSize); 168 167 }, 169 168 trunk/openlayers/lib/OpenLayers/Layer/WorldWind.js
r3767 r3768 65 65 */ 66 66 addTile:function(bounds,position) { 67 if (this.map.getResolution() <= (this.lzd/512) 68 && this.getZoom() <= this.zoomLevels) { 69 var url = this.getURL(bounds); 70 return new OpenLayers.Tile.Image(this, position, bounds, 71 url, this.tileSize); 72 } else { 73 return new OpenLayers.Tile.Image(this, position, bounds, 74 OpenLayers.Util.getImagesLocation() + "blank.gif", 75 this.tileSize); 76 } 67 return new OpenLayers.Tile.Image(this, position, bounds, 68 null, this.tileSize); 77 69 }, 78 70 trunk/openlayers/lib/OpenLayers/Tile/Image.js
r3767 r3768 37 37 frame: null, 38 38 39 /** TBD 3.0 - reorder the parameters to the init function to put URL40 * as last, so we can continue to call tile.initialize()41 * without changing the arguments.39 /** TBD 3.0 - reorder the parameters to the init function to remove 40 * URL. the getUrl() function on the layer gets called on 41 * each draw() and moveTo(), so no need to specify it here. 42 42 * 43 43 * Constructor: OpenLayers.Tile.Image … … 48 48 * position - {<OpenLayers.Pixel>} 49 49 * bounds - {<OpenLayers.Bounds>} 50 * url - {<String>} 50 * url - {<String>} Deprecated. Remove me in 3.0. 51 51 * size - {<OpenLayers.Size>} 52 52 */ … … 54 54 OpenLayers.Tile.prototype.initialize.apply(this, arguments); 55 55 56 this.url = url; 57 56 this.url = url; //deprecated remove me 57 58 58 this.frame = document.createElement('div'); 59 59 this.frame.style.overflow = 'hidden'; trunk/openlayers/tests/Layer/test_MapServer.html
r2979 r3768 125 125 126 126 function test_06_Layer_MapServer_mergeNewParams (t) { 127 t.plan( 5);127 t.plan( 4 ); 128 128 129 129 var map = new OpenLayers.Map("map"); … … 136 136 map.addLayer(layer); 137 137 map.zoomToMaxExtent(); 138 t.ok( !layer.grid[0][0].url.match("chickpeas"), "chickpeas is not in URL of first tile in grid" ); 139 138 140 139 layer.mergeNewParams(newParams); 141 140 trunk/openlayers/tests/Layer/test_WMS.html
r3554 r3768 149 149 150 150 function test_06_Layer_WMS_mergeNewParams (t) { 151 t.plan( 5);151 t.plan( 4 ); 152 152 153 153 var map = new OpenLayers.Map("map"); … … 160 160 map.addLayer(layer); 161 161 map.zoomToMaxExtent(); 162 t.ok( !layer.grid[0][0].url.match("CHICKPEAS"), "CHICKPEAS is not in URL of first tile in grid" );163 162 164 163 layer.mergeNewParams(newParams);
