Set default ol.source.OSM maxZoom to 19
This commit is contained in:
@@ -3905,7 +3905,7 @@ olx.source.OSMOptions.prototype.crossOrigin;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Max zoom.
|
* Max zoom. Default is `19`.
|
||||||
* @type {number|undefined}
|
* @type {number|undefined}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ ol.source.OSM = function(opt_options) {
|
|||||||
attributions: attributions,
|
attributions: attributions,
|
||||||
crossOrigin: crossOrigin,
|
crossOrigin: crossOrigin,
|
||||||
opaque: true,
|
opaque: true,
|
||||||
maxZoom: options.maxZoom,
|
maxZoom: goog.isDef(options.maxZoom) ? options.maxZoom : 19,
|
||||||
tileLoadFunction: options.tileLoadFunction,
|
tileLoadFunction: options.tileLoadFunction,
|
||||||
url: url
|
url: url
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user