Google.Maps.Feature.Segment

A MapFeature that represents a 2D path. For example, a road.

Summary

Backed by LineGroup shape geometry.

Inheritance

Inherits from: Google.Maps.Feature.MapFeature

Constructors and Destructors

Segment(LineGroup shape, MercatorTileCoords mercatorTileCoords, SegmentMetadata metadata)
The Segment class constructor.

Properties

DefaultGameObjectName
override string
The default name to use for the associated GameObject.
Metadata
The feature metadata as a SegmentMetadata.

Public attributes

Shape
readonly LineGroup
A geometric representation of the Segment.

Public functions

GameObjectName()
new string
The name of the GameObject associated with this MapFeature.
GetShape()
virtual override MapFeatureShape
Returns the shape of a MapFeature if it has one.
Returns
Returns a MapFeatureShape instance representing the shape of the feature if it has one, otherwise returns null.

Properties

DefaultGameObjectName

override string DefaultGameObjectName

The default name to use for the associated GameObject.

This name is used when the MapFeatureMetadata doesn't have an explicit display name.

Metadata

SegmentMetadata Metadata

The feature metadata as a SegmentMetadata.

Public attributes

Shape

readonly LineGroup Shape

A geometric representation of the Segment.

Public functions

GameObjectName

new string GameObjectName()

The name of the GameObject associated with this MapFeature.

GetShape

virtual override MapFeatureShape GetShape()

Returns the shape of a MapFeature if it has one. Returns

Returns a MapFeatureShape instance representing the shape of the feature if it has one, otherwise returns null.

Segment

 Segment(
  LineGroup shape,
  MercatorTileCoords mercatorTileCoords,
  SegmentMetadata metadata
)

The Segment class constructor.

Details
Parameters
shape
A geometric representation of the Segment.
mercatorTileCoords
The coordinates of the tile that contains this feature.
metadata
Associated metadata.