mod camera_fit;
mod ground;
mod map_events;
mod map_snapshot;
mod map_updates;
mod registered_projection;
mod style_loader;
mod style_members;
mod style_sources;
mod terrain_camera;
mod terrain_conversions;
mod terrain_gestures;
mod terrain_rest;
use std::sync::Arc;
use mln_style::time::Instant;
use crate::exec::pool::Pool;
use crate::map::{Map, MapOptions};
use crate::storage::FileSource;
fn pool() -> Pool {
Pool::new(4)
}
fn test_map(file_source: Arc<dyn FileSource>, options: MapOptions) -> Map {
let map = Map::with_file_source(file_source, options, crate::tests::registry(), &pool()).expect("map");
hold_clock(&map);
map
}
fn hold_clock(map: &Map) {
crate::tests::hold_clock(&map.frame_clock());
}
fn set_time(map: &mut Map, time: Instant) {
map.frame_clock().hold(Some(time));
map.sample_frame();
}