Skip to main content

mln_map/
lib.rs

1//! The map: [`Map`], its options, the transform that moves its camera, and
2//! the events it reports. The map vocabulary that lower crates need
3//! (`CameraOptions`, `MapMode`, `TransformState`, ...) lives in
4//! `mln_map_types` and is re-exported here.
5
6mod feature_state;
7mod map;
8mod map_event;
9mod map_options;
10mod map_snapshot;
11// gtests-core: MapProjection (test/map/map.test.cpp).
12mod map_projection;
13mod rendering_stats_view;
14mod style_loader;
15pub mod transform;
16
17pub use map::Map;
18pub use map_event::{CameraChange, CameraChangeMode, CameraChangeSource, MapEvent, RenderFrameStatus};
19pub use map_options::MapOptions;
20pub use map_projection::MapProjection;
21pub use map_snapshot::{CameraBounds, FreeCamera, MapSnapshot, TileSettings};
22pub use mln_map_types::{
23    AnimationOptions, BoundOptions, Camera, CameraDelta, CameraError, CameraMomentum, CameraOptions, CameraUpdate,
24    CameraUpdateMode, CameraVelocity, ConstrainMode, FreeCameraOptions, GesturePhase, LogicalExtent, MapDebugOptions,
25    MapMode, MapView, MomentumDecay, MomentumDecayModel, MomentumEasing, MomentumSnap, NorthOrientation,
26    ProjectionMode, TileLodMode, TransformState, TransitionEnd, TransitionOutcome, Viewport, ViewportMode,
27};
28pub use mln_renderer::{
29    OverscaledTileID, RenderMode, RendererEvents, RenderingStats, TileOperation, Update, UpdateReader,
30};
31pub use mln_style::StyleLoadError;
32pub use mln_util::event_queue::Waker;
33pub use mln_util::{Error, ErrorKind};
34pub use transform::{CameraCommandId, CommandEnd, FrameClock};
35
36#[cfg(test)]
37mod tests;