Add wrapX option to ol.source.XYZ
This commit is contained in:
@@ -994,6 +994,8 @@
|
|||||||
* @property {string|undefined} url URL template. Must include `{x}`, `{y}`,
|
* @property {string|undefined} url URL template. Must include `{x}`, `{y}`,
|
||||||
* and `{z}` placeholders.
|
* and `{z}` placeholders.
|
||||||
* @property {Array.<string>|undefined} urls An array of URL templates.
|
* @property {Array.<string>|undefined} urls An array of URL templates.
|
||||||
|
* @property {boolean|undefined} wrapX Whether to wrap the world horizontally.
|
||||||
|
* Default is `true`.
|
||||||
* @todo stability experimental
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,8 @@ ol.source.XYZ = function(options) {
|
|||||||
* @type {ol.TileCoordTransformType}
|
* @type {ol.TileCoordTransformType}
|
||||||
*/
|
*/
|
||||||
this.tileCoordTransform_ = tileGrid.createTileCoordTransform({
|
this.tileCoordTransform_ = tileGrid.createTileCoordTransform({
|
||||||
extent: options.extent
|
extent: options.extent,
|
||||||
|
wrapX: options.wrapX
|
||||||
});
|
});
|
||||||
|
|
||||||
if (goog.isDef(options.tileUrlFunction)) {
|
if (goog.isDef(options.tileUrlFunction)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user