Package | com.google.maps.controls |
Class | public class ScaleControlOptions |
Property | Defined by | ||
---|---|---|---|
labelFormat : TextFormat
Format for the label(s) of the control.
| ScaleControlOptions | ||
lineThickness : Object
An integer value indicating the thickness of the lines
in the scale control.
| ScaleControlOptions | ||
maxWidth : Object
A number indicating the maximum width of the scale control.
| ScaleControlOptions | ||
position : ControlPosition
Control's position on the map.
| ScaleControlOptions | ||
units : Object
Units that are shown by the scale control.
| ScaleControlOptions |
Method | Defined by | ||
---|---|---|---|
ScaleControlOptions(param:Object = null)
Constructs an ScaleControlOptions object, optionally
initializing it from an object.
| ScaleControlOptions | ||
toString():String
Returns a String representation of this object.
| ScaleControlOptions |
Constant | Defined by | ||
---|---|---|---|
UNITS_BOTH : int = 0 [static] Show both imperial and metric scale indicators.
| ScaleControlOptions | ||
UNITS_BOTH_PREFER_IMPERIAL : int = 2 [static] Show both imperial and metric scale indicators with the imperial scale
indicator appearing on top.
| ScaleControlOptions | ||
UNITS_BOTH_PREFER_METRIC : int = 1 [static] Show both imperial and metric scale indicators with the metric scale
indicator appearing on top.
| ScaleControlOptions | ||
UNITS_IMPERIAL_ONLY : int = 6 [static] Show only the imperial scale indicator.
| ScaleControlOptions | ||
UNITS_METRIC_ONLY : int = 5 [static] Show only the metric scale indicator.
| ScaleControlOptions | ||
UNITS_SINGLE : int = 4 [static] Show only one scale indicator, chosen based upon the user's locale.
| ScaleControlOptions |
labelFormat | property |
labelFormat:TextFormat
[read-write]Format for the label(s) of the control.
Implementation public function get labelFormat():TextFormat
public function set labelFormat(value:TextFormat):void
lineThickness | property |
lineThickness:Object
[read-write]An integer value indicating the thickness of the lines in the scale control.
Implementation public function get lineThickness():Object
public function set lineThickness(value:Object):void
maxWidth | property |
maxWidth:Object
[read-write]A number indicating the maximum width of the scale control.
Implementation public function get maxWidth():Object
public function set maxWidth(value:Object):void
position | property |
position:ControlPosition
[read-write]Control's position on the map.
Implementation public function get position():ControlPosition
public function set position(value:ControlPosition):void
units | property |
units:Object
[read-write]Units that are shown by the scale control. One of the ScaleControlOptions.UNITS_ constants.
Implementation public function get units():Object
public function set units(value:Object):void
ScaleControlOptions | () | constructor |
public function ScaleControlOptions(param:Object = null)
Constructs an ScaleControlOptions object, optionally initializing it from an object.
Parametersparam:Object (default = null ) — An initialization object containing a set of
values that supplement the default set.
// Initialization object corresponding to the default set. { position: new ControlPosition(ControlPosition.ANCHOR_BOTTOM_LEFT, 70, 5) units: ScaleControlOptions.UNITS_BOTH, maxWidth: 125, lineThickness: 1, labelFormat: { font: "_sans", size: 11 } } |
toString | () | method |
public function toString():String
Returns a String representation of this object.
ReturnsString — String representation of this object.
|
UNITS_BOTH | constant |
public static const UNITS_BOTH:int = 0
Show both imperial and metric scale indicators.
UNITS_BOTH_PREFER_IMPERIAL | constant |
public static const UNITS_BOTH_PREFER_IMPERIAL:int = 2
Show both imperial and metric scale indicators with the imperial scale indicator appearing on top.
UNITS_BOTH_PREFER_METRIC | constant |
public static const UNITS_BOTH_PREFER_METRIC:int = 1
Show both imperial and metric scale indicators with the metric scale indicator appearing on top.
UNITS_IMPERIAL_ONLY | constant |
public static const UNITS_IMPERIAL_ONLY:int = 6
Show only the imperial scale indicator.
UNITS_METRIC_ONLY | constant |
public static const UNITS_METRIC_ONLY:int = 5
Show only the metric scale indicator.
UNITS_SINGLE | constant |
public static const UNITS_SINGLE:int = 4
Show only one scale indicator, chosen based upon the user's locale.