Packagecom.google.maps.overlays
Classpublic class GroundOverlayOptions

GroundOverlayOptions class specifies a set of rendering parameters for a GroundOverlay.



Public Properties
 PropertyDefined by
  rotation : Object
A Number value that specifies the ground overlay rotation (specified in degrees in the clockwise direction).
GroundOverlayOptions
  rotationContentCenter : Point
Ground overlay rotation center in content coordinates.
GroundOverlayOptions
  strokeStyle : StrokeStyle
Ground overlay stroke style.
GroundOverlayOptions
Public Methods
 MethodDefined by
  
GroundOverlayOptions(param:Object = null)
Constructs a new GroundOverlayOptions object, optionally initializing it from an object.
GroundOverlayOptions
  
[static] Retrieves the GroundOverlayOptions instance that represents the default set of options that applies to all ground overlays.
GroundOverlayOptions
  
[static] Updates the default GroundOverlayOptions.
GroundOverlayOptions
  
toString():String
Returns a String representation of this object.
GroundOverlayOptions
Property detail
rotationproperty
rotation:Object  [read-write]

A Number value that specifies the ground overlay rotation (specified in degrees in the clockwise direction).

Implementation
    public function get rotation():Object
    public function set rotation(value:Object):void
rotationContentCenterproperty 
rotationContentCenter:Point  [read-write]

Ground overlay rotation center in content coordinates. This is the point, in the coordinates of the GroundOverlay's content, around which rotation occurs. If not set, then rotation occurs around the content center.

Implementation
    public function get rotationContentCenter():Point
    public function set rotationContentCenter(value:Point):void
strokeStyleproperty 
strokeStyle:StrokeStyle  [read-write]

Ground overlay stroke style.

Implementation
    public function get strokeStyle():StrokeStyle
    public function set strokeStyle(value:StrokeStyle):void
Constructor detail
GroundOverlayOptions()constructor
public function GroundOverlayOptions(param:Object = null)

Constructs a new GroundOverlayOptions object, optionally initializing it from an object.

Parameters
param:Object (default = null) — An initialization object containing a set of values that supplement the default set.

See also


Example
   var options:GroundOverlayOptions = new GroundOverlayOptions({
     strokeStyle: {
       color: 0x987654,
       alpha: 0.8,
       thickness: 3,
       pixelHinting: true
     },
     rotation: 90,
   });

Method detail
getDefaultOptions()method
public static function getDefaultOptions():GroundOverlayOptions

Retrieves the GroundOverlayOptions instance that represents the default set of options that applies to all ground overlays.

   // Initialization object corresponding to the initial defaults.
   { strokeStyle:
     { thickness: 0,
       alpha: 0.0,  // invisible
       color: Color.BLACK,
       pixelHinting: false
     },
     rotation: 0
   }

Returns
GroundOverlayOptions — Existing default ground overlay options.
setDefaultOptions()method 
public static function setDefaultOptions(defaults:GroundOverlayOptions):void

Updates the default GroundOverlayOptions. These default will apply to all ground overlays created after the call to setDefaultOptions method. Individual ground overlays can also specify their own sets of options. Individual options take precedence over the default ones. The defaults parameter may specify a complete or partial set of ground overlay options. If a partial set of options is specified, it will supplement the existing defaults, overriding only the values that were set explicitly and leaving the rest unchanged.

Parameters
defaults:GroundOverlayOptions — The new set of defaults for ground overlay options.
toString()method 
public function toString():String

Returns a String representation of this object.

Returns
String — String representation of this object.