Add wrapX option to olx.source.OSMOptions

This commit is contained in:
Éric Lemoine
2015-01-16 17:12:00 +01:00
parent 4b3726fe71
commit d13a5dfb9f
2 changed files with 12 additions and 2 deletions

View File

@@ -4304,7 +4304,8 @@ olx.source.TileDebugOptions.prototype.tileGrid;
* crossOrigin: (null|string|undefined),
* maxZoom: (number|undefined),
* tileLoadFunction: (ol.TileLoadFunctionType|undefined),
* url: (string|undefined)}}
* url: (string|undefined),
* wrapX: (boolean|undefined)}}
* @api
*/
olx.source.OSMOptions;
@@ -4357,6 +4358,14 @@ olx.source.OSMOptions.prototype.tileLoadFunction;
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),
* doc: (Document|undefined),

View File

@@ -39,7 +39,8 @@ ol.source.OSM = function(opt_options) {
opaque: true,
maxZoom: goog.isDef(options.maxZoom) ? options.maxZoom : 19,
tileLoadFunction: options.tileLoadFunction,
url: url
url: url,
wrapX: options.wrapX
});
};