| Package | com.esri.aws.awx.map.layers |
| Interface | public interface IStaticLayer extends ILayer, flash.events.IEventDispatcher |
See also
| Method | Defined by | ||
|---|---|---|---|
|
addOverlayAbsolute(child:DisplayObject):void
addOverlayAbsolute adds a DisplayOject to the static layer using
the absolute x and y positions assigned to the DisplayObject.
| IStaticLayer | ||
|
addOverlayRelative(child:UIComponent, horizontalAlignment:String, verticalAlignment:String, horizontalOffset:Number = 0, verticalOffset:Number = 0):void
addOverlayRelative adds a DisplayOject to the static layer using
the relative parameters passed into the method.
| IStaticLayer | ||
|
getHeight():Number
Retrieves the height of the static layer.
| IStaticLayer | ||
![]() |
getUIComponent():UIComponent
The layer's UIComponent.
| ILayer | |
|
getWidth():Number
Retrieves the width of the static layer.
| IStaticLayer | ||
|
removeOverlay(child:DisplayObject):void
Removes the DisplayObject child from the static layer.
| IStaticLayer | ||
|
removeOverlayByName(name:String):void
Removes the DisplayObject child from the static layer based on its name.
| IStaticLayer | ||
| addOverlayAbsolute | () | method |
public function addOverlayAbsolute(child:DisplayObject):voidaddOverlayAbsolute adds a DisplayOject to the static layer using the absolute x and y positions assigned to the DisplayObject.
Parameterschild:DisplayObject |
See also
var logo1:Image = new Image();
logo1.load("http://www.arcwebservices.com/v2006/images/home/free_trial.gif");
logo1.x = logo1.y = 25;
map.staticLayer.addOverlayAbsolute(logo1);
| addOverlayRelative | () | method |
public function addOverlayRelative(child:UIComponent, horizontalAlignment:String, verticalAlignment:String, horizontalOffset:Number = 0, verticalOffset:Number = 0):voidaddOverlayRelative adds a DisplayOject to the static layer using the relative parameters passed into the method. This allows for constrained layout of static items.
Parameterschild:UIComponent — The UIComponent object being added to the static layer
|
|
horizontalAlignment:String — The string value of the horizontal alignment -- "left", "right", "center"
|
|
verticalAlignment:String — The string value of the vertical alignment -- "top", "bottom", "middle"
|
|
horizontalOffset:Number (default = 0) — The numerical value by which to offset the object from the horizontal alignment (i.e., 20 pixels from the left)
|
|
verticalOffset:Number (default = 0) — The numerical value by which to offset the object from the vertical alignment (i.e., 20 pixels from the top)
|
See also
| getHeight | () | method |
public function getHeight():NumberRetrieves the height of the static layer.
ReturnsNumber — The height of the static layer.
|
| getWidth | () | method |
public function getWidth():NumberRetrieves the width of the static layer.
ReturnsNumber — The width of the static layer.
|
| removeOverlay | () | method |
public function removeOverlay(child:DisplayObject):voidRemoves the DisplayObject child from the static layer.
Parameterschild:DisplayObject — The DisplayObject to be remove.
|
var logo2:Image = new Image();
logo2.load("http://www.arcwebservices.com/v2006/images/home/free_trial.gif");
map.staticLayer.addOverlayRelative(logo2, "right", "bottom", 25, 25);
| removeOverlayByName | () | method |
public function removeOverlayByName(name:String):voidRemoves the DisplayObject child from the static layer based on its name.
Parametersname:String — the name of the DisplayObject.
|