1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#[macro_use] extern crate log; mod find_home; mod isochrone; mod viewer; type App = map_gui::SimpleApp<()>; pub fn main() { widgetry::run(widgetry::Settings::new("15-minute neighborhoods"), |ctx| { let app = map_gui::SimpleApp::new(ctx, abstutil::CmdArgs::new(), ()); let states = vec![viewer::Viewer::random_start(ctx, &app)]; (app, states) }); } #[cfg(target_arch = "wasm32")] use wasm_bindgen::prelude::*; #[cfg(target_arch = "wasm32")] #[wasm_bindgen(start)] pub fn run() { main(); }