class Google::Apis::VectortileV1::Line

Represents a 2D polyline. Used to represent segments such as roads, train tracks, etc.

Attributes

basemap_z_order[RW]

Metadata necessary to determine the ordering of a particular basemap element relative to others. To render the basemap correctly, sort by z-plane, then z- grade, then z-within-grade. Corresponds to the JSON property `basemapZOrder` @return [Google::Apis::VectortileV1::BasemapZOrder]

vertex_offsets[RW]

2D vertex list used for lines and areas. Each entry represents an offset from the previous one in local tile coordinates. The first entry is offset from (0, 0). For example, the list of vertices [(1,1), (2, 2), (1, 2)] would be encoded in vertex offsets as [(1, 1), (1, 1), (-1, 0)]. Corresponds to the JSON property `vertexOffsets` @return [Google::Apis::VectortileV1::Vertex2DList]

z_order[RW]

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. Corresponds to the JSON property `zOrder` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vectortile_v1/classes.rb, line 437
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vectortile_v1/classes.rb, line 442
def update!(**args)
  @basemap_z_order = args[:basemap_z_order] if args.key?(:basemap_z_order)
  @vertex_offsets = args[:vertex_offsets] if args.key?(:vertex_offsets)
  @z_order = args[:z_order] if args.key?(:z_order)
end