http://135.33.9.92:8399/arcgis/rest/services/QJCache/MapServer
http://135.33.9.92:8399/arcgis/rest/services/QJGrid/MapServer
http://135.33.9.92:8399/arcgis/rest/services/Geometry/GeometryServer
帮助文档:http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html
1.flex访问跨域的ArcGIS Server服务出现了安全沙箱错误,运行的时候出不来地图,
需要在远程的Web服务器根目录下放置一个“crossdomain.xml”安全策略文件
<?xml version="1.0" ?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd" >
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all" />
<allow-access-from domain="*" />
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>
安全策略文件需要被放到特定的位置
ArcGIS Server for .Net应该是IIS的根目录(如:C:\Inetpub\wwwroot)
ArcGIS Server for Java应该是web_output目录(如:C:\ProgramFiles\ArcGIS\java\web_output)
2.MXML.XML文件
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:esri="http://www.esri.com/2008/ags"
pageTitle="Example - ArcGIS API for Flex connecting to a tiled AGS service"
styleName="plain" >
<mx:Text text="This is a tiled Map Service from ArcGIS Online." width="100%"/>
<!-- //http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer -->
<esri:Map id="myMap" logoVisible="false" styleName="myMapStyle">
<esri:ArcGISTiledMapServiceLayer url="http://135.33.9.92:8399/arcgis/rest/services/QJCache/MapServer"/>
<esri:ArcGISDynamicMapServiceLayer url="http://135.33.9.92:8399/arcgis/rest/services/QJGrid/MapServer"
id="myDynamicService" alpha="0.9"
>
<esri:layerDefinitions>
<mx:Array>
<mx:String></mx:String> <!-- 网格专题图 (1) -->
<mx:String></mx:String> <!-- 网格逻辑视图 (3) -->
</mx:Array>
</esri:layerDefinitions>
</esri:ArcGISDynamicMapServiceLayer>
<esri:GraphicsLayer id="mapGraphicsLayer" />
<esri:GraphicsLayer id="graphicsLayer" />
</esri:Map>
</mx:Application>
分享到:
相关推荐
Web GIS开发,flex,ArcGIS Server入门
FLex+GIS开发
flexview gis 中文开发帮助 很好的开发资料,很稀少,看了之后会对flexview架构
NULL 博文链接:https://qinchaoyong.iteye.com/blog/974907
AdobeFlex框架中的视频GIS系统设计与开发
Flex Gis的开发实例,能够很好地对初学者起到作用,实例的讲解很详细
使用Flex开发WebGIS项目,反权重距离插值IDW代码示例,可供大家学习参考。
Web GIS开发--flex+ArcGIS Server演示讲义
Flex开发WEBGIS编程的图解教程,内容详实详尽,是使用Flex开发GIS项目的良好的学习资料
使用Flex_API开发WebGIS应用.pdf 浅谈软件开发项目中的沟通管理.pdf 开源空间信息软件.pdf 开源地图客户端软件说明.pdf 基于数字地球平台的地理信息服务.pdf 基于Web的空间数据库查询技术研究.pdf 基于WebGIS...
arcgis for flex 为flex开发提供示例等
esri的gis开发框架,是测试版的,里面带有详细的例子程序,很容易上手
ArcGIS专业级介绍及silverlight和flex开发 内部资料
flex gis开发坐标转换 源代码
WebGIS 应用示例,有需要开WEBGIS的程序员可以好好参考!
flex基础,flex for gis开发;flex实例开发,是一个入门的好教材
FLEX_Geoserver开发步骤 经典 实用
使用ArcGIS For Flex API开发WebGIS的开发教程
\基于开源技术构建房产GIS图形管理系统.pdf