1.准备环境
ArcGIS Runtime SDK for Android v10.1.1,
下载地址:
http://download.csdn.net/detail/yu624774720hua/5216622
版本说明:
http://blog.csdn.net/arcgis_all/article/details/8530704
2.代码
Xml代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
tools:context=".TianDiTuActivity"
>
<com.esri.android.map.MapView
android:id="@+id/map_mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</com.esri.android.map.MapView>
</LinearLayout>
package com.hvit.tianditu;
/**
* @author 作者姓名: 于华
* @E-mail yuh945@gmail.com
* @version 创建时间:2012-10-13 下午05:21:43
* 图层切换
*/
public enum TianDiTuTiledMapServiceType {
/**
* 天地图矢量
* */
VEC_C,
/**
* 天地图影像
* */
IMG_C,
/**
* 天地图矢量标注
* */
CVA_C,
/**
* 天地图影像标注
* */
CIA_C
}
package com.hvit.tianditu;
import java.util.Random;
/**
* @author 作者姓名: 于华
* @E-mail yuh945@gmail.com
* @version 创建时间:2012-10-13 下午05:22:27
* 抓图类
*/
public class TDTUrl {
private TianDiTuTiledMapServiceType _tiandituMapServiceType;
private int _level;
private int _col;
private int _row;
public TDTUrl(int level, int col, int row,TianDiTuTiledMapServiceType tiandituMapServiceType){
this._level=level;
this._col=col;
this._row=row;
this._tiandituMapService