pub struct GeoJsonOptions {
pub max_zoom: u8,
pub buffer: f64,
pub tolerance: f64,
}Expand description
Options of a GeoJSON source, in geojson-vt units.
Fields§
§max_zoom: u8§buffer: f64Buffer in tile units (MapLibre: buffer px * 16).
tolerance: f64Simplification tolerance in tile units (MapLibre: tolerance * 16).
Implementations§
Source§impl GeoJsonOptions
impl GeoJsonOptions
Sourcepub fn from_source(src: &Json) -> Self
pub fn from_source(src: &Json) -> Self
From a style source (maxzoom, buffer, tolerance).
Trait Implementations§
Source§impl Clone for GeoJsonOptions
impl Clone for GeoJsonOptions
impl Copy for GeoJsonOptions
Auto Trait Implementations§
impl Freeze for GeoJsonOptions
impl RefUnwindSafe for GeoJsonOptions
impl Send for GeoJsonOptions
impl Sync for GeoJsonOptions
impl Unpin for GeoJsonOptions
impl UnsafeUnpin for GeoJsonOptions
impl UnwindSafe for GeoJsonOptions
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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