An open API service indexing awesome lists of open source software.

https://github.com/slowtec/leaflet-rs

A wasm-bindgen wrapper for Leaflet.js
https://github.com/slowtec/leaflet-rs

leaflet wasm

Last synced: about 2 months ago
JSON representation

A wasm-bindgen wrapper for Leaflet.js

Awesome Lists containing this project

README

          

# leaflet-rs

A [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen)
wrapper for
[Leaflet.js](https://leafletjs.com/)

[![Crates.io](https://img.shields.io/crates/v/leaflet.svg)](https://crates.io/crates/leaflet)
[![Docs.rs](https://docs.rs/leaflet/badge.svg)](https://docs.rs/leaflet/)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE-MIT)
[![Apache 2.0 licensed](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](./LICENSE-APACHE)

## Usage

```toml
[dependencies]
leaflet = "0.5"
```

## Example

See:

- Basic example: [`examples/basic`](https://github.com/slowtec/leaflet-rs/tree/master/examples/basic)
- SVG and Canvas renderers: [`examples/renderers`](https://github.com/slowtec/leaflet-rs/tree/master/examples/renderers)
- Usage in yew component: [`examples/yew-component`](https://github.com/slowtec/leaflet-rs/tree/master/examples/yew-component)
- Usage with Dioxus: [`examples/leaflet-dioxus-example`](https://github.com/slowtec/leaflet-rs/tree/master/examples/leaflet-dioxus-example)
- Usage with leptos: [headless-studio/leptos-leaflet](https://github.com/headless-studio/leptos-leaflet)

## License

Copyright (c) 2020 - 2025 [slowtec GmbH](https://slowtec.de)