注:我看到个项目,两个同时用才有效果,不解
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mapView = new MapView(this);
initextent = new Envelope(-10868502.895856911, 4470034.144641369,
-10837928.084542884, 4492965.25312689);
mapView.setExtent(initextent, 0);
ArcGISTiledMapServiceLayer tmsl = new ArcGISTiledMapServiceLayer(
"http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer");
mapView.addLayer(tmsl);
dmsl = new ArcGISDynamicMapServiceLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSFields/MapServer");
mapView.addLayer(dmsl);
}

解决方案 »

  1.   

    ArcGISDynamicMapServiceLayer(动态地图服务)通常用于实时显示经常变化的数据,支持控制单个图层可见性,可动态投影。但缺点是显示效果较差,整个服务出图较慢;ArcGISTiledMapServiceLayer可以直接加载服务器端的缓存地图服务,显示效果好,速度快,但它的缺点正是ArcGISDynamicMapServiceLayer的优点,即不支持动态投影,不能控制图层可见性,服务器端需要提前生成缓存等
    你这个程序是加载了两个图层啊