NOTICE: Google Maps Platform gaming services is deprecated as of October 18, 2021. Current users will have continued access until December 31, 2022. During this time, we will continue to provide support and fixes to major bugs and outages. See the Gaming Services Transition Guide for resources to help you plan the next steps for your projects.

Google.Maps.Feature.Shape.Line

A geometric representation of a 2D path on a map.

Summary

Constructors and Destructors

Line(ICollection< Vector2 > vertices, int zOrder)
The Line class constructor.

Public attributes

Vertices
readonly Vector2[]
The vertices that make up the Line.
ZOrder
readonly int
The z-ordering of the line. Lines with a higher z-order are rendered above lines with a lower z-order.

Public attributes

Vertices

readonly Vector2[] Vertices

The vertices that make up the Line.

ZOrder

readonly int ZOrder

The z-ordering of the line. Lines with a higher z-order are rendered above lines with a lower z-order.

Public functions

Line

 Line(
  ICollection< Vector2 > vertices,
  int zOrder
)

The Line class constructor.

Legacy constructor to support client code that predates addition of integer vertices.

Details
Parameters
vertices
Collection of Vector2s that make up the segment.
zOrder
Z-order of the line.