Struct GeoJsonSourceOptions
#[non_exhaustive]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: Option<Vec<u8>>,
pub tile_size: Option<u32>,
pub buffer: Option<u32>,
pub cluster_radius: Option<u32>,
pub cluster_min_points: Option<u32>,
pub line_metrics: Option<bool>,
pub cluster: Option<bool>,
pub synchronous_tiling: Option<bool>,
}Expand description
Options for GeoJSON sources. Fixed when the source is created; updating the source’s URL or data keeps the options it was added with.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min_zoom: Option<f64>§max_zoom: Option<f64>§tolerance: Option<f64>§cluster_max_zoom: Option<f64>§cluster_properties: Option<Vec<u8>>Cluster aggregation expressions keyed by property name, as a JSON object
whose members follow the MapLibre Style Spec clusterProperties form.
tile_size: Option<u32>§buffer: Option<u32>§cluster_radius: Option<u32>§cluster_min_points: Option<u32>§line_metrics: Option<bool>§cluster: Option<bool>§synchronous_tiling: Option<bool>Slices requested tiles out of installed data inline during the update
pass, so data installed through set_geojson_source_data reaches the
next rendered frame. The map can override this at runtime through
set_geojson_source_synchronous_tiling.
Trait Implementations§
§impl Clone for GeoJsonSourceOptions
impl Clone for GeoJsonSourceOptions
§fn clone(&self) -> GeoJsonSourceOptions
fn clone(&self) -> GeoJsonSourceOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for GeoJsonSourceOptions
impl Debug for GeoJsonSourceOptions
§impl Default for GeoJsonSourceOptions
impl Default for GeoJsonSourceOptions
§fn default() -> GeoJsonSourceOptions
fn default() -> GeoJsonSourceOptions
Returns the “default value” for a type. Read more
§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