leaflet-rs
leaflet-rs copied to clipboard
A wasm-bindgen wrapper for Leaflet.js
Hi, great work. I tried running the basic example and the browser console (firefox) shows this issue: > Loading failed for the module with source “http://127.0.0.1:8080/pkg/leaflet_rs_example.js”. 127.0.0.1:8080:23:27 > Loading module...
Hi, I'm seeking assistance with using Leaflet in the Dioxus framework. Below is my component. The map container is visible, but the tile layer and marker are not. Do you...
This may not specifically be an issue with leaflet-rs and more of a wasm_bindgen question but looking for suggestions how to approach this. Thanks in advanced. Example of the JS...
- https://leafletjs.com/reference.html#control-layers usage ```rust let opt = &leaflet::TileLayerOptions::new(); opt.set_attribution(r#"© OpenStreetMap"#.to_string()); let osm = TileLayer::new_options("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", opt); gsi.add_to(&map); let opt = js_sys::Object::new(); js_sys::Reflect::set(&opt, &JsValue::from("OpenStreetMap"), &JsValue::from(osm)).unwrap(); let control = leaflet::LayersControl::new(&opt); control.add_to(&map); ```
Just starting a new project and want to use leaflet in Dioxus. The basic and yew examples run fine. The dioxus example builds and serves but get a blank browser...
In JavaScript we would do ```javascript marker.option.title = 'foo'; ```
Hey The library icondata has become a fairly standard component for Icons in several frameworks. Its therefore often an autoinclude in many projects. Would it be possible to create a...
edited example instructions to install http as [reccomended](https://github.com/thecoshman/http?tab=readme-ov-file#installation)
Hi, An error appears if you run the example [instructions](https://github.com/slowtec/leaflet-rs/tree/master/examples/basic)`cargo install wasm-pack https`. `With http 2.0.0, http is no longer publishable on crates.io`. The instructions could be edited to reflect...