1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
mod viewer; pub fn main() { widgetry::run( widgetry::Settings::new("OpenStreetMap viewer").read_svg(Box::new(abstio::slurp_bytes)), |ctx| { map_gui::SimpleApp::new(ctx, map_gui::options::Options::default(), (), |ctx, app| { vec![viewer::Viewer::new(ctx, app)] }) }, ); } #[cfg(target_arch = "wasm32")] use wasm_bindgen::prelude::*; #[cfg(target_arch = "wasm32")] #[wasm_bindgen(start)] pub fn run() { main(); }