Skip to content

Commit

Permalink
Layer disable geometryEvents not hitDetect (#2063)
Browse files Browse the repository at this point in the history
  • Loading branch information
deyihu authored Aug 29, 2023
1 parent 821bc32 commit 9db0e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/map/MapCanvasRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ class MapCanvasRenderer extends MapRenderer {
for (let i = layers.length - 1; i >= 0; i--) {
const layer = layers[i];
// 此处如果未开启,无需执行后面判断
if (!layer.options['hitDetect'] || (layer.isEmpty && layer.isEmpty())) {
if (!layer.options['hitDetect'] || (layer.isEmpty && layer.isEmpty()) || !layer.options['geometryEvents']) {
continue;
}
const renderer = layer._getRenderer();
Expand Down

0 comments on commit 9db0e54

Please sign in to comment.