MapLibre GL JS bindings for Leptos in Rust/WASM.
- Render and control a MapLibre map in Leptos apps.
- Provide an ergonomic Rust API for style, camera, sources, layers, and feature state.
- Keep core non-opinionated and leave control UI to application code.
- Initialize on client mount only for SSR and hydration safety.
examples/leptos-csr: CSR demo showing current intended usage withMapView,MapEvents,Marker, andPopup.
Run the example:
cargo check --manifest-path examples/leptos-csr/Cargo.toml --target wasm32-unknown-unknowncd examples/leptos-csrtrunk serve
The wasm bridge consumes crates/leptos_maplibre/bindings/js/src/map.js.
See CONTRIBUTING.md.
MIT OR Apache-2.0. See LICENSE-MIT and LICENSE-APACHE.