SimplifyVectorGeometry

Trait SimplifyVectorGeometry 

Source
pub trait SimplifyVectorGeometry<M: Clone + Default = MValue> {
    // Required methods
    fn build_sq_dists(&mut self, tolerance: f64, maxzoom: Option<u8>);
    fn simplify(&mut self, tolerance: f64, zoom: u8, maxzoom: Option<u8>);
}
Expand description

Functions to simplify a vector geometry

Required Methods§

Source

fn build_sq_dists(&mut self, tolerance: f64, maxzoom: Option<u8>)

Build sequential distances for a vector geometry

Source

fn simplify(&mut self, tolerance: f64, zoom: u8, maxzoom: Option<u8>)

Simplify the geometry to have a tolerance which will be relative to the tile’s zoom level.

Implementations on Foreign Types§

Source§

impl<M: Clone + Default> SimplifyVectorGeometry<M> for VectorGeometry<M>

Source§

fn build_sq_dists(&mut self, tolerance: f64, maxzoom: Option<u8>)

Build sqdistances for a vector geometry

Source§

fn simplify(&mut self, tolerance: f64, zoom: u8, maxzoom: Option<u8>)

Simplify the geometry to have a tolerance which will be relative to the tile’s zoom level.

Implementors§