这篇文章主要是讲窗体中怎么加载一张在线地图。
第一步:首先引用ESRI.ArcGIS.Client.dll类库。
第二步:在XAML中添加如下代码:
<Window x:Class="ArcGis_1_.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:esri="http://schemas.esri.com/arcgis/client/2009" Title="MainWindow"> <Grid x:Name="LayoutRoot" > <esri:Map x:Name="MyMap" WrapAround="True"> <esri:ArcGISTiledMapServiceLayer ID="MyLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /> </esri:Map> </Grid> </Window>
第三步:运行程序,效果如下
本文详细介绍了使用ArcGIS Client库在窗体中加载在线地图的方法,包括引用类库、XAML代码添加地图实例,并展示了运行后的效果。适合于希望将地图功能集成到应用程序中的开发者。
712

被折叠的 条评论
为什么被折叠?



