Skip to content

Commit

Permalink
🐛 Remove check layerId. Get all visible layers
Browse files Browse the repository at this point in the history
  • Loading branch information
volterra79 committed Jan 20, 2025
1 parent 316c48d commit 4ed269e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/layers/imagelayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class RasterLayer extends G3WObject {
return;
}

const layers = this.layers.filter(l => l.isVisible() && (params.layerId ? params.layerId === l.getId() : true ) ) || [];
const layers = this.layers.filter(l => l.isVisible()) || [];

// skip when ..
if (layers.length <= 0) {
Expand Down

0 comments on commit 4ed269e

Please sign in to comment.