Skip to content

Commit

Permalink
fix(InfoLayer): use new LayeredMaterial API
Browse files Browse the repository at this point in the history
  • Loading branch information
HoloTheDrunk committed Jan 27, 2025
1 parent afbf821 commit 46b6bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layer/InfoLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class InfoTiledGeometryLayer extends InfoLayer {
let layers = [];
this.displayed.tiles.forEach((tile) => {
const m = tile.material;
layers = [...new Set([...layers, ...m.colorLayerIds.filter(id => m.getLayer(id)), ...m.elevationLayerIds])];
layers = [...new Set([...layers, ...m.colorTileIds.filter(id => m.getColorTile(id)), m.elevationTileId])];
});

return this.layer.attachedLayers.filter(l => layers.includes(l.id));
Expand Down

0 comments on commit 46b6bf9

Please sign in to comment.