mln-rs-engine 0.0.19

Part of mln-rs, a Rust port of the MapLibre Native map rendering core. Depend on mln-rs instead.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use mln_style::geo::LatLngBounds;

/// Holds options to limit what parts of a map are visible. All fields are
/// optional.
#[derive(Clone, Copy, Debug, Default, PartialEq)]
pub struct BoundOptions {
    /// Sets the latitude and longitude bounds to which the camera center are
    /// constrained.
    pub bounds: Option<LatLngBounds>,
    /// Sets the maximum zoom level.
    pub max_zoom: Option<f64>,
    /// Sets the minimum zoom level.
    pub min_zoom: Option<f64>,
    /// Sets the maximum pitch.
    pub max_pitch: Option<f64>,
    /// Sets the minimum pitch.
    pub min_pitch: Option<f64>,
}