geojs 1.14.2 → 1.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geojs",
3
- "version": "1.14.2",
3
+ "version": "1.14.3",
4
4
  "description": "JavaScript Geo Visualization and Analysis Library",
5
5
  "homepage": "https://github.com/OpenGeoscience/geojs",
6
6
  "license": "Apache-2.0",
package/src/osmLayer.js CHANGED
@@ -79,7 +79,8 @@ var osmLayer = function (arg) {
79
79
  overlap: m_this._options.tileOverlap,
80
80
  scale: m_this._options.tileScale,
81
81
  url: m_this._options.url.call(
82
- m_this, urlParams.x, urlParams.y, Math.max(urlParams.level || 0, 0),
82
+ m_this, urlParams.x, urlParams.y,
83
+ Math.max(urlParams.level || 0, Math.min(0, m_this._options.minLevel || 0)),
83
84
  m_this._options.subdomains),
84
85
  crossDomain: m_this._options.crossDomain
85
86
  });
@@ -81,7 +81,8 @@ var pixelmapLayer = function (arg) {
81
81
  overlap: m_this._options.tileOverlap,
82
82
  scale: m_this._options.tileScale,
83
83
  url: m_this._options.url.call(
84
- m_this, urlParams.x, urlParams.y, Math.max(urlParams.level || 0, 0),
84
+ m_this, urlParams.x, urlParams.y,
85
+ Math.max(urlParams.level || 0, Math.min(0, m_this._options.minLevel || 0)),
85
86
  m_this._options.subdomains),
86
87
  crossDomain: m_this._options.crossDomain
87
88
  });
package/src/tileLayer.js CHANGED
@@ -601,7 +601,8 @@ var tileLayer = function (arg) {
601
601
  size: {x: m_this._options.tileWidth, y: m_this._options.tileHeight},
602
602
  queue: m_this._queue,
603
603
  url: m_this._options.url.call(
604
- m_this, urlParams.x, urlParams.y, Math.max(urlParams.level || 0, 0),
604
+ m_this, urlParams.x, urlParams.y,
605
+ Math.max(urlParams.level || 0, Math.min(0, m_this._options.minLevel || 0)),
605
606
  m_this._options.subdomains)
606
607
  });
607
608
  };