1use wasm_bindgen::prelude::*;
2
3use crate::Layer;
4
5#[wasm_bindgen]
6extern "C" {
7 #[derive(Clone, Debug)]
9 #[wasm_bindgen(extends = Layer, js_name = "geoJSON")]
10 pub type GeoJson;
11
12 #[wasm_bindgen(js_namespace = L, js_name = "geoJSON")]
14 pub fn geo_json(geojson: &JsValue, options: &JsValue) -> GeoJson;
15
16 #[wasm_bindgen(method, js_name = "addData")]
18 pub fn add_data(this: &GeoJson, data: &JsValue);
19
20 #[wasm_bindgen(method, js_name = "resetStyle")]
22 pub fn reset_style(this: &GeoJson, layer: Option<&Layer>);
23
24 #[wasm_bindgen(method, js_name = "setStyle")]
26 pub fn set_style(this: &GeoJson, style: &JsValue);
27}