| Package | com.esri.ags.layers |
| Class | public class MapImageLayer |
| Inheritance | MapImageLayer Layer mx.core.UIComponent |
Default MXML PropertymapImageProvider
See also
| Property | Defined By | ||
|---|---|---|---|
| initialExtent : Extent [override]
Initial extent of the layer. | MapImageLayer | ||
![]() | isInScaleRange : Boolean [read-only]
Returns true if the current scale of the map is between the maximum and minimum scale of the layer [added in version 1.3]. | Layer | |
![]() | loaded : Boolean [read-only]
When the layer is loaded, the value becomes "true" and layer properties can be accessed. | Layer | |
![]() | loadFault : Fault [read-only]
A reference to the fault that is dispatched when the layer throws a loadError event. | Layer | |
![]() | map : Map [read-only]
A reference to the Map this layer is in. | Layer | |
| mapImageProvider : Object
Set of images to be viewed. | MapImageLayer | ||
![]() | maxScale : Number
The maximum scale of the layer [added in version 1.3]. | Layer | |
![]() | minScale : Number
The minimum scale of the layer [added in version 1.3]. | Layer | |
![]() | spatialReference : SpatialReference [read-only]
The spatial reference of the layer. | Layer | |
![]() | units : String [read-only]
The units of the layer. | Layer | |
| Method | Defined By | ||
|---|---|---|---|
Creates a new MapImageLayer
| MapImageLayer | ||
Add an image to the map. | MapImageLayer | ||
getImageVisibility(mapImage:MapImage):Boolean
Gets the current visibility of the input MapImage. | MapImageLayer | ||
![]() | refresh():void
Causes the layer to redraw or reload its content. | Layer | |
Remove the specified image from the layer. | MapImageLayer | ||
removeAll():void
Remove all images from the layer. | MapImageLayer | ||
setImageVisibility(mapImage:MapImage, isVisible:Boolean):void
Set the visibility for the image. | MapImageLayer | ||
| initialExtent | property |
initialExtent:Extent[override] Initial extent of the layer. Used by the map if it is the first layer in the map and map doesn't have an extent specified.
The default value is new Extent(-180, -90, 180, 90, new SpatialReference(4326)).
public function get initialExtent():Extent public function set initialExtent(value:Extent):void| mapImageProvider | property |
mapImageProvider:Object
Set of images to be viewed.
This property lets you use either an Array, an ArrayCollection.
If you set the mapImageProvider property to an Array,
it will be converted to an ArrayCollection.
If you set the property to an ArrayCollection, it will be used directly.
If you set the property to a single MapImage, it will be wrapped in a new ArrayCollection.
As a consequence of the conversions, when you get the
mapImageProvider property, it will always be
an ArrayCollection.
The default value is an empty ArrayCollection.
This property can be used as the source for data binding.
public function get mapImageProvider():Object public function set mapImageProvider(value:Object):voidSee also
| MapImageLayer | () | Constructor |
public function MapImageLayer()Creates a new MapImageLayer
| add | () | method |
public function add(mapImage:MapImage):voidAdd an image to the map. The Map Image extent should have the same coordinate system as the map and be within the map's extent.
Parameters
mapImage:MapImage |
| getImageVisibility | () | method |
public function getImageVisibility(mapImage:MapImage):BooleanGets the current visibility of the input MapImage.
Parameters
mapImage:MapImage |
Boolean |
| remove | () | method |
public function remove(mapImage:MapImage):voidRemove the specified image from the layer.
Parameters
mapImage:MapImage |
| removeAll | () | method |
public function removeAll():voidRemove all images from the layer.
| setImageVisibility | () | method |
public function setImageVisibility(mapImage:MapImage, isVisible:Boolean):voidSet the visibility for the image.
Parameters
mapImage:MapImage | |
isVisible:Boolean |