maplibre-rs/examples/desktop.rs
Maximilian Ammann 14cf5f31d5 Add MapBuilder
2022-03-13 14:54:55 +01:00

13 lines
390 B
Rust

use mapr::{MapBuilder, ScheduleMethod, TokioScheduleMethod};
fn main() {
env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));
MapBuilder::from_window("A fantastic window!")
.with_schedule_method(ScheduleMethod::Tokio(TokioScheduleMethod::new(Some(
"/tmp/mapr_cache".to_string(),
))))
.build()
.run_sync();
}