Added 'state' constructor option to Tile and TileImage sources

This commit is contained in:
Petr Sloup
2014-08-13 17:11:29 +02:00
parent ff209d8759
commit 4b24eb6eb2
3 changed files with 5 additions and 1 deletions
+1
View File
@@ -2963,6 +2963,7 @@ olx.source.GPXOptions.prototype.urls;
* logo: (string|olx.LogoOptions|undefined), * logo: (string|olx.LogoOptions|undefined),
* opaque: (boolean|undefined), * opaque: (boolean|undefined),
* projection: ol.proj.ProjectionLike, * projection: ol.proj.ProjectionLike,
* state: (ol.source.State|string|undefined),
* tileClass: (function(new: ol.ImageTile, ol.TileCoord, * tileClass: (function(new: ol.ImageTile, ol.TileCoord,
* ol.TileState, string, ?string, * ol.TileState, string, ?string,
* ol.TileLoadFunctionType)|undefined), * ol.TileLoadFunctionType)|undefined),
+1
View File
@@ -29,6 +29,7 @@ ol.source.TileImage = function(options) {
logo: options.logo, logo: options.logo,
opaque: options.opaque, opaque: options.opaque,
projection: options.projection, projection: options.projection,
state: options.state,
tileGrid: options.tileGrid, tileGrid: options.tileGrid,
tilePixelRatio: options.tilePixelRatio tilePixelRatio: options.tilePixelRatio
}); });
+3 -1
View File
@@ -17,6 +17,7 @@ goog.require('ol.tilegrid.TileGrid');
* opaque: (boolean|undefined), * opaque: (boolean|undefined),
* tilePixelRatio: (number|undefined), * tilePixelRatio: (number|undefined),
* projection: ol.proj.ProjectionLike, * projection: ol.proj.ProjectionLike,
* state: (ol.source.State|string|undefined),
* tileGrid: (ol.tilegrid.TileGrid|undefined)}} * tileGrid: (ol.tilegrid.TileGrid|undefined)}}
*/ */
ol.source.TileOptions; ol.source.TileOptions;
@@ -39,7 +40,8 @@ ol.source.Tile = function(options) {
attributions: options.attributions, attributions: options.attributions,
extent: options.extent, extent: options.extent,
logo: options.logo, logo: options.logo,
projection: options.projection projection: options.projection,
state: options.state
}); });
/** /**