pub struct TileStore<M: HasLayer + Clone = (), P: Clone + Default = Properties, D: Clone + Default = MValue> {
pub minzoom: u8,
pub maxzoom: u8,
pub faces: BTreeSet<Face>,
pub index_maxzoom: u8,
pub tolerance: f64,
pub buffer: f64,
pub tiles: BTreeMap<CellId, Tile<M, P, D>>,
pub projection: Projection,
}Expand description
TileStore Class is a tile-lookup system that splits and simplifies as needed for each tile request
Fields§
§minzoom: u8min zoom to preserve detail on
maxzoom: u8max zoom to preserve detail on
faces: BTreeSet<Face>store which faces are active. 0 face could be entire WM projection
index_maxzoom: u8max zoom in the tile index
tolerance: f64simplification tolerance (higher means simpler)
buffer: f64tile buffer for lines and polygons
tiles: BTreeMap<CellId, Tile<M, P, D>>stores both WM and S2 tiles
projection: Projectionprojection to build tiles for
Implementations§
Source§impl<M: HasLayer + Clone, P: Clone + Default, D: Clone + Default> TileStore<M, P, D>where
VectorFeature<M, P, D>: ConvertVectorFeatureWM<M, P, D> + ConvertVectorFeatureS2<M, P, D>,
Feature<M, P, D>: ConvertFeature<M, P, D>,
impl<M: HasLayer + Clone, P: Clone + Default, D: Clone + Default> TileStore<M, P, D>where
VectorFeature<M, P, D>: ConvertVectorFeatureWM<M, P, D> + ConvertVectorFeatureS2<M, P, D>,
Feature<M, P, D>: ConvertFeature<M, P, D>,
Sourcepub fn new(data: JSONCollection<M, P, D>, options: TileStoreOptions) -> Self
pub fn new(data: JSONCollection<M, P, D>, options: TileStoreOptions) -> Self
Create a new TileStore
Trait Implementations§
Source§impl<M: Clone + HasLayer + Clone, P: Clone + Clone + Default, D: Clone + Clone + Default> Clone for TileStore<M, P, D>
impl<M: Clone + HasLayer + Clone, P: Clone + Clone + Default, D: Clone + Clone + Default> Clone for TileStore<M, P, D>
Source§impl<M: Debug + HasLayer + Clone, P: Debug + Clone + Default, D: Debug + Clone + Default> Debug for TileStore<M, P, D>
impl<M: Debug + HasLayer + Clone, P: Debug + Clone + Default, D: Debug + Clone + Default> Debug for TileStore<M, P, D>
Source§impl<M: HasLayer + Clone, P: Clone + Default, D: Clone + Default> Default for TileStore<M, P, D>
impl<M: HasLayer + Clone, P: Clone + Default, D: Clone + Default> Default for TileStore<M, P, D>
Source§impl<M: PartialEq + HasLayer + Clone, P: PartialEq + Clone + Default, D: PartialEq + Clone + Default> PartialEq for TileStore<M, P, D>
impl<M: PartialEq + HasLayer + Clone, P: PartialEq + Clone + Default, D: PartialEq + Clone + Default> PartialEq for TileStore<M, P, D>
impl<M: HasLayer + Clone, P: Clone + Default, D: Clone + Default> StructuralPartialEq for TileStore<M, P, D>
Auto Trait Implementations§
impl<M, P, D> Freeze for TileStore<M, P, D>
impl<M, P, D> RefUnwindSafe for TileStore<M, P, D>
impl<M, P, D> Send for TileStore<M, P, D>
impl<M, P, D> Sync for TileStore<M, P, D>
impl<M, P, D> Unpin for TileStore<M, P, D>
impl<M, P, D> UnwindSafe for TileStore<M, P, D>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().