Merge pull request #2631 from fredj/osm-maxzoom

Set default ol.source.OSM maxZoom to 19
This commit is contained in:
Frédéric Junod
2014-08-26 15:19:52 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -3905,7 +3905,7 @@ olx.source.OSMOptions.prototype.crossOrigin;
/**
* Max zoom.
* Max zoom. Default is `19`.
* @type {number|undefined}
* @api
*/

View File

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