Skip to main content

Crate mln_map

Crate mln_map 

Source
Expand description

Ports src/mln/map + include/mln/map (Map, Map::Impl, MapOptions, Transform, the observers). The map vocabulary that lower crates need (CameraOptions, MapMode, TransformState, …) lives in mln_map_types and is re-exported here.

Re-exports§

pub use map::Map;
pub use map_impl::StillImageCallback;
pub use map_impl::StyleMut;
pub use map_observer::CameraChangeMode;
pub use map_observer::MapLoadError;
pub use map_observer::MapObserver;
pub use map_observer::NullMapObserver;
pub use map_observer::RenderFrameStatus;
pub use map_observer::RenderMode;
pub use map_options::MapOptions;
pub use map_projection::MapProjection;

Modules§

map
map_impl
map_observer
map_options
map_projection
transform

Structs§

AnimationOptions
Various options for describing a transition between viewpoints with animation. All fields are optional; the default values depend on how this struct is used.
BoundOptions
Holds options to limit what parts of a map are visible. All fields are optional.
CameraOptions
Various options for describing the viewpoint of a map. All fields are optional. Anchor and center points are mutually exclusive, with preference for the center point when both are set.
FreeCameraOptions
Various options for accessing physical properties of the underlying camera entity. A direct access to these properties allows more flexible and precise controlling of the camera while also being fully compatible and interchangeable with CameraOptions. All fields are optional.
MapDebugOptions
mln::MapDebugOptions, a bit set over uint32_t (C++ enum class with |, &, ~ operators; lhs & rhs returns bool there, contains here).
ProjectionMode
Holds values for Axonometric rendering. All fields are optional.
TransformState

Enums§

ConstrainMode
We can choose to constrain the map both horizontally or vertically, only vertically e.g. while panning, or screen to the specified bounds.
MapMode
mln::MapMode.
NorthOrientation
Determines the orientation of the map.
TileLodMode
ViewportMode
Satisfies embedding platforms that requires the viewport coordinate systems to be set according to its standards.