Skip to content

About

Web MapLibre GL JS for Leptos in Rust

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

leptos_maplibre

MapLibre GL JS bindings for Leptos in Rust/WASM.

Goals

  • 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

  • examples/leptos-csr: CSR demo showing current intended usage with MapView, MapEvents, Marker, and Popup.

Run the example:

  • cargo check --manifest-path examples/leptos-csr/Cargo.toml --target wasm32-unknown-unknown
  • cd examples/leptos-csr
  • trunk serve

JS bridge source

The wasm bridge consumes crates/leptos_maplibre/bindings/js/src/map.js.

Contributing

See CONTRIBUTING.md.

License

MIT OR Apache-2.0. See LICENSE-MIT and LICENSE-APACHE.

About

Web MapLibre GL JS for Leptos in Rust

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages