Arcgis之ArcGISTiledMapServiceLayer与ArcGISDynamicMapServiceLayer对比

来源:互联网 发布:baby对赌协议知乎 编辑:程序博客网 时间:2024/06/07 16:24

ArcGISDynamicMapServiceLayer(动态地图服务)通常用于实时显示经常变化的数据,支持控制单个图层可见性,可动态投影。但缺点是显示效果较差,整个服务出图较慢。

//ArcGISDynamicMapServiceLayer class is used to define the Layer that is added to the //MapView object. MapView mv = new MapView(this); mv.addLayer(new ArcGISDynamicMapServiceLayer( "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Population_World/MapServer")); setContentView(mv);


ArcGISTiledMapServiceLayer可以直接加载服务器端的缓存地图服务,显示效果好,速度快,但它的缺点正是ArcGISDynamicMapServiceLayer的优点,即不支持动态投影,不能控制图层可见性,服务器端需要提前生成缓存等。

MapView mv = new MapView(this); mv.addLayer(new ArcGISTiledMapServiceLayer( "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer")); setContentView(mv);


引用http://blog.csdn.net/wozaifeiyang0/article/details/7227691该篇文章的一张示意图。展示几个主要图层的关系以及使用:


0 0
原创粉丝点击