WeatherLayers
Search…
Data
Data properties are common for all layers in the cloud bundle.

Example

1
import { Deck } from '@deck.gl/core';
2
import * as WeatherLayers from '@weatherlayers/weatherlayers-gl';
3
4
// configure WeatherLayers Cloud client
5
WeatherLayers.setClientConfig({
6
accessToken: 'xxx',
7
});
8
9
const deckgl = new Deck({
10
layers: [
11
new WeatherLayers.XxxLayer({
12
// data properties
13
dataset: 'gfs/wind_10m_above_ground',
14
datetime: '2022-01-01T00:00:00Z',
15
}),
16
],
17
});
Copied!

Data properties

dataset

Type: string (STAC Collection ID), required
See WeatherLayers Browser for the list of available cloud data.

datetime

Type: string (ISO 8601 datetime), required
See WeatherLayers Browser for the list of available cloud data.

datetimeInterpolate

Type: boolean, optional
Default: true
If on and the cloud data are unavailable for datetime, the data are interpolated using the nearest available datetimes.

imageInterpolate

Type: boolean, optional
Default: true
If on, the data for a particular lng/lat location are computed from the four nearest available pixels using bilinear interpolation (GL.LINEAR).
If off, the data for a particular lng/lat location are read from the nearest available pixel (GL.NEAREST).
Last modified 2mo ago
Copy link