-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(3DTiles): add style API + C3DTFeature
- Loading branch information
1 parent
f13a060
commit 864268a
Showing
11 changed files
with
541 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* C3DTFeature is a feature of a 3DTiles | ||
* | ||
* @class C3DTFeature | ||
* @param {number} tileId - tile id | ||
* @param {number} batchId - batch id | ||
* @param {Array<{start:number,count:number}>} groups - groups in geometry.attributes matching batchId | ||
* @param {object} info - info in the batchTable | ||
* @param {object} [userData={}] - some userData | ||
* @property {number} tileId - tile id | ||
* @property {number} batchId - batch id | ||
* @property {Array<{start:number,count:number}>} groups - groups in geometry.attributes matching batchId | ||
* @property {object} info - info in the batchTable | ||
* @property {object} [userData={}] - some userData | ||
*/ | ||
class C3DTFeature { | ||
#info; | ||
constructor(tileId, batchId, groups, info, userData = {}) { | ||
/** @type {number} */ | ||
this.tileId = tileId; | ||
|
||
/** @type {number} */ | ||
this.batchId = batchId; | ||
|
||
/** @type {Array<{start:number,count:number}>} */ | ||
this.groups = groups; | ||
|
||
/** @type {object} */ | ||
this.userData = userData; | ||
|
||
/** @type {object} */ | ||
this.#info = info; | ||
} | ||
|
||
/** | ||
* | ||
* @returns {object} - batchTable info | ||
*/ | ||
getInfo() { | ||
return this.#info; | ||
} | ||
} | ||
|
||
export default C3DTFeature; |
Oops, something went wrong.