Class MapContextConfig
Encapsulates the styling configuration for a map. The MapContextConfig associates styling components, such as a StyleConfig and Datasets, with specific map variants of a MapConfig. When the MapConfig is loaded in an SDK, the styling and dataset information from the MapContextConfig are applied to the specified map variants. Next ID = 10;
Implements
Namespace: Google.Maps.MapManagement.V2Beta
Assembly: Google.Maps.MapManagement.V2Beta.dll
Syntax
public sealed class MapContextConfig : IMessage<MapContextConfig>, IEquatable<MapContextConfig>, IDeepCloneable<MapContextConfig>, IBufferMessage, IMessage
Constructors
MapContextConfig()
Declaration
public MapContextConfig()
MapContextConfig(MapContextConfig)
Declaration
public MapContextConfig(MapContextConfig other)
Parameters
| Type | Name | Description |
|---|---|---|
| MapContextConfig | other |
Properties
Alias
Optional. The user defined human readable name for this MapContextConfig.
Declaration
public string Alias { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CreateTime
Output only. Denotes the creation time of the MapContextConfig. Output only.
Declaration
public Timestamp CreateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |
Dataset
Optional. The Dataset resource name that is associated with this MapContextConfig. This field is optional and can be omitted. If omitted, no datasets will be associated with the MapContextConfig. If a dataset is specified, it will be applied to the MapContextConfig. Format: projects/{project}/datasets/{dataset}
Declaration
public RepeatedField<string> Dataset { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<string> |
DatasetAsDatasetNames
DatasetName-typed view over the Dataset resource name property.
Declaration
public ResourceNameList<DatasetName> DatasetAsDatasetNames { get; }
Property Value
| Type | Description |
|---|---|
| ResourceNameList<DatasetName> |
MapConfig
Required. The MapConfig resource name that this MapContextConfig is associated with. Format: projects/{project}/mapConfigs/{map_config}. This field is required and cannot be omitted.
Declaration
public string MapConfig { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MapConfigAsMapConfigName
MapConfigName-typed view over the MapConfig resource name property.
Declaration
public MapConfigName MapConfigAsMapConfigName { get; set; }
Property Value
| Type | Description |
|---|---|
| MapConfigName |
MapContextConfigName
MapContextConfigName-typed view over the Name resource name property.
Declaration
public MapContextConfigName MapContextConfigName { get; set; }
Property Value
| Type | Description |
|---|---|
| MapContextConfigName |
MapVariants
Required. The map variants that this MapContextConfig can be applied to. If empty, the MapContextConfig will be default applied to only the ROADMAP map variant.
Declaration
public RepeatedField<MapContextConfig.Types.MapVariant> MapVariants { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<MapContextConfig.Types.MapVariant> |
Name
Output only. Identifier. Resource name of this MapContextConfig. For example: projects/{project_id}/mapConfigs/{map_id}/mapContextConfigs/{map_context_config_id}
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StyleConfig
Required. The StyleConfig resource name that is styling this MapContextConfig. This field is required and cannot be omitted. Format: projects/{project}/styleConfigs/{style_config}
Declaration
public string StyleConfig { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StyleConfigAsStyleConfigName
StyleConfigName-typed view over the StyleConfig resource name property.
Declaration
public StyleConfigName StyleConfigAsStyleConfigName { get; set; }
Property Value
| Type | Description |
|---|---|
| StyleConfigName |
UpdateTime
Output only. Denotes the last update time of the MapContextConfig. Output only.
Declaration
public Timestamp UpdateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |