| Package | com.esri.ags.layers |
| Class | public class ArcIMSMapServiceLayer |
| Inheritance | ArcIMSMapServiceLayer DynamicMapServiceLayer Layer mx.core.UIComponent |
Note that ArcIMSMapServiceLayer, like all layers, extend UIComponent and thus include basic mouse events, for example, click, mouseOut, mouseOver, and mouseDown, as well as other events like show and hide, and general properties, such as alpha and visible.
Example: MXML usage of ArcIMSMapServiceLayer:
<esri:ArcIMSMapServiceLayer
serviceHost="http://www.geographynetwork.com"
serviceName="ESRI_Snow"/>
<esri:Map>
<esri:ArcIMSMapServiceLayer serviceHost="http://www.geographynetwork.com" serviceName="Census_TIGER2000">
<esri:visibleLayers>
<s:ArrayCollection>
<fx:String>U.S. States</fx:String>
<fx:String>Non-U.S. Land</fx:String>
<fx:String>Oceans and Seas</fx:String>
</s:ArrayCollection>
</esri:visibleLayers>
</esri:ArcIMSMapServiceLayer>
</esri:Map>See also
| Property | Defined By | ||
|---|---|---|---|
| backgroundColor : String
The background color in [0-255],[0-255],[0-255] string format. | ArcIMSMapServiceLayer | ||
| backgroundTranscolor : String
The background transparent color in [0-255],[0-255],[0-255] string format. | ArcIMSMapServiceLayer | ||
| imageFormat : String
The output image type. | ArcIMSMapServiceLayer | ||
| initialExtent : Extent [override] [read-only]
Initial extent as defined by the map service. | ArcIMSMapServiceLayer | ||
![]() | 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 | |
| layerInfos : Array [read-only]
The available layers in the map service and their default visibility. | ArcIMSMapServiceLayer | ||
![]() | 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 | |
![]() | 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 | |
| password : String
The password used to log in to the ArcIMS server. | ArcIMSMapServiceLayer | ||
| proxyURL : String
The URL to proxy the request through. | ArcIMSMapServiceLayer | ||
| requestTimeout : int
The request timeout in seconds. | ArcIMSMapServiceLayer | ||
| serviceHost : String
The base URL for the ArcIMS server. | ArcIMSMapServiceLayer | ||
| serviceName : String
The service name of the ArcIMS service to be called. | ArcIMSMapServiceLayer | ||
| spatialReference : SpatialReference [override] [read-only]
The spatial reference of the map service. | ArcIMSMapServiceLayer | ||
| units : String [override] [read-only]
The units of the layer. | ArcIMSMapServiceLayer | ||
| username : String
The user name used to log in to the ArcIMS server. | ArcIMSMapServiceLayer | ||
| visibleLayers : ArrayCollection
Sets the visible layers of the exported map. | ArcIMSMapServiceLayer | ||
| Method | Defined By | ||
|---|---|---|---|
ArcIMSMapServiceLayer(serviceHost:String = null, serviceName:String = null, proxyURL:String = null, username:String = null, password:String = null)
Creates a new ArcIMS layer. | ArcIMSMapServiceLayer | ||
defaultVisibleLayers():void
Clears the visible layers as defined in visibleLayers and resets to the default layers of the map service. | ArcIMSMapServiceLayer | ||
![]() | refresh():void
Causes the layer to redraw or reload its content. | Layer | |
| backgroundColor | property |
backgroundColor:StringThe background color in [0-255],[0-255],[0-255] string format.
The default value is 255,255,255 (white).
public function get backgroundColor():String public function set backgroundColor(value:String):void| backgroundTranscolor | property |
backgroundTranscolor:StringThe background transparent color in [0-255],[0-255],[0-255] string format.
The default value is 255,255,255 (white).
public function get backgroundTranscolor():String public function set backgroundTranscolor(value:String):void| imageFormat | property |
imageFormat:StringThe output image type. Valid types are: gif | jpg | png8 | png24.
The default value is png8.
public function get imageFormat():String public function set imageFormat(value:String):void| initialExtent | property |
initialExtent:Extent [read-only] [override] Initial extent as defined by the map service. Used by the map if it is the first layer in the map and map doesn't have an extent specified.
public function get initialExtent():Extent| layerInfos | property |
layerInfos:Array [read-only] The available layers in the map service and their default visibility.
This property can be used as the source for data binding.
public function get layerInfos():ArraySee also
| password | property |
password:StringThe password used to log in to the ArcIMS server. Only Basic authentication is supported.
public function get password():String public function set password(value:String):void| proxyURL | property |
proxyURL:StringThe URL to proxy the request through.
public function get proxyURL():String public function set proxyURL(value:String):void| requestTimeout | property |
requestTimeout:intThe request timeout in seconds. A value less than or equal to zero prevents request timeout.
The default value is -1.
public function get requestTimeout():int public function set requestTimeout(value:int):void| serviceHost | property |
serviceHost:StringThe base URL for the ArcIMS server.
public function get serviceHost():String public function set serviceHost(value:String):void| serviceName | property |
serviceName:StringThe service name of the ArcIMS service to be called.
public function get serviceName():String public function set serviceName(value:String):void| spatialReference | property |
spatialReference:SpatialReference [read-only] [override] The spatial reference of the map service.
public function get spatialReference():SpatialReference| units | property |
units:String [read-only] [override] The units of the layer. Subclasses should override this method as a best practice in case a subclassed layer is added to a map which has different "units".
public function get units():StringSee also
| username | property |
username:StringThe user name used to log in to the ArcIMS server. Only Basic authentication is supported.
public function get username():String public function set username(value:String):void| visibleLayers | property |
visibleLayers:ArrayCollectionSets the visible layers of the exported map. By default, the visible layers are as defined by the default visibility in LayerInfo.
public function get visibleLayers():ArrayCollection public function set visibleLayers(value:ArrayCollection):voidSee also
| ArcIMSMapServiceLayer | () | Constructor |
public function ArcIMSMapServiceLayer(serviceHost:String = null, serviceName:String = null, proxyURL:String = null, username:String = null, password:String = null)Creates a new ArcIMS layer.
ParametersserviceHost:String (default = null) — The base URL for the ArcIMS server.
| |
serviceName:String (default = null) — The service name of the ArcIMS service to be called.
| |
proxyURL:String (default = null) — The URL to proxy the request through.
| |
username:String (default = null) — The user name used to log in to the ArcIMS server.
| |
password:String (default = null) — The password used to log in to the ArcIMS server.
|
| defaultVisibleLayers | () | method |
public function defaultVisibleLayers():voidClears the visible layers as defined in visibleLayers and resets to the default layers of the map service.