Merge pull request #6724 from fredj/wrapX_stamen
Add wrapX option to Stamen source
This commit is contained in:
+13
-2
@@ -5558,14 +5558,17 @@ olx.source.ImageWMSOptions.prototype.url;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{cacheSize: (number|undefined),
|
* @typedef {{
|
||||||
|
* cacheSize: (number|undefined),
|
||||||
* layer: string,
|
* layer: string,
|
||||||
* minZoom: (number|undefined),
|
* minZoom: (number|undefined),
|
||||||
* maxZoom: (number|undefined),
|
* maxZoom: (number|undefined),
|
||||||
* opaque: (boolean|undefined),
|
* opaque: (boolean|undefined),
|
||||||
* reprojectionErrorThreshold: (number|undefined),
|
* reprojectionErrorThreshold: (number|undefined),
|
||||||
* tileLoadFunction: (ol.TileLoadFunctionType|undefined),
|
* tileLoadFunction: (ol.TileLoadFunctionType|undefined),
|
||||||
* url: (string|undefined)}}
|
* url: (string|undefined),
|
||||||
|
* wrapX: (boolean|undefined)
|
||||||
|
* }}
|
||||||
*/
|
*/
|
||||||
olx.source.StamenOptions;
|
olx.source.StamenOptions;
|
||||||
|
|
||||||
@@ -5639,6 +5642,14 @@ olx.source.StamenOptions.prototype.tileLoadFunction;
|
|||||||
olx.source.StamenOptions.prototype.url;
|
olx.source.StamenOptions.prototype.url;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether to wrap the world horizontally. Default is `true`.
|
||||||
|
* @type {boolean|undefined}
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
olx.source.StamenOptions.prototype.wrapX;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{attributions: (ol.AttributionLike|undefined),
|
* @typedef {{attributions: (ol.AttributionLike|undefined),
|
||||||
* crossOrigin: (null|string|undefined),
|
* crossOrigin: (null|string|undefined),
|
||||||
|
|||||||
@@ -35,7 +35,8 @@ ol.source.Stamen = function(options) {
|
|||||||
opaque: layerConfig.opaque,
|
opaque: layerConfig.opaque,
|
||||||
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
||||||
tileLoadFunction: options.tileLoadFunction,
|
tileLoadFunction: options.tileLoadFunction,
|
||||||
url: url
|
url: url,
|
||||||
|
wrapX: options.wrapX
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
ol.inherits(ol.source.Stamen, ol.source.XYZ);
|
ol.inherits(ol.source.Stamen, ol.source.XYZ);
|
||||||
|
|||||||
Reference in New Issue
Block a user