WeatherLayers
Search…
Tooltip Control
Tooltip control shows the value (and the direction for vector datasets) at current mouse position on hovering the raster layer

Example

Tooltip Control
1
import * as WeatherLayers from '@weatherlayers/weatherlayers-gl';
2
3
// configure WeatherLayers Cloud client
4
WeatherLayers.setClientConfig({
5
accessToken: 'xxx',
6
});
7
8
const tooltipControl = new WeatherLayers.TooltipControl({
9
dataset: ..., // string (STAC Collection ID)
10
deckgl: ..., // deck.gl instance
11
});
Copied!
Copy link
Contents
Example