| 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.
<esri:ArcIMSMapServiceLayer
serviceHost="http://www.geographynetwork.com"
serviceName="ESRI_Snow"/>
<esri:Map>
<esri:ArcIMSMapServiceLayer
serviceHost="http://www.geographynetwork.com" serviceName="ESRI_World">
<mx:ArrayCollection>
<esri:visibleLayers>
<mx:String>Oceans and Seas</mx:String>
<mx:String>Countries and Regions</mx:String>
</esri:visibleLayers>
</mx:ArrayCollection>
</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
[read-only]
Initial extent as defined by the map service.
| ArcIMSMapServiceLayer | ||
![]() | isInScaleRange : Boolean
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
When the layer is loaded, the value becomes "true" and layer properties can be accessed.
| Layer | |
![]() | map : Map
A reference to the Map this layer is in.
| Layer | |
![]() | maxScale : Number = 0
The maximum scale of the layer [added in version 1.3].
| Layer | |
![]() | minScale : Number = 0
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
[read-only]
The spatial reference of the map service.
| ArcIMSMapServiceLayer | ||
| units : String [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:String [read-write]The background color in [0-255],[0-255],[0-255] string format.
The default value is 255,255,255 (white).
This property can be used as the source for data binding.
Implementation public function get backgroundColor():String
public function set backgroundColor(value:String):void
| backgroundTranscolor | property |
backgroundTranscolor:String [read-write]The background transparent color in [0-255],[0-255],[0-255] string format.
The default value is 255,255,255 (white).
This property can be used as the source for data binding.
Implementation public function get backgroundTranscolor():String
public function set backgroundTranscolor(value:String):void
| imageFormat | property |
imageFormat:String [read-write]The output image type. Valid types are: gif | jpg | png8 | png24.
The default value is png8.
This property can be used as the source for data binding.
Implementation public function get imageFormat():String
public function set imageFormat(value:String):void
| initialExtent | property |
initialExtent:Extent [read-only]Initial extent as defined by the map service. Used for the map if it's the first layer in the map and map doesn't have an extent specified.
This property can be used as the source for data binding.
Implementation 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.
Implementation public function get layerInfos():Array
See also
| password | property |
password:String [read-write]The password used to log in to the ArcIMS server. Only Basic authentication is supported.
This property can be used as the source for data binding.
Implementation public function get password():String
public function set password(value:String):void
| proxyURL | property |
proxyURL:String [read-write]The URL to proxy the request through.
This property can be used as the source for data binding.
Implementation public function get proxyURL():String
public function set proxyURL(value:String):void
| requestTimeout | property |
requestTimeout:int [read-write]The request timeout in seconds. A value less than or equal to zero prevents request timeout.
The default value is -1.
This property can be used as the source for data binding.
Implementation public function get requestTimeout():int
public function set requestTimeout(value:int):void
| serviceHost | property |
serviceHost:String [read-write]The base URL for the ArcIMS server.
This property can be used as the source for data binding.
Implementation public function get serviceHost():String
public function set serviceHost(value:String):void
| serviceName | property |
serviceName:String [read-write]The service name of the ArcIMS service to be called.
This property can be used as the source for data binding.
Implementation public function get serviceName():String
public function set serviceName(value:String):void
| spatialReference | property |
spatialReference:SpatialReference [read-only]The spatial reference of the map service.
This property can be used as the source for data binding.
Implementation public function get spatialReference():SpatialReference
| units | property |
units:String [read-only]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".
This property can be used as the source for data binding.
Implementation public function get units():String
See also
| username | property |
username:String [read-write]The user name used to log in to the ArcIMS server. Only Basic authentication is supported.
This property can be used as the source for data binding.
Implementation public function get username():String
public function set username(value:String):void
| visibleLayers | property |
visibleLayers:ArrayCollection [read-write]Sets the visible layers of the exported map. By default, the visible layers are as defined by the default visibility in LayerInfo.
This property can be used as the source for data binding.
Implementation public function get visibleLayers():ArrayCollection
public function set visibleLayers(value:ArrayCollection):void
See 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.