fix: Guard accessing a quad feature.
MODIFY
src/canvas/tileLayer.js
src/canvas/tileLayer.js
@@ -69,7 +69,9 @@ var canvas_tileLayer = function () {
*/
this._update = function (request) {
s_update.call(m_this, request);
+ if (m_quadFeature && m_quadFeature.nearestPixel) {
m_quadFeature.nearestPixel(m_this.nearestPixel());
+ }
m_this._addBaseQuadToTiles(m_quadFeature, m_tiles);
return m_this;
};

MODIFY
src/webgl/pixelmapFeature.js
src/webgl/pixelmapFeature.js
@@ -184,8 +184,10 @@ var webgl_pixelmapFeature = function (arg) {
if (arg.quadFeature) {
m_quadFeature = arg.quadFeature;
+ if (m_quadFeature.nearestPixel) {
m_quadFeature.nearestPixel(true);
}
+ }
this._init(arg);
return this;
};

MODIFY
src/webgl/tileLayer.js
src/webgl/tileLayer.js
@@ -171,7 +171,9 @@ var webgl_tileLayer = function () {
*/
this._update = function (request) {
s_update.call(m_this, request);
+ if (m_quadFeature && m_quadFeature.nearestPixel) {
m_quadFeature.nearestPixel(m_this.nearestPixel());
+ }
m_this._addBaseQuadToTiles(m_quadFeature, m_tiles);
return m_this;
};

fix: Guard accessing a quad feature.