@unep-grid/mapx-style
v0.8.9
Published
MapX style engine: HCP S3 auth, PMTiles protocol, DEM/terrain, themes, and MapLibre layer resolvers
Downloads
262
Readme
@unep-grid/mapx-style
MapX style engine distributed through the public npm registry.
Install
npm install @unep-grid/mapx-styleUsage
import { MapxStyle } from "@unep-grid/mapx-style";Standalone browser test
For a no-build HTML page, load the published bundle from npm through a CDN:
<script type="module">
import { MapxStyle } from "https://cdn.jsdelivr.net/npm/@unep-grid/mapx-style@latest/dist/mapx-style.esm.js";
</script>The UMD bundle is also published:
<script src="https://cdn.jsdelivr.net/npm/@unep-grid/mapx-style@latest/dist/mapx-style.umd.js"></script>Load MapLibre GL JS separately and pass it to MapxStyle when creating an
interactive map. Pin a concrete package version instead of latest when you
need reproducible test pages.
