Changeset 21359 in main


Ignore:
Timestamp:
08/24/20 16:31:24 (5 weeks ago)
Author:
Paul Leo
Message:

NMTracking WildFireSmoke? - changed 1 occurence of http to https

File:
1 edited

Legend:

Unmodified
Added
Removed
  • adopters/nm-epht/trunk/src/main/webapps/WildFireSmoke/vendor/agsjs/dijit/TOC.js

    r11556 r21359  
    2121this.serviceLayer,this.checkNode.checked);this.rootLayerTOC.config.autoToggle!==false&&this._toggleContainer(this.checkNode&&this.checkNode.checked);this.rootLayerTOC._adjustToState()}else a==this.iconNode&&this._toggleContainer()},_setSubLayerVisibilitiesFromGroup:function(a){a._subLayerInfos&&a._subLayerInfos.length>0&&h.forEach(a._subLayerInfos,function(b){b.visible=a.visible;b._subLayerInfos&&b._subLayerInfos.length>0&&this._setSubLayerVisibilitiesFromGroup(b)},this)},_getVisibleLayers:function(){var a=
    2222[];h.forEach(this.rootLayer.layerInfos,function(b){b.subLayerIds||b.visible&&a.push(b.id)});if(a.length===0)a.push(-1);else this.rootLayer.visible||this.rootLayer.show();return a},_findTOCNode:function(a){if(this.serviceLayer&&this.serviceLayer.id==a)return this;if(this._childTOCNodes.length>0)for(var b=null,d=0,e=this._childTOCNodes.length;d<e;d++)if(b=this._childTOCNodes[d]._findTOCNode(a))return b;return null}}),D=n([o],{_currentIndent:0,rootLayer:null,tocWidget:null,constructor:function(a){this.config=
    23 a.config||{};this.rootLayer=a.config.layer;this.tocWidget=a.tocWidget},postCreate:function(){if(this.rootLayer instanceof p||this.rootLayer instanceof C)this._legendResponse?this._createRootLayerTOC():this._getLegendInfo();else this._createRootLayerTOC()},_getLegendInfo:function(){var a="";if(this.rootLayer.version>=10.01)a=this.rootLayer.url+"/legend";else{a="http://www.arcgis.com/sharing/tools/legend";var b=this.rootLayer.url.toLowerCase().indexOf("/rest/");b=this.rootLayer.url.substring(0,b)+this.rootLayer.url.substring(b+
     23a.config||{};this.rootLayer=a.config.layer;this.tocWidget=a.tocWidget},postCreate:function(){if(this.rootLayer instanceof p||this.rootLayer instanceof C)this._legendResponse?this._createRootLayerTOC():this._getLegendInfo();else this._createRootLayerTOC()},_getLegendInfo:function(){var a="";if(this.rootLayer.version>=10.01)a=this.rootLayer.url+"/legend";else{a="https://www.arcgis.com/sharing/tools/legend";var b=this.rootLayer.url.toLowerCase().indexOf("/rest/");b=this.rootLayer.url.substring(0,b)+this.rootLayer.url.substring(b+
    24245);a=a+"?soapUrl="+escape(b)}esri.request({url:a,content:{f:"json"},callbackParamName:"callback",handleAs:"json",load:j.hitch(this,this._processLegendInfo),error:j.hitch(this,this._processLegendError)})},_processLegendError:function(){this._createRootLayerTOC()},_processLegendInfo:function(a){this._legendResponse=a;var b=this.rootLayer;if(!b._tocInfos){var d={};h.forEach(b.layerInfos,function(c){d[""+c.id]=c;c.visible=c.defaultVisibility;if(b.visibleLayers&&!c.subLayerIds)c.visible=h.indexOf(b.visibleLayers,
    2525c.id)==-1?false:true});a.layers&&h.forEach(a.layers,function(c){var g=d[""+c.layerId];if(g&&c.legend)g._legends=c.legend});h.forEach(b.layerInfos,function(c){if(c.subLayerIds){var g=[];h.forEach(c.subLayerIds,function(k,m){g[m]=d[k];g[m]._parentLayerInfo=c});c._subLayerInfos=g}});var e=[];h.forEach(b.layerInfos,function(c){c.parentLayerId==-1&&e.push(c)});b._tocInfos=e}this._createRootLayerTOC()},_createRootLayerTOC:function(){if(this.rootLayer.loaded){this._rootLayerNode=new u({rootLayerTOC:this,
Note: See TracChangeset for help on using the changeset viewer.