Skip to content

Commit 3d89169

Browse files
committed
feat(3dtiles): add tiles-load-start and tiles-load-end events
1 parent 25467e5 commit 3d89169

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Layer/OGC3DTilesLayer.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ export const OGC3DTILES_LAYER_EVENTS = {
6969
* @property {boolean} visible - the tile visible state
7070
*/
7171
TILE_VISIBILITY_CHANGE: 'tile-visibility-change',
72+
/**
73+
* Fired when a new batch of tiles start loading (can be fired multiple times, e.g. when the camera moves and new tiles
74+
* start loading)
75+
* @event OGC3DTilesLayer#tiles-load-start
76+
*/
77+
TILES_LOAD_START: 'tiles-load-start',
78+
/**
79+
* Fired when all visible tiles are loaded (can be fired multiple times, e.g. when the camera moves and new tiles
80+
* are loaded)
81+
* @event OGC3DTilesLayer#tiles-load-end
82+
*/
83+
TILES_LOAD_END: 'tiles-load-end',
7284
};
7385

7486
/**

0 commit comments

Comments
 (0)