Skip to content

Commit

Permalink
fix(3DTiles) addEventListener onTileContentLoaded constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin authored and gchoqueux committed Jun 27, 2023
1 parent 619a611 commit 6f9a9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layer/C3DTilesLayer.js
Expand Up @@ -108,7 +108,7 @@ class C3DTilesLayer extends GeometryLayer {

if (config.onTileContentLoaded) {
console.warn('DEPRECATED onTileContentLoaded should not be passed at the contruction, use C3DTILES_LAYER_EVENTS.ON_TILE_CONTENT_LOADED event instead');
this.addEventListener(C3DTilesLayer.EVENT_TILE_CONTENT_LOADED, config.onTileContentLoaded);
this.addEventListener(C3DTILES_LAYER_EVENTS.ON_TILE_CONTENT_LOADED, config.onTileContentLoaded);
}

if (config.overrideMaterials) {
Expand Down

0 comments on commit 6f9a9d2

Please sign in to comment.