Pass state option to image source constructors
This commit is contained in:
@@ -635,6 +635,7 @@
|
|||||||
* on.
|
* on.
|
||||||
* @property {Array.<number>|undefined} resolutions Resolutions. If specified,
|
* @property {Array.<number>|undefined} resolutions Resolutions. If specified,
|
||||||
* new canvases will be created for these resolutions only.
|
* new canvases will be created for these resolutions only.
|
||||||
|
* @property {ol.source.State|undefined} state Source state.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,12 +13,14 @@ goog.require('ol.source.Image');
|
|||||||
* @param {olx.source.ImageCanvasOptions} options
|
* @param {olx.source.ImageCanvasOptions} options
|
||||||
*/
|
*/
|
||||||
ol.source.ImageCanvas = function(options) {
|
ol.source.ImageCanvas = function(options) {
|
||||||
|
|
||||||
goog.base(this, {
|
goog.base(this, {
|
||||||
attributions: options.attributions,
|
attributions: options.attributions,
|
||||||
extent: options.extent,
|
extent: options.extent,
|
||||||
logo: options.logo,
|
logo: options.logo,
|
||||||
projection: options.projection,
|
projection: options.projection,
|
||||||
resolutions: options.resolutions
|
resolutions: options.resolutions,
|
||||||
|
state: options.state
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ goog.require('ol.source.Source');
|
|||||||
* extent: (null|ol.Extent|undefined),
|
* extent: (null|ol.Extent|undefined),
|
||||||
* logo: (string|undefined),
|
* logo: (string|undefined),
|
||||||
* projection: ol.proj.ProjectionLike,
|
* projection: ol.proj.ProjectionLike,
|
||||||
* resolutions: (Array.<number>|undefined)}}
|
* resolutions: (Array.<number>|undefined),
|
||||||
|
* state: (ol.source.State|undefined)}}
|
||||||
*/
|
*/
|
||||||
ol.source.ImageOptions;
|
ol.source.ImageOptions;
|
||||||
|
|
||||||
@@ -32,7 +33,8 @@ ol.source.Image = 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