mvt_reader/layer.rs
1//! This module provide the `Layer` struct.
2//!
3//! The `Layer` struct represents a layer in a vector tile, containing metadata about the layer and its features.
4//!
5//! # Types
6//!
7//! The `layer` module defines the following types:
8//!
9//! - `Layer`: Represents a layer in a vector tile, containing metadata about the layer and its features.
10
11/// A structure representing a layer in a vector tile.
12#[derive(Debug, Clone)]
13pub struct Layer {
14 /// The index of the layer in the vector tile.
15 pub layer_index: usize,
16
17 /// The version of the layer.
18 pub version: u32,
19
20 /// The name of the layer.
21 pub name: String,
22
23 /// The number of features in the layer.
24 pub feature_count: usize,
25
26 /// The extent of the layer, representing the size of the tile in pixels. Defaults to 4096.
27 pub extent: u32,
28}