Skip to content

Commit 22e2dd5

Browse files
authored
fix TileLayer/VT render blank when has mask in GroupGLLayer (#2640)
1 parent 8bb3d90 commit 22e2dd5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/maptalks/src/renderer/layer/tilelayer/TileLayerRendererable.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ const TileLayerRenderable = function <T extends MixinConstructor>(Base: T) {
137137
}
138138
const mask2DExtent = this.prepareCanvas();
139139
if (mask2DExtent) {
140-
if (!mask2DExtent.intersects(this.canvasExtent2D)) {
140+
const layer = this.layer || {};
141+
const layerParent = layer.parent || {};
142+
if (layerParent.isMap && !mask2DExtent.intersects(this.canvasExtent2D)) {
141143
this.completeRender();
142144
return;
143145
}

0 commit comments

Comments
 (0)