22 lines
466 B
JavaScript
22 lines
466 B
JavaScript
import GeoTIFF from '../../../../src/ol/source/GeoTIFF.js';
|
|
import Map from '../../../../src/ol/Map.js';
|
|
import TileLayer from '../../../../src/ol/layer/WebGLTile.js';
|
|
|
|
const source = new GeoTIFF({
|
|
sources: [{url: '/data/raster/elevation-i16.tif'}],
|
|
});
|
|
|
|
new Map({
|
|
layers: [
|
|
new TileLayer({
|
|
source: source,
|
|
}),
|
|
],
|
|
target: 'map',
|
|
view: source.getView(),
|
|
});
|
|
|
|
render({
|
|
message: 'normalize i16 data with -9999 nodata based on GDAL stats',
|
|
});
|