@deck.gl-community/geo-layers
This module contains a suite of non-official deck.gl layers.
They can be quite useful in applications, however they are not officially supported by the deck.gl team, so use at your own risk.
Wind layers
Status: work in progress. The package includes reusable layers and interpolation utilities from Nicolas Belmonte's historical deck.gl wind showcase:
WindLayerrenders interpolated, speed-colored wind-direction arrows.ParticleLayeranimates GPU-resident particles through the wind field using WebGL2 transform feedback or WebGPU compute, without per-frame particle readbacks.ElevationLayerrenders the original elevation image as illuminated 3D mountain terrain.DelaunayCoverLayerrenders elevation-colored station-triangulated terrain.DelaunayInterpolationsamples or rasterizes the same field.parseWindData,triangulateWindStations,createWindField,getWindBounds, andsampleWindFieldload and interpolate the original station-major, 72-hour weather forecast.
import {
createWindField,
parseWindData,
ParticleLayer,
WindLayer
} from '@deck.gl-community/geo-layers';
const windField = createWindField(stations, parseWindData(weather, stations.length));
const layers = [
new WindLayer({id: 'wind-arrows', windField, time}),
new ParticleLayer({id: 'wind-particles', windField, time, numParticles: 100_000})
];
WebGL2 and WebGPU particle simulation are independently browser-tested. Wind arrows, state boundaries, station-triangulated terrain, and the original image-derived mountain terrain are portable with stable deck.gl 9.4.
See the wind showcase guide and standalone example.