Type Alias S2Feature

Source
pub type S2Feature<M = ()> = VectorFeature<M>;
Expand description

Component to build an S2 Feature. Uses VectorFeature but “face” property is applicable

Aliased Type§

struct S2Feature<M = ()> {
    pub _type: String,
    pub id: Option<u64>,
    pub face: Face,
    pub properties: BTreeMap<String, ValueType>,
    pub geometry: VectorGeometry,
    pub metadata: Option<M>,
}

Fields§

§_type: String

Type will always be “VectorFeature”

§id: Option<u64>

Unique identifier

§face: Face

Face of the feature

§properties: BTreeMap<String, ValueType>

Properties of the feature

§geometry: VectorGeometry

Geometry of the feature

§metadata: Option<M>

Metadata of the feature