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,
  AdministrativeArea1,
  Locality,
  Sublocality
}
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
AdministrativeArea1

A top-level division within a country, such as a prefecture or a state.

These are returned only when EnablePoliticalFeatures is set on the MapsService. They are returned only at zoom level 10 and lower.

These are currently returned for Japan only.

Beach

A beach.

Forest

An area of land covered by trees.

Locality

A city, town, or other municipality.

These are returned only when EnablePoliticalFeatures is set on the MapsService. They are returned only at zoom level 11 through 14.

These are currently returned for Japan only.

Park

A park or botanical garden.

Sublocality

Divisions within a locality like a borough or ward.

These are returned only when EnablePoliticalFeatures is set on the MapsService. They are returned only at zoom level 11 through 14.

These are currently returned for Japan only.

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.

Send feedback about...

Google Maps Platform gaming solution
Google Maps Platform gaming solution