Add wrapX option to olx.source.OSMOptions
This commit is contained in:
@@ -4304,7 +4304,8 @@ olx.source.TileDebugOptions.prototype.tileGrid;
|
|||||||
* crossOrigin: (null|string|undefined),
|
* crossOrigin: (null|string|undefined),
|
||||||
* maxZoom: (number|undefined),
|
* maxZoom: (number|undefined),
|
||||||
* tileLoadFunction: (ol.TileLoadFunctionType|undefined),
|
* tileLoadFunction: (ol.TileLoadFunctionType|undefined),
|
||||||
* url: (string|undefined)}}
|
* url: (string|undefined),
|
||||||
|
* wrapX: (boolean|undefined)}}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
olx.source.OSMOptions;
|
olx.source.OSMOptions;
|
||||||
@@ -4357,6 +4358,14 @@ olx.source.OSMOptions.prototype.tileLoadFunction;
|
|||||||
olx.source.OSMOptions.prototype.url;
|
olx.source.OSMOptions.prototype.url;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether to wrap the world horizontally. Default is `true`.
|
||||||
|
* @type {boolean|undefined}
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
olx.source.OSMOptions.prototype.wrapX;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{attributions: (Array.<ol.Attribution>|undefined),
|
* @typedef {{attributions: (Array.<ol.Attribution>|undefined),
|
||||||
* doc: (Document|undefined),
|
* doc: (Document|undefined),
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ ol.source.OSM = function(opt_options) {
|
|||||||
opaque: true,
|
opaque: true,
|
||||||
maxZoom: goog.isDef(options.maxZoom) ? options.maxZoom : 19,
|
maxZoom: goog.isDef(options.maxZoom) ? options.maxZoom : 19,
|
||||||
tileLoadFunction: options.tileLoadFunction,
|
tileLoadFunction: options.tileLoadFunction,
|
||||||
url: url
|
url: url,
|
||||||
|
wrapX: options.wrapX
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user