pub struct GeoJsonSourceOptions {
pub min_zoom: Option<f64>,
pub max_zoom: Option<f64>,
pub tolerance: Option<f64>,
pub cluster_max_zoom: Option<f64>,
pub cluster_properties: String,
pub buffer: Option<u32>,
pub cluster_radius: Option<u32>,
pub cluster_min_points: Option<u64>,
pub line_metrics: Option<bool>,
pub cluster: Option<bool>,
}Expand description
Options for a GeoJSON [source](https://maplibre.org/maplibre-style-spec/sources/#geojson).
Zoom levels are whole numbers.
See mln_geo_json_source_options in the
C API reference.
Fields§
§min_zoom: Option<f64>§max_zoom: Option<f64>§tolerance: Option<f64>§cluster_max_zoom: Option<f64>The last zoom level that has clusters, at most 30.
cluster_properties: StringThe clusterProperties object, or empty for none.
buffer: Option<u32>§cluster_radius: Option<u32>§cluster_min_points: Option<u64>At most 4294967295 on a 32-bit target.
line_metrics: Option<bool>§cluster: Option<bool>Trait Implementations§
Source§impl Clone for GeoJsonSourceOptions
impl Clone for GeoJsonSourceOptions
Source§fn clone(&self) -> GeoJsonSourceOptions
fn clone(&self) -> GeoJsonSourceOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeoJsonSourceOptions
impl Debug for GeoJsonSourceOptions
Source§impl Default for GeoJsonSourceOptions
impl Default for GeoJsonSourceOptions
Source§fn default() -> GeoJsonSourceOptions
fn default() -> GeoJsonSourceOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for GeoJsonSourceOptions
impl PartialEq for GeoJsonSourceOptions
impl StructuralPartialEq for GeoJsonSourceOptions
Auto Trait Implementations§
impl Freeze for GeoJsonSourceOptions
impl RefUnwindSafe for GeoJsonSourceOptions
impl Send for GeoJsonSourceOptions
impl Sync for GeoJsonSourceOptions
impl Unpin for GeoJsonSourceOptions
impl UnsafeUnpin for GeoJsonSourceOptions
impl UnwindSafe for GeoJsonSourceOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more