pub struct PickOptions {
pub layers: Vec<String>,
pub sources: Vec<String>,
pub tolerance_meters: f64,
pub include_symbols: bool,
pub include_models: bool,
pub include_terrain_surface: bool,
pub limit: usize,
}Expand description
Filtering and behavior options for a pick operation.
Fields§
§layers: Vec<String>Restrict results to specific layer ids.
sources: Vec<String>Restrict results to specific source ids.
tolerance_meters: f64Hit tolerance in meters for point and line features.
include_symbols: boolWhether placed-symbol collision boxes participate in the query.
include_models: boolWhether 3D model instances participate in the query.
include_terrain_surface: boolWhether terrain surface recovery is included as a hit.
limit: usizeMaximum number of results to return (0 = unlimited).
Implementations§
Source§impl PickOptions
impl PickOptions
Sourcepub fn with_terrain_surface(self) -> Self
pub fn with_terrain_surface(self) -> Self
Include terrain surface recovery as a result.
Sourcepub fn with_limit(self, limit: usize) -> Self
pub fn with_limit(self, limit: usize) -> Self
Set the result limit.
Sourcepub fn with_layers(self, layers: Vec<String>) -> Self
pub fn with_layers(self, layers: Vec<String>) -> Self
Restrict to specific layer ids.
Sourcepub fn with_sources(self, sources: Vec<String>) -> Self
pub fn with_sources(self, sources: Vec<String>) -> Self
Restrict to specific source ids.
Trait Implementations§
Source§impl Clone for PickOptions
impl Clone for PickOptions
Source§fn clone(&self) -> PickOptions
fn clone(&self) -> PickOptions
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 PickOptions
impl Debug for PickOptions
Auto Trait Implementations§
impl Freeze for PickOptions
impl RefUnwindSafe for PickOptions
impl Send for PickOptions
impl Sync for PickOptions
impl Unpin for PickOptions
impl UnsafeUnpin for PickOptions
impl UnwindSafe for PickOptions
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