Class MapTypeControlOptions
Options for the rendering of the map type control.
Inheritance
System.Object
MapTypeControlOptions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:GoogleMaps
Assembly:GoogleMaps.dll
Syntax
public class MapTypeControlOptions : IScriptDescriptorData
Constructors
MapTypeControlOptions()
Initializes a new instance of the MapTypeControlOptions class.
Declaration
public MapTypeControlOptions()
Properties
MapTypes
IDs of map types to show in the control.
Declaration
public MapType[] MapTypes { get; set; }
Property Value
Type | Description |
---|---|
MapType[] | The map types. |
Position
Position id. Used to specify the position of the control on the map.
The default position is TopRight
.
Declaration
public ControlPosition Position { get; set; }
Property Value
Type | Description |
---|---|
ControlPosition | The position. |
ViewStyle
Gets or sets the style.
Declaration
public MapTypeControlStyle ViewStyle { get; set; }
Property Value
Type | Description |
---|---|
MapTypeControlStyle | The style. |
Methods
FromScriptData(Object)
Retrieves an instance from script data.
Declaration
public static MapTypeControlOptions FromScriptData(object scriptObject)
Parameters
Type | Name | Description |
---|---|---|
System.Object | scriptObject | The value. |
Returns
Type | Description |
---|---|
MapTypeControlOptions |
ToScriptData()
Returns the instance as a script data.
Declaration
public IDictionary<string, object> ToScriptData()
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |