天津政府应急系统之GIS一张图(arcgis api for flex)讲解(五)地图切换以及图层显示模块
config.xml文件的配置如下:
<widget right="20" top="55"
config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf" />
源代码目录如下:

该模块的源代码原理解析,详细的代码在下载的开源flexviewer自带的:
大概的思路如下:MapSwitcherWidget.xml是模块的配置文件,MapSwitcherWidget.mxml是widget;
MapSwitcherWidget.xml:layerlist是图层列表里面的图层数据,excludelayer是选择排除的图层
<?xml version="1.0" ?>
<configuration>
<layerlist visible="true">
<!-- <excludelayer>The Label Of Some Layer In Main Config File</excludelayer> -->
</layerlist>
</configuration>
config.xml文件:map节点里面配置
<operationallayers>
<layer label="企业" type="feature" visible="false" alpha="1.0"
url="http://localhost:6080/arcgis/rest/services/nsBusiness/FeatureServer/7"
popupconfig="popups/PopUp_Ecoomy.xml">
</layer>
<layer label="物资装备" type="feature" visible="false" alpha="1.0"
url="http://localhost:6080/arcgis/rest/services/nsBusiness/FeatureServer/2"
popupconfig="popups/PopUp_Materials_equipment.xml">
</layer>
<layer label="庇护场所" type="feature" visible="true" alpha="1.0"
url="http://localhost:6080/arcgis/rest/services/nsBusiness/FeatureServer/4"
popupconfig="popups/PopUp_Refuge.xml">
</layer>
<layer label="保护对象" type="feature" visible="true" alpha="1.0"
url="http://localhost:6080/arcgis/rest/services/nsBusiness/FeatureServer/5"
popupconfig="popups/PopUp_Protection.xml">
</layer>
<layer label="应急仓库" type="feature" visible="false" alpha="1.0"
url="http://localhost:6080/arcgis/rest/services/nsBusiness/FeatureServer/6"
popupconfig="popups/PopUp_Warehouse.xml">
</layer>
<layer label="救援队伍" type="feature" visible="false" alpha="1.0"
url="http://localhost:6080/arcgis/rest/services/nsBusiness/FeatureServer/3"
popupconfig="popups/PopUp_Rescue_teams.xml">
</layer>
<layer label="应急专家" type="feature" visible="false" alpha="1.0"
url="http://localhost:6080/arcgis/rest/services/nsBusiness/FeatureServer/1"
popupconfig="popups/PopUp_Experts.xml">
</layer>
<layer label="危险隐患" type="feature" visible="true" alpha="1.0"
url="http://localhost:6080/arcgis/rest/services/nsBusiness/FeatureServer/0"
popupconfig="popups/PopUp_DangerSource.xml">
</layer>
</operationallayers>
这里配置图层列表的具体图层数据
<basemaps>
<layer label="南沙地图" type="tiled" visible="true" alpha="1" url="http://localhost:6080/arcgis/rest/services/ns_new/MapServer" />
</basemaps>
这里可以配置不同的切换底图
备注:
GIS技术交流QQ群:432512093
天津政府应急系统之GIS一张图(arcgis api for flex)讲解(五)地图切换以及图层显示模块的更多相关文章
- 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(一)GIS一张图的系统开发环境以及flexviewer框架
系统的GIS功能实现是基于arcgis api for flex,首先附上系统的主界面图,接下来的是对主界面的模块功能详细讲解: 一.GIS环境软件安装 (1)arcgis desktop的安装,要是 ...
- 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(十)态势标绘模块
config.xml文件的配置如下: <widget label="态势标绘" icon="assets/images/impact_area_over.png&q ...
- 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(八)资源搜索模块
config.xml文件的配置如下: <widget label="资源搜索" icon="assets/images/public_impact_over.png ...
- 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(二)鹰眼模块
讲解GIS功能模块实现之前,先大概说一下flexviewer的核心配置文件config.xml,系统额GIS功能widget菜单布局.系统的样式.地图资源等等都是在这里配置的,这里对flexviewe ...
- 天津政府应急系统之GIS一张图(arcgis api for flex)解说(二)鹰眼模块
解说GIS功能模块实现之前,先大概说一下flexviewer的核心配置文件config.xml,系统额GIS功能widget菜单布局.系统的样式.地图资源等等都是在这里配置的,这里对flexviewe ...
- 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(十三)台风模块
config.xml文件的配置如下: <widget label="台风" icon="assets/images/typhoon.png" config ...
- 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(十一)路径导航模块
config.xml文件的配置如下: <widget label="路径导航" icon="assets/images/lujingdaohang.png" ...
- 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(六)地图搜索模块
config.xml文件的配置如下: <widget label="地图搜索" icon="assets/images/emergency_resource_ove ...
- 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(四)地图导航控件模块
config.xml文件的配置如下: <widget left="10" top="50" config="widgets/Navigation ...
- 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(三)显示地图坐标系模块
config.xml文件的配置如下: <widget left="3" bottom="3" config="widgets/Coordinat ...
随机推荐
- js实现多张图片每隔一秒换一张图片
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlkAAAHWCAIAAADLlAuAAAAgAElEQVR4nOzd5XNc157w+/l7bt2n6t
- 2012-09-10 23:30 如何解决HtmlAgilityPack得到的InnerText中有残留的script、样式的问题
那么如何解决HtmlAgilityPack得到的InnerText中有残留的script.样式的问题呢,在google上搜索“HtmlAgilityPack script innerText”找到了s ...
- Web API接口之FileReader
Web API接口之FileReader *:first-child { margin-top: 0 !important; } body>*:last-child { margin-botto ...
- Ruby之基础介绍(二)
前言 上一篇我们简单介绍了下Ruby,这一节我们开始正式步入Ruby的世界,一探究竟. Ruby特点 (1)面向对象支持. (2)动态语言:我们可以修改已经定义过的类,也可以为现有类添加实例方法. ( ...
- Mac下有道笔记本问题反馈
1).Mac笔记上的编辑状态框非常的小.操作起来不是非常的方便.可以把显示稍微放大一些. 2). 新建笔记本的时候,这里用户可能没有注意到这里可以输入,此时这里的高亮的颜色可以适当的修改成别的颜色. ...
- 为什么更喜欢Outlook,而不是Gmail
让我写这篇博客主要前段时间dudu写了一篇关于Google Gmail年龄限制问题,导致博客园管理员Gmail账号会被删除,里面的邮件无法迁移出来.围观地址:http://www.cnblogs.co ...
- 【原生态】Http请求数据 与 发送数据
今天项目组小弟居然问我怎么用java访问特定的地址获取数据和发送请求 Http请求都是通过输入输出流来进行操作的,首先要制定GET或者POST,默认是GET,在安全和数据量较大情况下请使用post 根 ...
- Deferred在jQuery和Angular中的使用与简单实现
Deferred在jQuery和Angular中的使用与简单实现 Deferred是在jQuery1.5版本中加入的,并且jQuery使用它完全重写了AJax,以前也只是偶尔使用.但是上次在使用Ang ...
- Quartz 在 Spring 中如何动态配置时间--转
原文地址:http://www.iteye.com/topic/399980 在项目中有一个需求,需要灵活配置调度任务时间,并能自由启动或停止调度. 有关调度的实现我就第一就想到了Quartz这个开源 ...
- ZOJ Problem Set - 1109 Language of FatMouse
这道题目最让人头疼的就是该题的input怎么结束,因为它要求输入一个空行的时候则一串字符串输入结束,这就不得不让人绕个弯来解决这个问题. (注:本人习惯于使用C中的字符串操作,但是用到map要求使用s ...