ArcGIS Viewer for Flex(Layer 层?标签)
? 数据为ArcGIS的Flex应用程序查看器的内容被定义为层。 A层引用的Web服务正在访问的浏览器。该浏览器支持,比如很多不同的数据源层:缓存或动态地图服务和Bing地图。它可以显示或底图层
? <layer>- 这是一个地图服务,在浏览器显示的层。它必须包含在一个或是标记,它是在一个封闭的 label?- 名称层。 type -?可能的层类型有: ?
? alpha- 调整图层的透明度/不透明度。值的范围从0.0(透明)到1.0(不透明)。默认为1.0。 autorefresh -?多久(秒)刷新层(在服务器上时非常有用的数据经常变动)。仅适用于类型动态或ArcIMS的层。 displaylevels -?要指定比例级别这层应该显示在。仅适用于tiled和bing层。 imageforma -?要指定一个特定的图像输出格式,例如PNG,。针对不同的图层类型支持的图像格式: ? ? ? ? ? ??
? ? ? ?? ? 注:为jpgpng格式的支持是在ArcGIS Server的10.0增加。这种格式返回一个JPG如果在所要求的程度没有透明像素,否则返回一个PNG。 ? 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>支持以下属性:
? Attributes specific for layers of type image:
? ? Attributes specific for layers of type feature:
? ? Attributes specific for Bing Maps:
? ? Attributes specific for ArcIMS:
? Attributes specific for WMS:? ?
在config.xml文件中的代码示例: ? 故障排除技巧: 如果您的浏览器上的Flex比ArcGIS或ArcIMS的层不同的域是要添加,然后用ArcGIS或ArcIMS的机器需要有一个crossdomain.xml文件。 在ArcIMS的所有9.x的版本支持一般,但??不是所有理解新空间参考。如果你的底图使用的是较新的投影,那么你的ArcIMS服务器可能不知道如何处理它。对于动态和平铺服务网址一般应结束/地图服务器,也包含/休息/。对于一个功能层的网址应该以一个数字,例如/地图服务器/ 0时,与地图服务或功能服务中。当影像服务中使用,一个功能层的URL应该结束在/地图服务器。 ?
All 9.x versions of ArcIMS are supported in general,but not all of them understand newer spatial references. If your basemap is using a newer projection,then your ArcIMS server might not know how to handle it. The URL for dynamic and tiled services should normally end in /MapServer and also contain /rest/. The URL for a feature layer should end with a number,for example /MapServer/0 when used with a Map Service or Feature Service. When used with an Image Service,the URL for a feature layer should end in /MapServer. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |