GoogleApi.VectorTile.V1.Model.Vertex2DList (google_api_vector_tile v0.5.0) View Source

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)].

Attributes

  • xOffsets (type: list(integer()), default: nil) - List of x-offsets in local tile coordinates.
  • yOffsets (type: list(integer()), default: nil) - List of y-offsets in local tile coordinates.

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.Vertex2DList{
  xOffsets: [integer()] | nil,
  yOffsets: [integer()] | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.