FlexViewer在运行加载ViewerContainer之后,会首先通过HttpService加载config.xml文件,该文件通过ConfigManager获得ConfigXML,通过对ConfigXML的解析获得ConfigData。
对config.xml文件的解析,获得包括全局概念的属性设置(括号内为config.xml中的节点),包括
proxyUrl(httpproxy)、
BingKey(key)、
geometryService的url(geometryservice)、
title标题(title)、subtitle(subtitle)、logo(logo)、
widgetLayout(widgetlayout)、
widgetContainer的Layout、Left、ringt、top和bottom(layout、left、right、top和bottom)等等
map的属性包括:initial或full(initialextent/fullextent)、
Left、ringt、top和bottom(left、right、top和bottom)、
wkid(wkid)、wkt(wkt)、
zoomslider是否可见(zoomslidervisible)、
scalebar是否可见(scalebarvisible)、
esrilogo是否可见(esrilogovisible)、
lod的设置(父节点lods,子节点lod)、
basemap用于显示的地图服务(父basemaps子Layer)、
用于操作的地图服务(父operationallayers子layer)等等
Layer的属性包括:显示标签(Label)
地图类型(dynamic/tiled/bing/image/wms/arcims)
地图服务的url(url)
widget的属性包括:Label(label)、
Icon图标(icon)
config文件(config);
widget所对应的url,swf文件(url);
preload是否展开(preload);
x(x),y(y);
Left、ringt、top和bottom(left、right、top和bottom)等
开发者也可根据自定义,定制自己的标签。如果是全局的,需要在WidgetManager中解析,如果是和Map相关的,需要在MapManager中解析,如果和Widget相关,需要在WidgetManager中解析。
分享到:
相关推荐
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, ...
从网上搜的也有,自己的理解也有,对于掌握FlexViewer真不错
主要讲述了FlexViewer3.1版本,新增加的一些重要的特征
ESRI公司发布的flexviewer1.3框架的源代码
FlexViewer开发教程、开发指南、相关实例。
flexviewer2.3源代码 配合arcgis flex api2.3使用 开发工具flash builder4
FlexViewer2.3框架源码 可自由定制,开发自己的webgis
flexviewer的source code,2012年12月12日更新。
flexviewer简单登陆(新版本能用)
flex viewer 3.0 源码 下载
FlexViewer开发教程,挺不错的一个FlexViewer文档,帮助快速了解Flex框架。
ESRI-FlexViewer解析 了解FlexViewer内的一些控件和基础应用
FlexViewer配置管理器
改写FlexViewer2.4框架,将其用户界面改为FlexViewer1.3的样式。IDE FB4.5 SDK FLEX 4.5
flexviewer2.2版本,源代码 flexviewer2.2版本,源代码 flexviewer2.2版本,源代码 flexviewer2.2版本,源代码 flexviewer2.2版本,源代码
注意: 将该覆盖的文件覆盖之后,找到以下文件打开: FlexViewer\src\com\esri\solutions\flexviewer\nls\en_US\WidgetTemplateStrings.properties 然后在第三行中添加 dock=Re-dock
ESRI公司发布的flexviewer2.4框架的源代码,Flex Viewer是ArcGIS Viewer for Flex的简称, Flex Viewer是基于ArcGIS API for Flex(简称AGS Flex API)设计的一个WebGIS应用程序,用户可以通过修改配置文件、自定义...
flexviewer2.5框架 很经典
arcgis flex flexviewer ArcGIS Viewer for Flex 2.2 架构非常好,便于二次开发。