由于工作需要, 我被调到二部去做一个关于GIS相关的产品。产品的目标是希望能集百家之长,功能完整,可以定制,为将来公司做项目提供一个快速的二次开发平台。
费话不多说,开始讲项目开发的步骤。
flex viewer具体就不多讲了, 是一个arcgis 与flex的整合框架.
这个平台主要是靠config.xml这个配制文件。
现在就讲讲这个配制文件的各项配制。
费话不多说,开始讲项目开发的步骤。
flex viewer具体就不多讲了, 是一个arcgis 与flex的整合框架.
这个平台主要是靠config.xml这个配制文件。
现在就讲讲这个配制文件的各项配制。
<configuration>
<userinterface>
<banner>visible</banner>
<title>Flex Viewer</title>
<subtitle>Powered by ArcGIS Server</subtitle>
<logo>com/esri/solutions/flexviewer/assets/images/logo.png</logo>
<stylesheet>com/esri/solutions/flexviewer/themes/darkangel/style.swf</stylesheet>
<menus>
<menu id="menuMap" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_globe.png">Map</menu>
<menu id="menuNav" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_nav.png">Navigation</menu>
<menu id="menuWidgets" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_widget.png">Tools</menu>
<menu id="menuHelp" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_help.png">Help</menu>
</menus>
</userinterface>
<map initialExtent="-179.999999 -89.999999 179.999999 89.999999" fullExtent="-179.999999 -89.999999 179.999999 89.999999">
<basemaps menu="menuMap">
<mapservice label="Satellite Map" type="tiled" visible="false" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_shuttle.png">[color=red]http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer[/color][b](1)[/b]</mapservice>
</basemaps>
<livemaps>
<mapservice label="Louisville Landbase" type="dynamic" visible="false" alpha="0.4">http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer</mapservice>
</livemaps>
</map>
<navtools>
<navtool label="Zoom In" icon="com/esri/solutions/flexviewer/assets/images/icons/i_zoomin.png" menu="[color=red]menuNav[/color][b](2)[/b]">zoomin</navtool>
<navtool label="Zoom Out" icon="com/esri/solutions/flexviewer/assets/images/icons/i_zoomout.png" menu="[color=red]menuNav[/color]">zoomout</navtool>
<navtool label="Full Extent" icon="com/esri/solutions/flexviewer/assets/images/icons/i_zoomfull.png" menu="[color=red]menuNav[/color]">zoomfull</navtool>
<navtool label="Re-center Map" icon="com/esri/solutions/flexviewer/assets/images/icons/i_pan.png" menu="[color=red]menuNav[/color]">pan</navtool>
</navtools>
<widgets>
<widget label="Live Maps" icon="com/esri/solutions/flexviewer/assets/images/icons/i_folder.png" menu="menuMap" config="com/esri/solutions/flexviewer/widgets/LiveMapsWidget.xml">com/esri/solutions/flexviewer/widgets/LiveMapsWidget.swf</widget>
<widget label="Overview Map" preload="minimized" icon="com/esri/solutions/flexviewer/assets/images/icons/i_overview.png" menu="menuMap" config="com/esri/solutions/flexviewer/widgets/OverviewMapWidget.xml">com/esri/solutions/flexviewer/widgets/OverviewMapWidget.swf</widget>
<widget label="Bookmarks" preload="minimized" icon="com/esri/solutions/flexviewer/assets/images/icons/i_bookmark.png" menu="menuMap" config="com/esri/solutions/flexviewer/widgets/BookmarkWidget.xml">com/esri/solutions/flexviewer/widgets/BookmarkWidget.swf</widget>
<widget label="Print" icon="com/esri/solutions/flexviewer/assets/images/icons/i_print.png" menu="menuMap" config="com/esri/solutions/flexviewer/widgets/PrintWidget.xml">com/esri/solutions/flexviewer/widgets/PrintWidget.swf</widget>
<widget label="Earthquakes" icon="com/esri/solutions/flexviewer/assets/images/icons/i_rss.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/GeoRSSWidget.xml">com/esri/solutions/flexviewer/widgets/GeoRSSWidget.swf</widget>
<widget label="Locate" icon="com/esri/solutions/flexviewer/assets/images/icons/i_pushpin.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/LocateWidget.xml">com/esri/solutions/flexviewer/widgets/LocateWidget.swf</widget>
<widget label="Police Facilities" icon="com/esri/solutions/flexviewer/assets/images/icons/i_policestation.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/LiveLayerWidget_Police.xml">com/esri/solutions/flexviewer/widgets/LiveLayerWidget.swf</widget>
<widget label="Traffic Cameras" icon="com/esri/solutions/flexviewer/assets/images/icons/i_camera.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/LiveLayerWidget_TrafficCameras.xml">com/esri/solutions/flexviewer/widgets/LiveLayerWidget.swf</widget>
<widget label="Search" icon="com/esri/solutions/flexviewer/assets/images/icons/i_search.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/SearchWidget.xml">com/esri/solutions/flexviewer/widgets/SearchWidget.swf</widget>
<widget label="Draw" icon="com/esri/solutions/flexviewer/assets/images/icons/i_draw.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/DrawWidget.xml">com/esri/solutions/flexviewer/widgets/DrawWidget.swf</widget>
<widget label="Service Area" icon="com/esri/solutions/flexviewer/assets/images/icons/i_servicearea.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/ServiceAreaWidget.xml">com/esri/solutions/flexviewer/widgets/ServiceAreaWidget.swf</widget>
<widget label="About" icon="com/esri/solutions/flexviewer/assets/images/icons/i_about.png" menu="menuHelp" config="com/esri/solutions/flexviewer/widgets/AboutWidget.xml">com/esri/solutions/flexviewer/widgets/AboutWidget.swf</widget>
</widgets>
<links>
<link label="Help" icon="com/esri/solutions/flexviewer/assets/images/icons/i_help.png" menu="menuHelp">help.html</link>
<link label="Home" icon="com/esri/solutions/flexviewer/assets/images/icons/i_home.png" menu="menuHelp">http://www.esri.com</link>
<link label="Resources" icon="com/esri/solutions/flexviewer/assets/images/icons/i_resources.png" menu="menuHelp">http://resources.esri.com</link>
</links>
<!--<proxytype>php</proxytype> apache|jsp|asp|php --><!-- 注意:这里如果是默认的用php来做代理进行测试, 会报错,显示不出数据来 所以要把这一行注掉 -->
</configuration>