Google.Maps.Feature.Region

A MapFeature that represents a 2D region. For example, a park.

Summary

Backed by Shape.Area shape geometry.

Inheritance

Inherits from: Google.Maps.Feature.MapFeature

Constructors and Destructors

Region(Area shape, TileCoord tileCoord, RegionMetadata metadata)
The Region class constructor.

Properties

DefaultGameObjectName
override string
The default name to use for the associated GameObject.
IsStitchable
override bool
Indicates whether this MapFeature has stitchable features.
Metadata
The feature metadata as a RegionMetadata.

Public attributes

Shape
readonly Area
Contains the geometric representation of the Region.

Public functions

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.
ToString()
override string
A string representation of this Region. I.e., its PlaceID.

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.

IsStitchable

override bool IsStitchable

Indicates whether this MapFeature has stitchable features.

Currently, features are either stitchable (buildings) or not-stitchable (everything else). We don't currently support partially stitching large features.

Metadata

RegionMetadata Metadata

The feature metadata as a RegionMetadata.

Public attributes

Shape

readonly Area Shape

Contains the geometric representation of the Region.

Public functions

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.

Region

 Region(
  Area shape,
  TileCoord tileCoord,
  RegionMetadata metadata
)

The Region class constructor.

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

ToString

override string ToString()

A string representation of this Region. I.e., its PlaceID.