Changeset 7401
- Timestamp:
- 06/20/08 18:04:03 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/edgemaster/openlayers/lib/OpenLayers/Layer/OpenSpace.js
r6888 r7401 9 9 */ 10 10 OpenLayers.Layer.OpenSpace = OpenLayers.Class(OpenLayers.Layer.WMS, { 11 12 /** 13 * Property: url 14 * {String} URL of OS tileserver API. 15 */ 16 url: "http://openspace.ordnancesurvey.co.uk/osmapapi/ts", 17 11 18 /** 12 19 * Constructor: OpenLayers.Layer.OpenSpace … … 26 33 }, options); 27 34 28 params = {35 var params = { 29 36 "KEY": apikey 30 37 } 31 38 32 url = "http://openspace.ordnancesurvey.co.uk/osmapapi/ts"; 33 var newArguments = [name, url, params, options]; 39 var newArguments = [name, this.url, params, options]; 34 40 OpenLayers.Layer.WMS.prototype.initialize.apply(this, newArguments); 35 41 }, … … 61 67 */ 62 68 initGriddedTiles: function(bounds) { 69 var tileSize; 63 70 // The OS make it difficult for us, the highest resolution tiles are 64 71 // served as 250x250px images, rather than the 200x200px as the rest. 65 72 // OpenLayers.Layer.Grid calls this function if the zoom level changes 66 73 67 res = this.map.getResolution();74 var res = this.map.getResolution(); 68 75 if(res > 2) { 69 76 tileSize = new OpenLayers.Size(200,200);
