pub struct LayerJsonConfig {
pub tiles_template: String,
pub version: String,
pub attribution: Option<String>,
pub available: Vec<Vec<TileAvailability>>,
pub min_zoom: Option<u8>,
pub max_zoom: Option<u8>,
pub scheme: TilingScheme,
pub bounds: Option<[f64; 4]>,
pub extensions: Vec<String>,
pub format: TerrainFormat,
pub metadata_availability: Option<u8>,
}Expand description
Builder-style configuration for assembling a LayerJson.
Fields§
§tiles_template: StringTile URL template (e.g. "{z}/{x}/{y}.terrain").
version: StringData version, also used by Cesium for cache busting.
attribution: Option<String>Attribution text (HTML allowed).
available: Vec<Vec<TileAvailability>>Per-zoom-level tile availability ranges (outer index = zoom level).
min_zoom: Option<u8>Minimum zoom level the server supports.
max_zoom: Option<u8>Maximum zoom level the server supports.
scheme: TilingSchemeTiling scheme.
bounds: Option<[f64; 4]>Geographic bounds [west, south, east, north].
extensions: Vec<String>Enabled extensions (e.g. "octvertexnormals", "watermask",
"metadata").
format: TerrainFormatTerrain format.
metadata_availability: Option<u8>Metadata-availability level for the metadata extension. When
set, Cesium walks the tree by reading each tile’s metadata
extension instead of relying on the static available array.
Trait Implementations§
Source§impl Clone for LayerJsonConfig
impl Clone for LayerJsonConfig
Source§fn clone(&self) -> LayerJsonConfig
fn clone(&self) -> LayerJsonConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayerJsonConfig
impl Debug for LayerJsonConfig
Auto Trait Implementations§
impl Freeze for LayerJsonConfig
impl RefUnwindSafe for LayerJsonConfig
impl Send for LayerJsonConfig
impl Sync for LayerJsonConfig
impl Unpin for LayerJsonConfig
impl UnsafeUnpin for LayerJsonConfig
impl UnwindSafe for LayerJsonConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more