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§
Structs§
- Animation
Options - Various options for describing a transition between viewpoints with animation. All fields are optional; the default values depend on how this struct is used.
- Bound
Options - Holds options to limit what parts of a map are visible. All fields are optional.
- Camera
Options - 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.
- Free
Camera Options - 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.
- MapDebug
Options mln::MapDebugOptions, a bit set overuint32_t(C++enum classwith|,&,~operators;lhs & rhsreturns bool there,containshere).- Projection
Mode - Holds values for Axonometric rendering. All fields are optional.
- Transform
State
Enums§
- Constrain
Mode - 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.- North
Orientation - Determines the orientation of the map.
- Tile
LodMode - Viewport
Mode - Satisfies embedding platforms that requires the viewport coordinate systems to be set according to its standards.