- 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:
Arno Kaimbacher 2021-02-03 17:00:56 +01:00
parent cbe8a316eb
commit 25dbf20dee
7 changed files with 995 additions and 1117 deletions

View file

@ -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);