Weather Plus pressure isolines layer
Visualize the weather pressure isolines layer from MapTiler Weather Plus Pressure dataset. Gain insights into the atmospheric pressure patterns and visualize them in a visually captivating manner.
NPM module setup
npm install --save @maptiler/sdk @maptiler/weather-plus
import { Map, MapStyle, config } from '@maptiler/sdk';
import '@maptiler/sdk/dist/maptiler-sdk.css';
import { PressureIsolineLayer } from '@maptiler/weather-plus';
config.apiKey = 'YOUR_MAPTILER_API_KEY_HERE';
const map = (window.map = new Map({
container: 'map', // container's id or the HTML element to render the map
style: MapStyle.BACKDROP, // stylesheet location
projectionControl: true,
projection: 'globe',
zoom: 2,
center: [-2.2, 37.8],
}));
const weatherLayer = new PressureIsolineLayer();
map.on('load', function () {
map.setPaintProperty("Water", 'fill-color', "rgba(0, 0, 0, 0.4)");
map.addLayer(weatherLayer, 'Water');
});
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="robots" content="noindex">
<title>Display a pressure isolines layer</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div id="map"></div>
<script type="module" src="./main.js"></script>
</body>
</html>
body { margin: 0; padding: 0; font-family: sans-serif; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; background-color: #444952;}
Learn more
Look at the Weather Plus pressure isolines layer labels example
Look at the Weather Plus pressure isolines layer animated example
Check out the Weather JS module reference
Check out the Pressure Isolines layer reference
Related examples
Weather custom popup
ExamplesCreate highly customizable popups for weather maps using MarkerLayout.
Weather+ pressure isolines layer animated
ExamplesAnimate atmospheric pressure isolines and view precise cursor data.
Weather+ pressure isolines layer labels
ExamplesDisplay high and low atmospheric pressure extreme value labels.