terrain-deck.gl
v0.0.4
Published
terrain
Readme
const ELEVATION_DECODER = { rScaler: 65.536, gScaler: 0.256, bScaler: 0.001, offset: -6000, filterAlt:filterAlt };
let boundData = turf.coordAll(boundJson);//boundJson.features[0]?.geometry?.coordinates[0];
const layer = new TerrainLayer({ id: 'terrain', minZoom: 0, maxZoom: 18, strategy: 'no-overlap', elevationDecoder: ELEVATION_DECODER, elevationData: this.state.DSM_IMAGE, texture: this.state.DOM_IMAGE, meshMaxError: 0.1, zRange: [0, 450], polygonRange:boundData, tileSize: 256, loadOptions: { terrain: { workerUrl: './terrain-worker.js' } }, color: [255, 255, 255] });
