Skip to content

Commit

Permalink
fix trips layer timestamps attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Dec 12, 2019
1 parent 6d7f5fd commit 8b48fd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/geo-layers/src/trips-layer/trips-layer.js
Expand Up @@ -109,9 +109,9 @@ if(vTime > currentTime || vTime < currentTime - trailLength) {
}

const {
pathTesselator: {bufferLayout, instanceCount}
pathTesselator: {bufferLayout}
} = this.state;
const value = new Float32Array(instanceCount * 2);
const {value} = attribute;

const {iterable, objectInfo} = createIterable(data, startRow, endRow);
let i = 0;
Expand All @@ -131,8 +131,8 @@ if(vTime > currentTime || vTime < currentTime - trailLength) {
value[i++] = timestamps[j + 1];
}
}
attribute.bufferLayout = bufferLayout;
attribute.constant = false;
attribute.value = value;
}
}

Expand Down

0 comments on commit 8b48fd8

Please sign in to comment.