leaflet 0.5.0

A wasm-bindgen wrapper for Leaflet.js
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::Control;
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
extern "C" {
    #[derive(Debug, Clone)]
    #[wasm_bindgen(js_namespace = ["L", "control"], js_name = Layers, extends = Control)]
    pub type LayerControl;

    #[wasm_bindgen(constructor)]
    pub fn new(base_layers: &JsValue) -> LayerControl;
}