Documentation

Installation

Add the platform package and MapLibre. Peer expectation: React 18 or 19, maplibre-gl ≥ 6.4.1 (this package targets ^6.9.0).

Install

npm install @infoplaza/platform maplibre-gl

Import styles once

Import MapLibre CSS and the platform stylesheet in your app entry. Hosts that already run Tailwind should use the embed build so preflight does not reset their site.

import 'maplibre-gl/dist/maplibre-gl.css'
import '@infoplaza/platform/styles.css'
// or, in a Tailwind / existing-global-styles host:
import '@infoplaza/platform/styles.embed.css'
Weather models are fetched internally by Providers / WeatherLayers. Create an API token on the Infoplaza developer platform and mount the platform auth route on your server — see Server setup. Maps also need MapLibre 6 worker wiring before the first map mounts.

Optional geotiff

geotiff is an optional dependency used only for GeoTIFF tile decoding. If you do not install it, GeoTIFF decoding throws a descriptive error; everything else still works. The decoder is loaded lazily via import('geotiff') so the host bundler applies its own browser resolution.