GoogleApi.VectorTile.V1.Model.Line (google_api_vector_tile v0.5.0) View Source
Represents a 2D polyline. Used to represent segments such as roads, train tracks, etc.
Attributes
-
basemapZOrder
(type:GoogleApi.VectorTile.V1.Model.BasemapZOrder.t
, default:nil
) - The z-order of this geometry when rendered on a flat basemap. Geometry with a lower z-order should be rendered beneath geometry with a higher z-order. This z-ordering does not imply anything about the altitude of the area relative to the ground, but it can be used to prevent z-fighting. Unlike Line.z_order this can be used to compare with Area.basemap_z_order, and in fact may yield more accurate rendering (where a line may be rendered beneath an area). -
vertexOffsets
(type:GoogleApi.VectorTile.V1.Model.Vertex2DList.t
, default:nil
) - The vertices present in the polyline. -
zOrder
(type:integer()
, default:nil
) - The z-order of the line. Lines with a lower z-order should be rendered beneath lines with a higher z-order. This z-ordering does not imply anything about the altitude of the area relative to the ground, but it can be used to prevent z-fighting during rendering on the client. In general, larger and more important road features will have a higher z-order line associated with them. This z-ordering can only be used to compare lines, and cannot be compared with the z_order field in the Area message. The z-order may be negative or zero. Prefer Line.basemap_z_order.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Specs
t() :: %GoogleApi.VectorTile.V1.Model.Line{ basemapZOrder: GoogleApi.VectorTile.V1.Model.BasemapZOrder.t() | nil, vertexOffsets: GoogleApi.VectorTile.V1.Model.Vertex2DList.t() | nil, zOrder: integer() | nil }
Link to this section Functions
Specs
Unwrap a decoded JSON object into its complex fields.