数据源层包括:缓存或动态地图服务和Bing地图
<layer>是一个地图服务,在浏览器显示的层。
label-名称层
type-层类型属性
1.tiled:a cached ArcGIS Map Service
2.dynamic:a non-cached ArcGIS Map Service
3.feature:a single layer in an ArcGIS Map Service or Feature Service
4.bing:Microsoft Bing layer
5.image:an ArcGIS Server Image Service
6.arcims:an ArcIMS Service (web)
7.osm:Base map from
8.wms:a WMS service
alpha-调整图层的透明度
autorefresh-多少秒刷新层(适用于类型动态或ArcIMS层)
displaylevels-要指定比例级别这层应该显示在(适用于tiled和bing)
imageforma-要制定一个特定的图像输出格式,如PNG,针对不同的图层类型支持的图像格式:
Dynamic:png8, png24. png32, jpg and gif
Image:jpgpng, png8, png24, png32, jpg and gif
ArcIMS:gif, jpg, png8 and png24
WMS:png, jpg and gif
token-Token值用于访问ArcGIS Server服务安全。仅适用于层从ArcGIS服务器,如动态,功能,图像或平铺来(dynamic, feature, image or tiled)。
url-URL位置的地图服务。不适用于类型为“兵”或“ArcIMS的”层。所需的其他层,除了“OSM”。
useproxy-用于地图服务,有一个代理服务器。布尔值,默认为false。
usemaptime-用于时间感知的地图服务(如动态,功能或图像)。布尔值,默认是true。结合实用与时间滑块部件,使您的时间感知层有些忽略自己的时间意识。在推出2.2版。
visible-确定图层是否可见或不适用时,第一次打开。布尔值,默认为“false”。
visiblelayers-哪个子层显示在应用程序第一次打开。默认为指定的服务器上。仅适用于动态,ArcIMS和WMS。对于WMS是必需的或没有子层将显示
Child tag specific to layers of type dynamic and tiles
<sublayer>支持以下属性:
1.id-身份证内的地图服务子层,通常是一个数字。
2.popupconfig- URL的XML配置文件中的弹出窗口。有关更多信息,弹出配置文件。
Attributes specific for layers of type image:
bandids- 逗号分隔的列表,其中带ID(S)使用特定的影像服务。 [可选]
Attributes specific for layers of type feature:
popupconfig- URL的XML配置文件中的弹出窗口。同类型的"dynamic", "tiled" and "feature".
info- URL的信息部件。提示:使用popupconfig而不是信息/ infoconfig
infoconfig - 网址为信息窗口部件的XML配置文件。提示:使用popupconfig而不是信息/ infoconfig。
mode - 指缓存模式使用。有效值是OnDemand和快照。
definitionexpression- 限制了人们对地图服务层的可用功能的子集数据。类似于在ArcMap图层定义查询。
useamf - 是指客户端和服务器之间的消息格式 - 使用AMF的JSON代替。
Attributes specific for ArcIMS:
servicehost - ArcIMS服务器的URL
servicename - ArcIMS服务的名称。
Attributes specific for WMS:
skipgetcapabilities- 是否跳过最初的请求得到的能力。如果设置为true skipgetcapabilities网站主办WMS服务不提供跨域策略文件,你没有一个代理页面。
version- 版本使用时,要求WMS地图。允许的值是1.1.0,1.1.1或1.3.0。
wkid-覆盖发送到WMS服务器WKID。仅在需要的WMS服务器不理解你的地图的wkid。