ArcGIS for Android —— 显示地图
来源:互联网 发布:java threadGroup 编辑:程序博客网 时间:2024/05/21 08:45
在搭建好Android开放环境之后,就可以安装ArcGIS Runtime SDK for Android Eclipse Plugin了。具体安装方法见官方的帮助文档,说的很明白的。(http://resources.arcgis.com/en/help/android-sdk/concepts/index.html#/Installing_the_SDK/01190000002m000000/)
安装完成之后,在Eclipse建立工程的时候就可以选择ArcGIS project for Android。显示地图的操作很简单,如下:
1 在布局文件里面加上:
<com.esri.android.map.MapView android:id="@+id/map" android:layout_width="fill_parent" android:layout_height="fill_parent" initExtent = "-1.3296373526814876E7 3930962.41823043 -1.2807176545789773E7 4201243.7502468005"> </com.esri.android.map.MapView>
initExtent指的是地图的初始显示范围,四个数字分别是小x、小y、大x和大y。数值因图而异。
2 在java文件中的onCreate方法中添加这个地图:
mMapView = new MapView(this);MapView mapView;mapView = (MapView) findViewById(R.id.map);mapView.addLayer(new ArcGISDynamicMapServiceLayer("url"));
这样就可以把指定服务的地图显示出来了。
- ArcGIS for Android —— 显示地图
- arcgis for android 学习 - (2) hello Wrold. 显示一个地图
- 【ArcGIS for Android】使用自定义Callout显示地图信息
- Arcgis for android 地图放大镜
- ArcGIS For JavaScript API Show map properties(显示地图信息)————(十二)
- Arcgis for Androd API开发系列教程(一)——地图显示与GPS定位
- ArcGIS for Android Runtime100 基本操作(二)——地图控件的常见操作
- ArcGIS for Android Runtime100 基本操作(七)——三维地图初步使用
- arcgis for android 地图查询并定位
- arcgis for android 离线地图实现
- ArcGIS for android 离线地图 案例
- ArcGIS for Android 体验(一) 添加地图
- ArcGIS for Android 体验(一) 添加地图
- Arcgis For Android加载离线地图
- ArcGIS For Android 地图比例尺获取
- ArcGIS for Android 体验(一) 添加地图
- ArcGIS for Android 设置地图网格背景
- ArcGIS for Android地图去除水印
- 仿XP关机效果的弹出窗口功能
- 锐捷认证客户端在嵌入式linux平台上的移植
- 日报_2012_07_26
- 日报_2012_07_27
- 用层模拟可移动的小窗口
- ArcGIS for Android —— 显示地图
- Excel宏类型的转换
- 纯用DIV弹出DIV窗口(经测试试用IE、firefox等浏览器)
- 如何编写Linux设备驱动程序
- 北大ACM poj2590
- 获取类成员函数的指针
- Server.cpp : Defines the entry point for the console application.
- struts2之2--动态方法调用
- XML解析