ArcGIS API for Silverlight/开发入门 环境搭建
来源:互联网 发布:怎么卸载mac上的office 编辑:程序博客网 时间:2024/09/21 08:58
文章来源:http://www.cnblogs.com/
本篇文章来源于 GIS空间站 转载请以链接形式注明出处 网址:http://www.gissky.net/Article/2185.htm
Silverlight/开发入门 环境搭建
1 Silverlight/SDK
下载ArcGIS API for Microsoft Silverlight/WPF ,需要注册一个ESRI Gloab 账户。
下载地址http://resources.esri.com/arcgisserver/apis/silverlight/
2 开发环境:
1)Visual Studio 2008 SP1 或者 Visual Web Developer Express with SP1
下载地址 :
Visual Studio 2008 SP1:
http://msdn.microsoft.com/en-us/vs2008/products/cc268305.aspx
Visual Web Developer Express with SP1:
http://www.microsoft.com/express/vwd
不想装vs2008的话,可以选择vwd,安装文件比较小
2)Silverlight Tools for Visual Studio 2008 SP1 (add-on)
下载地址
http://www.microsoft.com/downloads/details.aspx?FamilyId=c22d6a7b-546f-4407-8ef6-d60c8ee221ed&displaylang=en
首先安装vs2008或者vwd,然后安装Silverlight Tools for Visual Studio 2008 SP1,开发环境就搭建好了。
3 helloWorld
1)打开vwd,新建一个Silverlight工程。
2)选择Add a New ASP.NET web project to solution to host Silverlight
3) 点击ok
4) 添加引用,找到siliverlight SDK 目录下面siliverlight\ESRI.ArcGIS.dll
5) 将如下代码添加到page.axml中
<UserControl x:Class="HelloWorld.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="clr-namespace:ESRI.ArcGIS;assembly=ESRI.ArcGIS"
xmlns:esriSymbols="clr-namespace:ESRI.ArcGIS.Symbols;assembly=ESRI.ArcGIS"
xmlns:esriGeometry="clr-namespace:ESRI.ArcGIS.Geometry;assembly=ESRI.ArcGIS"
>
<Grid x:Name="LayoutRoot" Background="White">
<Grid.Resources>
<esriSymbols:SimpleMarkerSymbol x:Key="RedMarkerSymbol" Color="Red" Size="12" Style="Circle" />
<esriSymbols:PictureMarkerSymbol x:Key="PinPictureMarkerSymbol" ffsetX="11" ffsetY="39" Source="/Assets/images/i_pushpin.png" />
<esriSymbols:PictureMarkerSymbol x:Key="GlobePictureMarkerSymbol" ffsetX="8" ffsetY="8" Source="/Assets/images/globe-16x16.png" />
<esriSymbols:SimpleLineSymbol x:Key="RedLineSymbol" Color="Red" Width="4" Style="Solid" />
<esriSymbols:CartographicLineSymbol x:Key="CartoLineSymbol" Color="Green" Width="4" DashCap="Triangle" DashArray="5 1" />
<esriSymbols:SimpleFillSymbol x:Key="RedFillSymbol" Fill="#66FF0000" BorderBrush="Red" BorderThickness="2" />
<esriSymbols:PictureFillSymbol x:Key="GlobePictureFillSymbol" Source="/Assets/images/globe-16x16.png" />
</Grid.Resources>
<esri:Map x:Name="myMap">
<esri:Map.Layers>
<esri:ArcGISTiledMapServiceLayer ID="StreetMap" Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
<esri:GraphicsLayer ID="MyGraphics" />
</esri:Map.Layers>
</esri:Map>
</Grid>
</UserControl>
6)编译 运行 。
本篇文章来源于 GIS空间站 转载请以链接形式注明出处 网址:http://www.gissky.net/Article/2185.htm
- ArcGIS API for Silverlight/开发入门 环境搭建
- ArcGIS API for Silverlight开发入门准备
- arcgis api for flex 开发入门(一)环境搭建
- arcgis api for flex 开发入门(一)环境搭建
- arcgis api for flex 开发入门(一)环境搭建
- ArcGIS API for Silverlight开发入门(1):Getting Started
- ArcGIS API for Silverlight开发入门(3):Widgets
- ArcGIS API for Silverlight开发入门(1):Getting Started
- ArcGIS API for Silverlight开发入门(3):Widgets
- ArcGIS API for Silverlight开发入门(1):Getting Started
- ArcGIS API for Silverlight开发入门(3):Widgets
- ArcGIS API for Silverlight开发入门(1):Getting Started
- ArcGIS API for Silverlight开发入门(3):Widgets
- ArcGIS API for Silverlight开发入门(1):Getting Started
- ArcGIS API for Silverlight开发入门(0):为什么要用Silverlight API?
- ArcGIS API for Silverlight开发入门(0):为什么要用Silverlight API?
- ArcGIS API for Silverlight开发入门(0):为什么要用Silverlight API?
- ArcGIS API for Silverlight开发入门(0):为什么要用Silverlight API?
- Matlab Linux版中文方块解决(openjdk-6-jre)
- 深入浅出.NET代码生成系列(7):动态生成代码与编译综合示例
- Redis 入门
- 面试指南 笔记(七) 常量
- 黑马程序员--HTML小结(上)
- ArcGIS API for Silverlight/开发入门 环境搭建
- 开源软件新闻 2012-07,来源openopen
- 《多线程》笔记 (修正版)
- Android入门:隐式Intent
- ASP.NET上运行Redis简单示例
- android信息-摘要校验信息
- 黑马程序员--HTML小结(下)
- 解决HP笔记本安装XP SP3后出现系统蓝屏0x0000007E错误的方法
- 一种3D引擎的多线程设计方案