使用Flex开发WebGIS应用

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

ESRIChina(Beijing)LearningCenter使用Flex开发WebGIS应用贾庆雷jiaqinglei@gmail.comFlexAPI•googlemapflashapi•openscales•arcgisapiforflexWebGISFlexdemo•Googlemapflashapi•Oakland•FlexViewerArcGISAPIforFlex2.0•开发环境–AdobeFlashBuilder4•运行环境–FlashPlayer10•服务器–ArcGISServer10ArcGISServer10RESTAPI•编辑(FeatureService)•具有时间特征的图层•独立的表格•GeometrySerivce(12个新功能)–Autocomplete,ConvexHull,Cut,Densify,Difference,Distance,Generalize,Intersect,Offset,Reshape,Trim/Extend,andUnion.FlexAPI2.0•FeatureLayer•编辑功能支持•Clustering•地图、图层•工具条•查询•Geoprocessing•Graphic•……地图图层•图层–ArcGISDynamicMapServiceLayer–ArcGISTiledMapServiceLayer–FeatureLayer–GraphicLayer–OpenStreetMapLayer–…importcom.esri.Map;publicvarmap:Map=newMap();map.showSlider=true;工具条–导航•Zoomin•Zoomout•Pan•PreviousExtent•NextExtent•FullExtentnavToolbar.activate(Navigation.ZOOM_IN);工具条–绘制•GeometryType–Point–MultiPoint–Line–Polyline–Polygon–Rectangle–FreePolyline–FreePolygon•Events–drawEnd–drawStartdrawToolbar.activate(Draw.POLYLINE);查询•Query•QueryTask•FeatureSetesri:QueryTaskid=“queryTask”url=“=“true/esri:Queryid=queryoutFields=[STATE_NAME,POP2000,POP2007]returnGeometry=falsetext={stateName.text}/查询性能优化•查询结果–绘制速度PointPolyline,Polygon•控制返回内容–Query:outFields–Query:returnGeometry•防止恶意访问–where1=1•控制最大返回记录数–MaxRecordCountFeatureLayer•父类:Graphicslayer•数据下载到客户端•FlashPlayer负责完成绘制•类似WFS对象(OpenScales)•服务器端:ArcGISServer10esri:FeatureLayergraphicAdd=featurelayer1_graphicAddHandler(event)outFields=[FIPS,POP2000]“url=:FeatureLayerFeatureLayer•查询•选择•Web编辑•响应鼠标事件–click,hover.•设置条件,过滤显示要素–DefinitionexpressionsFeatureLayer•获取要素的方式–Ondemandmode(默认值)•按照当前地图范围请求必要的要素–Snapshotmode•用于小数据量的图层–Selectionmode•用于选择、查询结果展示等编辑•FeatureService•数据源ArcSDEgeodatabase•最后提交原则esri:Editorid=myEditorgeometryService={myGeometryService}height=200“featureLayers=[airline]map={myMap}width=100%/Clustering•FeatureLayer:clusterer•WeightedClusterer•FlareSymbolesri:FeatureLayerid=featureLayerclusterer={clusterer}mode=snapshot“url=图层•extendsDynamicMapServiceLayer_params=newURLVariables();_params.request=GetMap;_params.format=image/png;_params.exceptions=application/vnd.ogc.se_inimage;_params.version=1.1.1;_params.layers=diversity;//GeoServer地图服务varurl:String==newURLRequest(url);_urlRequest.data=_params实例演示•GeoServerWMS•FlexAPI+googlemap•Clustering谢谢

1 / 20
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功