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中解析。