ArcGIS API ArcGISDynamicMapServiceLayer.setVisibleLayers对带有GroupLayer图层组的数据无效(针对LayerInfo)问题探讨
首先看下setVisibleLayers方法:
setVisibleLayers(ids, doNotRefresh?)
Sets the visible layers of the exported map. By default, the visible layers are as defined by the default visibility in LayerInfo.
To display no visible layers specify an array with a value of -1. if(visible.length === 0){
visible.push(-1);
}
layer.setVisibleLayers(visible);
经过测试,JS开发中,setVisibleLayers对带有图层组的要素无法直接操作。
例如:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQEAAADICAIAAABnHsNiAAAgAElEQVR4nO2de1BUZ5r/e+s3tX9sWbupGnd/VK27m63KP1u1W/0HXRUHJ0YMRDIaN646Ok5asRsMiZe4KqWbiWg0CA20guiy0RViFImK2lE7bIwGg7chGSJqqxFcMSGT0ZjQHSAI7+3sH6f79Hvu5zQNfTnvp/qP9twbn+95n/fyPI+NYzCsjS3RD8BgJBimAYbVYRpgWB2mAYbVYRpgWJ34a+COr99mC/oD0NiRfUqf4B31s/xum83m8HbF+nxdXofNZnP7Yz2fkW7ERQPQZQ+qWLPIrCVG7/UN8+c/CAza7aEHRm7ld4vs1++20dCWrbFLehWGpVHVAIRw7969RUVFlZWVjx49Mng5vhHQeItzHOf3hDKd/ZItLs+ggct3eR2iJqDL65AKIvJvjV3hCzEVMDiOU9MAhHDatGnCO3TSpEk9PT1GLud1BnWtmdLAcKZSoyG0D7IzdV7fGvtlu1hTwAijrIGysjKbmLy8PLVLeJ26jlCfzdaXEfF2xBqQ9Bygyx5U04CO2Wq825V2MREweJQ1MGvWLIkGJkyYoHstI40Ap6wB6LJHv6hoQOoIiXbIXH5Du0bRtWakDcoaKCoqkmggMzNT71LKjg3fIaZf9qPRgOaL2+9WHTBS2uV3Mw0wODUNNDc3//znP6c1sG3btpiuP5xp65M0DmOmAZPeENMAg+M4jXGhAwcOTJgwwWaz/exnP1u3bh2EuuP90GUPigd8FATAcZzfE+LbB5enn9fAg8BgRng0KRZfyMgR8l3MF2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MAylIzBrg/Rzhu8yaJW7ScKZNasq8jeq1BmGl0TMABvsPwuAPf6Jg/Xf0+8SmMsYJMF/IQshnqRTmwuiGIuKlGPFDpPD+PW336u2AqPMgjI1GttBNCnTZo8NEcsxljNM7ifWJ0wrJIA8N7flwornbqOlLNhrwhRTmldXbAVFrM6o5MnMZ46LzAzwJKawUA0wDppFYuRz+1RsZj4+6+5TpR7ebWhxBv+DNtAMK16dnr9VFmGIZ42KDacA0RiYHUvGj/GtTKmNcbDANMHRga+YYjDSHaYBhdZgGGFaHaYBhdf4PUBIdC4BAHOcAAAAASUVORK5CYII=" alt="" />在加载后 对图层 LayerInfo(红圈,为GroupLayer)进行show/hide,无法正常操作。
解决方法1:
发布图层时不要增加图层组(GroupLayer),所有图层都在一层之下,发布后调用即可正常使用;
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAACACAIAAADmnzAgAAATe0lEQVR4nO2dX2wcxR3H94GXSnnjoX7gpVIfq96DI9UlUgRK3LgiRLZKk5JyVmz3IYolIArUSkRccJ2kR3qAWtoS4jgIFFshhlyDL1cRCZGmjZTKVotygtg0BCkQjCi+O2PAmT+7fZjbvdn5t7Pru9s9Z766h+Q8s7u++/g7/36/GcsxMkqArLgfwMjIcQyIRgmRAdEoEWoGiPbt2/atW/jqVXT5Mr54EV+4gM+fx7kcOnMGnTqFXnkFTk6iV15Bp06hM2dwLofPn8cXLuCLF9Hly7hYtG/dsm/fbsJzGsWoeoJof/UV/s9/0JtvwpdegsPDcHAQ7NgBOjvBhg1g2zbY1wcfewzu2wf374fDw3B0FGUy6Pnn0YsvwokJ9OKL6PnnUSYDR0fh8DDcvx/u2wf27oV9fWDbNrBhA+jsBDt2wMFBODwMjx3DZ8/i996zl5fr+PxGMWpVINoff4ynp9Ef/gAffxw8+CC4/374q1/Bw4fRmTO4UMBXrtjXr9vlcl0e1C6X7evX8ZUruFBAp0/DQ4fgwAC4/36wbRt8/HH0xz/ifN7++OO63Muo+QoNov2//+FCAY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bQzSfXc9SSf2fjiEiIYmxgZj8dFLNppluT/lDKLyD0zRB1Gma6ebVOz7Xe/kTdEJ8GvRpCfTTajniKpJiSQBObCAmO53UcSI5ImGXa5pDgBjWEQmFXNMcBUT+Gci/dUAM4FAUROlViRnE5KeT1q+PqHvHevURvVtH+DS839q7iAaI0theN9xcAKlXJ2YQk59OGm3ULANRZ9QSbdQsBJFOEwv1aZC6xeJym/u+JojKOElRerabi0jiHmIDMfnppPxRexEcMc0dIKUQs1dENEfckmLPpA75aVQTKvgO9ypAFDXOfhAVde/0dFL+qD01iE9mltqsUk48faO7zwk3gFWBmMlU2lLlcdH0DdND1f805vw7SNHPEKFpVpTw3okfRKKkppOyt1OASOd2CecR9eYU2RZcASJpIrxhOw+i9+9QnwbJeBzPfcVAzP/KjLjBynx2PcWdKEPWq5IUELXV1HRS/soyEJn9vmTHSQfvxsTtXicDkT6G15Hn/3szR3qfhm/8597C90GFmr5hsmK5hts/p90qIDY9nZRtl53aV1u7CH/st+M4kvn20AbsuCDSk9KSzZxWuHOAa/Yc+dOgjket/UaSX9lZZVJsy4CoHkuaV5Nf4i+pYUmxCQLRqCXUoKRYA6JRImRANEqEDIhGiZAB0SgR+j/YsM828/tsbQAAAABJRU5ErkJggg==" alt="" />
解决方法2:
第一种解决方法需把所有数据放同一层,不设置图层组,可针对简单数据,但数据繁多需要分组时,就需要考虑分组问题,GroupLayer本身在JS API加载后也是LayerInfo,
思路是:把VisibleLayer里面的图层组都删掉,再调用setVisibleLayers(visibleLayer)。
function getVisibleLayers(layer, subLayerIndex) {
require(["dojo/_base/array"],function(array) {
var layerInfos = layer.layerInfos;
var i;
// array for setting visible layers
var visibleLayers = [-1]; if (typeof subLayerIndex !== "undefined") {
var newVis = !layerInfos[subLayerIndex].defaultVisibility;
// reverse current visibility of sublayer
layerInfos[subLayerIndex].defaultVisibility = newVis;
} // for each sublayer
for (i = 0; i < layerInfos.length; i++) {
var info = layerInfos[i];
// push to visible layers if it's visible
if (info.defaultVisibility) {
visibleLayers.push(info.id);
var negative = array.lastIndexOf(visibleLayers, -1);
if (negative !== -1) {
visibleLayers.splice(negative, 1);
}
}
}
//Now that the array of visibleLayer Ids is assembled,说明:此处即是对GroupLayer进行处理
//strip off Ids of invisible child layers, and
//Ids of group layers (group layer Ids should not be submitted
//in .setVisible() or loss of toggle control madness ensues.
//Remove layers whos parents are not visible:
var noInvisibleParents = [];
for (i = 0; i < visibleLayers.length; i++) {
var id = visibleLayers[i];
var hasParentsInVisibleArray = this._allIdsPresent(layer, id, visibleLayers);
if (hasParentsInVisibleArray) {
noInvisibleParents.push(id);
}
}
var noGroups = [];
for (var j = 0; j < noInvisibleParents.length; j++) {
var lyrInfo = this._getLayerInfo(layer, noInvisibleParents[j]);
if (lyrInfo && lyrInfo.subLayerIds === null) {
noGroups.push(noInvisibleParents[j]);
}
}
// note: set -1 if array is empty.
if (!noGroups.length) {
noGroups = [-1];
}
return noGroups;
});
}
代码略显复杂,不过对于自定义图层操作可做参考。
注:参考ArcGIS JS API的LayerList源码
ArcGIS API ArcGISDynamicMapServiceLayer.setVisibleLayers对带有GroupLayer图层组的数据无效(针对LayerInfo)问题探讨的更多相关文章
- ArcGIS API for JavaScript 入门教程[6] 再讲数据——Map类之可操作图层
[回顾]上篇交代了Map是各种图层(不管是实际上的图层还是由图层构成的对象)的容器,是数据的容器,并不作显示(由视图类绘制).并重点讲解了由图层构成的复杂图层——高程属性ground和底图属性base ...
- ArcGIS API for JavaScript 入门教程[5] 再讲数据——Map类之底图与高程
[回顾]前4篇交代了JsAPI的背景.资源如何获取,简介了数据与视图分离的概念与实现,剖析了页面的大骨架. 这篇开始,讲Map类. 转载注明出处,博客园/CSDN/B站/知乎:秋意正寒 目录:http ...
- ArcGIS API for JavaScript 4.2学习笔记[0] AJS4.2概述、新特性、未来产品线计划与AJS笔记目录
放着好好的成熟的AJS 3.19不学,为什么要去碰乳臭未干的AJS 4.2? 4.2全线基础学习请点击[直达] 4.3及更高版本的补充学习请关注我的博客. ArcGIS API for JavaScr ...
- arcgis api for flex之专题图制作(饼状图,柱状图等)
最近公司给我一个任务,就是利用arcgis api for flex实现在地图上点(业务数据)直接显示饼状图以及柱状图的专题图制作,而不是通过点击点显示气泡窗口的形式来实现,这个公司已经实现了. 经过 ...
- ArcGIS API for Silverlight中加载Google地形图(瓦片图)
原文:ArcGIS API for Silverlight中加载Google地形图(瓦片图) 在做水利.气象.土地等行业中,若能使用到Google的地形图那是再合适不过了,下面就介绍如何在ArcGIS ...
- ArcGIS API for Silverlight开发入门
你用上3G手机了吗?你可能会说,我就是喜欢用nokia1100,ABCDEFG跟我 都没关系.但你不能否认3G是一种趋势,最终我们每个人都会被包裹在3G网络中.1100也不是一成不变,没准哪天为了打击 ...
- ArcGIS API for JavaScript:Layer之间那点儿事
先来看一个模型: |–TiledMapServiceLayer | |–ArcGISTiledMapServiceLayer |–DynamicLayer | |–Dyn ...
- [ArcGIS]ArcGIS Server环境搭建,发布服务,以及使用ArcGIS API for JavaScript
环境搭建 安装Web服务器 IIS 控制面板-程序-程序和功能-启用或关闭Windows功能,勾选以下 安装VisualStudio,选择包括ASP.NET模块 安装ArcGIS服务器 ArcGIS ...
- ArcGIS API for Silverlight部署本地地图服务
这一节我们来讲新建立的ArcGIS API for Silverlight应用程序如何加载自己的地图服务的问题,网上的资料讲的都有点含糊不清,这次我们详细的讲一下配置的步骤: 首先介绍下我们的开发和部 ...
随机推荐
- oracle 异常
ORACLE 异常错误处理 本篇主要内容如下: 5.1 异常处理概念 5.1.1 预定义的异常处理 5.1.2 非预定义的异常处理 5.1.3 用户自定义的异常处理 5.1.4 用户定义的异常处理 ...
- -moz-transform: rotate(-5deg);
目前越来越多的浏览器兼容CSS3标准了,就连IE浏览器老大哥也开始向CSS3低头,微软宣布IE9浏览器支持更多的CSS3属性,IE9更注重 HTML5标准.不过CSS3里有一个使对象旋转的属性tran ...
- 关于Linux x64 Oracle JDK7u60 64-bit HotSpot VM 线程栈默认大小问题的整理
JVM线程的栈默认大小,oracle官网有简单描述: In Java SE 6, the default on Sparc is 512k in the 32-bit VM, and 1024k in ...
- 修复 Firefox 下本地使用 Bootstrap 3 时 glyphicon 不显示问题
本地开发使用 Firefox 调试,遇到了 glyphicon 图标不显示的问题,期初以为是路径问题,搜索一大圈后找到了答案,原来这是一个安全性的问题,于是问题就好办了,解决方案如下: 1. 在Fir ...
- 如何用Unity制作自定义字体——Custom Font
一.效果图 二.步骤 将美术做好的字体分块导入BMFont,使用BMFont工具生成艺术字库: 将上面的数据导入unity资源目录下:*.fnt文件中记录每个文字的状态信息: 导入*.png图片并设置 ...
- AngularJs + Web API 页面开发(一)
AngularJS这个JS框架是个神马东东我也不太清楚,我也是初学者~~ AngularJS适用于single page App,单页面程序都是局部刷新的,这一点和Ajax有第一的区别,因为使用Aja ...
- 关于一个程序的编译过程 zkjg面试
http://blog.csdn.net/gengyichao/article/details/6544266 一 以下是C程序一般的编译过程: 从图中看到: 将编写的一个c程序(源代码 )转换成可以 ...
- Java Calendar 注意事项
Java JDK 提供了java.util.Calendar来处理日期和时间.Calendar是一个抽象类,是所有日历的模板,因此我们可以继承Calendar来实现其他的历法(比如阴历). Java提 ...
- jQuery Mobile 网格布局
jQuery Mobile 布局网格 jQuery Mobile 提供了一套基于 CSS 的列布局方案.不过,一般不推荐在移动设备上使用列布局,这是由于移动设备的屏幕宽度所限. 但是有时你需要定位更小 ...
- C#中的线程(二) 线程同步基础
1.同步要领 下面的表格列展了.NET对协调或同步线程动作的可用的工具: 简易阻止方法 构成 目的 Sleep 阻止给定的时间周期 Join 等待另一个线程 ...