- add TIN layer via metadata request in Map class
- label in GridLayer are always scaled - correct label positioning - npm updates
This commit is contained in:
parent
cbe8a316eb
commit
25dbf20dee
7 changed files with 995 additions and 1117 deletions
|
@ -60,7 +60,7 @@ class TinLayer extends Layer {
|
|||
|
||||
let geometry = new BufferGeometry();
|
||||
// let positions = new Float32BufferAttribute(this.vertices, 3);
|
||||
let posArray = await (this.points(this.geomId));
|
||||
let posArray = await (this.points(this.featuregeom_id));
|
||||
// console.log(posArray);
|
||||
let positions = new Float32BufferAttribute(posArray, 3);
|
||||
geometry.setAttribute('position', positions);
|
||||
|
@ -69,7 +69,7 @@ class TinLayer extends Layer {
|
|||
//var indices = this.indices = new TypeArray(this.idx);
|
||||
|
||||
// let indexArray = this.indices = new Uint16Array(this.idx);
|
||||
let indexArray = await (this.edges(this.geomId));
|
||||
let indexArray = await (this.edges(this.featuregeom_id));
|
||||
let indices = new Uint16BufferAttribute(indexArray, 1);//.setDynamic(true);
|
||||
geometry.setIndex(indices);
|
||||
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue