Google.Maps.Feature.RegionMetadata

A Unity-independent representation of immutable properties of a land region.

Summary

Inheritance

Inherits from: Google.Maps.Feature.MapFeatureMetadata

Constructors and Destructors

RegionMetadata(string placeId, string name, UsageType usage)
The RegionMetadata class constructor.

Public types

UsageType{
  Unspecified,
  Park,
  Beach,
  Forest
}
enum
A set of values the specify how a Region is used.

Public static attributes

BeachColor = new Color(0.980f, 0.949f, 0.780f)
readonly Color
The default color of beaches.
ForestColor = new Color(0.427f, 0.596f, 0.165f)
readonly Color
The default color of forests.
GenericRegionColor = new Color(0.862f, 0.862f, 0.862f)
readonly Color
The default color of generic Regions.
ParkColor = new Color(0.851f, 0.914f, 0.725f)
readonly Color
The default color of parks.
UndefinedRegionColor = new Color(0.862f, 0.862f, 0.862f)
readonly Color
The default color of undefined Regions.

Public attributes

Usage
readonly UsageType
Specifies the way in which the Region is used.

Public static functions

DefaultColorForUsageType(UsageType featureType)
Color
Returns the default color for the given UsageType.

Public types

UsageType

 UsageType

A set of values the specify how a Region is used.

Properties
Beach

A beach.

Forest

An area of land covered by trees.

Park

A park or botanical garden.

Unspecified

The usage type is unspecified.

Public static attributes

BeachColor

readonly Color BeachColor = new Color(0.980f, 0.949f, 0.780f)

The default color of beaches.

ForestColor

readonly Color ForestColor =  new Color(0.427f, 0.596f, 0.165f)

The default color of forests.

GenericRegionColor

readonly Color GenericRegionColor = new Color(0.862f, 0.862f, 0.862f)

The default color of generic Regions.

ParkColor

readonly Color ParkColor = new Color(0.851f, 0.914f, 0.725f)

The default color of parks.

UndefinedRegionColor

readonly Color UndefinedRegionColor = new Color(0.862f, 0.862f, 0.862f)

The default color of undefined Regions.

Public attributes

Usage

readonly UsageType Usage

Specifies the way in which the Region is used.

Public functions

RegionMetadata

 RegionMetadata(
  string placeId,
  string name,
  UsageType usage
)

The RegionMetadata class constructor.

Details
Parameters
placeId
The Region's Place ID.
name
The name of this feature, used to name generated Unity objects.
usage
The way in which the Region is used.

Public static functions

DefaultColorForUsageType

Color DefaultColorForUsageType(
  UsageType featureType
)

Returns the default color for the given UsageType.

Details
Parameters
featureType
The type of feature.
Returns
The color for the UsageType.