pub struct Options {
pub min_zoom: u8,
pub max_zoom: u8,
pub min_points: u8,
pub radius: f64,
pub extent: f64,
pub node_size: usize,
pub coordinate_system: CoordinateSystem,
}Expand description
Supercluster configuration options.
Fields§
§min_zoom: u8Minimal zoom level to generate clusters on.
max_zoom: u8Maximal zoom level to cluster the points on.
min_points: u8Minimum points to form a cluster.
radius: f64Cluster radius in pixels.
extent: f64Tile extent (radius is calculated relative to it).
node_size: usizeSize of the KD-tree leaf node, affects performance.
coordinate_system: CoordinateSystemType of coordinate system for clustering.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Options
impl !RefUnwindSafe for Options
impl Send for Options
impl !Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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