加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ArcGIS API for Flex - 搭建环境

发布时间:2020-12-15 04:32:06 所属栏目:百科 来源:网络整理
导读:1.下载最新版Flash Builder。 Adobe Flash Builder 4.7 | English | Windows 64-bit | 1012.3MB 地址:http://trials3.adobe.com/AdobeProducts/FLBR/4_7/win64/FlashBuilder_4_7_LS10_win64.exe 2.安装试用版。 3.修改配置信息。 3.1?C:Program FilesAdob

1.下载最新版Flash Builder。

Adobe Flash Builder 4.7 | English | Windows 64-bit | 1012.3MB

地址:http://trials3.adobe.com/AdobeProducts/FLBR/4_7/win64/FlashBuilder_4_7_LS10_win64.exe

2.安装试用版。

3.修改配置信息。

3.1?C:Program FilesAdobeAdobe Flash Builder 4.7 (64 Bit)eclipsepluginscom.adobe.flexbuilder.project_4.7.0.349722META-INFMANIFEST.MF

line 34: Bundle-Version: 4.7.0.349722 ->Bundle-Version:0.0.0

3.2?C:Program FilesAdobeAdobe Flash Builder 4.7 (64 Bit)eclipsefeaturescom.adobe.flexide.feature_4.7.0.349722feature.xml

line?87: ? ?<plugin
? ? ? ? ?id="com.adobe.flexbuilder.project"
? ? ? ? ?download-size="0"
? ? ? ? ?install-size="0"
? ? ? ? ?version="4.7.0.349722"/> ?->?version="0.0.0"

4.拷贝文件。

C:Program FilesAdobeAdobe Flash Builder 4.7 (64 Bit)eclipsepluginscom.adobe.flexbuilder.flex_4.7.0.349722
config.xml -> config_builder.xml

附:启动界面

参考资料:http://wenku.baidu.com/view/86ccc98d83d049649b6658e0.html

-------------------------------------------------------------------------------------------- ?我是分割线 ?--------------------------------------------------------------------------------------------

下载ArcGIS API 3.1 for Flex

地址:http://www.esri.com/apps/products/download/index.cfm

===============
Getting Started
===============
1. In Adobe Flash Builder,create a new Flex project (File -> New -> Flex project).

2. Copy all the contents of the ArcGIS_Flexsamplessrc folder to src folder of the Flex project created above.

3. In Adobe Flash Builder,add the API Library to the project through Project -> Properties -> Flex Build Path -> Library Path -> Add SWC (and locate the "agslib-3.1-2012-12-12.swc")


4. In Adobe Flash Builder,right-click on any of the sample mxml applications and click "Set as Default Application".

5. In Adobe Flash Builder,right-click on any of the sample mxml applications and click "Run Application".

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx" 
			   xmlns:esri="http://www.esri.com/2008/ags"
			   pageTitle="agsFlexDemo1"
			   minWidth="955" minHeight="600">
	<fx:Declarations>
		<!-- 将非可视元素(例如服务、值对象)放在此处 -->
	</fx:Declarations>
	<esri:Map>
		<esri:ArcGISTiledMapServiceLayer
			url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
	</esri:Map>
</s:Application>


效果如下:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读