pub struct ClusterOptions {
pub radius: f64,
pub max_zoom: u8,
pub min_zoom: u8,
pub min_points: usize,
pub tile_extent: f64,
}Expand description
Options controlling point-clustering behaviour.
Fields§
§radius: f64Screen-pixel clustering radius (default 50).
max_zoom: u8Maximum zoom level at which clusters are generated. At zooms above this, all points are returned individually.
min_zoom: u8Minimum zoom level at which clusters are generated.
min_points: usizeMinimum number of points to form a cluster (default 2).
tile_extent: f64Tile extent in pixel units (default 512).
Trait Implementations§
Source§impl Clone for ClusterOptions
impl Clone for ClusterOptions
Source§fn clone(&self) -> ClusterOptions
fn clone(&self) -> ClusterOptions
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 moreSource§impl Debug for ClusterOptions
impl Debug for ClusterOptions
Auto Trait Implementations§
impl Freeze for ClusterOptions
impl RefUnwindSafe for ClusterOptions
impl Send for ClusterOptions
impl Sync for ClusterOptions
impl Unpin for ClusterOptions
impl UnsafeUnpin for ClusterOptions
impl UnwindSafe for ClusterOptions
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