Weather Map Layer for MapLibre/Mapbox GL JS powered by Open-Meteo OMfiles
https://maps.open-meteo.com ↗// readme
Open-Meteo Weather Map Layer
⚠️ Notice This package is still under construction and is not yet fully production-ready. API changes may occur and some features might be incomplete.
Overview
This repository serves as a demonstration of the Open-Meteo File Protocol (om://) with Mapbox / MapLibre GL JS. The om:// scheme is a custom MapLibre protocol registered via addProtocol. The .om files are hosted on an S3 bucket and can be accessed directly through the protocol handler.
The core weather data generation and API is hosted in the open-meteo/open-meteo repository.
An interactive demo is available at maps.open-meteo.com.
Installation
Node
npm install @openmeteo/weather-map-layer
// ...
import { omProtocol } from '@openmeteo/weather-map-layer';
// Standard MapLibre GL JS setup
// ...
maplibregl.addProtocol('om', omProtocol);
const omUrl = `https://openmeteo.s3.amazonaws.com/data_spatial/dwd_icon/latest.json?variable=temperature_2m`;
map.on('load', () => {…