geojs 1.10.3 → 1.10.4

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.10.3",
3
+ "version": "1.10.4",
4
4
  "description": "JavaScript Geo Visualization and Analysis Library",
5
5
  "homepage": "https://github.com/OpenGeoscience/geojs",
6
6
  "license": "Apache-2.0",
@@ -69,7 +69,9 @@ var canvas_tileLayer = function () {
69
69
  */
70
70
  this._update = function (request) {
71
71
  s_update.call(m_this, request);
72
- m_quadFeature.nearestPixel(m_this.nearestPixel());
72
+ if (m_quadFeature && m_quadFeature.nearestPixel) {
73
+ m_quadFeature.nearestPixel(m_this.nearestPixel());
74
+ }
73
75
  m_this._addBaseQuadToTiles(m_quadFeature, m_tiles);
74
76
  return m_this;
75
77
  };
@@ -184,7 +184,9 @@ var webgl_pixelmapFeature = function (arg) {
184
184
 
185
185
  if (arg.quadFeature) {
186
186
  m_quadFeature = arg.quadFeature;
187
- m_quadFeature.nearestPixel(true);
187
+ if (m_quadFeature.nearestPixel) {
188
+ m_quadFeature.nearestPixel(true);
189
+ }
188
190
  }
189
191
  this._init(arg);
190
192
  return this;
@@ -171,7 +171,9 @@ var webgl_tileLayer = function () {
171
171
  */
172
172
  this._update = function (request) {
173
173
  s_update.call(m_this, request);
174
- m_quadFeature.nearestPixel(m_this.nearestPixel());
174
+ if (m_quadFeature && m_quadFeature.nearestPixel) {
175
+ m_quadFeature.nearestPixel(m_this.nearestPixel());
176
+ }
175
177
  m_this._addBaseQuadToTiles(m_quadFeature, m_tiles);
176
178
  return m_this;
177
179
  };