Added 'state' constructor option to Tile and TileImage sources
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
@@ -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
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user