Aller au contenu

Message HrzProtocol.VectorTilesStyle

Defined in hrz/protocol/vector/style.proto.


representations: HrzProtocol.VectorRepr[]

styling_script: string

attributes: HrzProtocol.StylingAttributeRef[]

Maps an attribute name in the styling script to an attribute ID from a vector data layer.


palettes: HrzProtocol.Palette[]

anchor_z_attribute_name: string

This is the name of the attribute in the styling script that will contain the z component of the anchor of the feature. This is the coordinate before clamping. Leave this empty if you don’t need that. For polygons this is the centroid. For polylines this is the middle of the path.


feature_type_attribute_name: string

This is the name of the attribute in the styling script that will contains the type of feature. It is a uint attribute with 0 = points, 1 = polyline and 2 = polygon. Leave this empty if you don’t need that.


anchor_angle_attribute_name: string

Name of the attribute in the styling script that will contain the angle at the anchor of the feature. For polygons and points this is always 0. For polylines, it’s the orientation at the middle of the path. This is in radians. 0 is east, then it is encoded counter-clockwise.


rng_seed: uint64

Seed to influence the pseudo-random number generation.