Skip to main content

mln_engine/camera/
bound_options.rs

1use mln_style::geo::LatLngBounds;
2
3/// Holds options to limit what parts of a map are visible. All fields are
4/// optional.
5#[derive(Clone, Copy, Debug, Default, PartialEq)]
6pub struct BoundOptions {
7    /// Sets the latitude and longitude bounds to which the camera center are
8    /// constrained.
9    pub bounds: Option<LatLngBounds>,
10    /// Sets the maximum zoom level.
11    pub max_zoom: Option<f64>,
12    /// Sets the minimum zoom level.
13    pub min_zoom: Option<f64>,
14    /// Sets the maximum pitch.
15    pub max_pitch: Option<f64>,
16    /// Sets the minimum pitch.
17    pub min_pitch: Option<f64>,
18}