// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.23/esri/copyright.txt for details.
//>>built
define("esri/layers/WMSLayerInfo",["dojo/_base/declare","dojo/_base/lang","dojo/_base/array","dojo/has","../kernel"],function(c,e,d,f,g){c=c(null,{declaredClass:"esri.layers.WMSLayerInfo",name:null,title:null,description:null,extent:null,legendURL:null,subLayers:[],allExtents:[],spatialReferences:[],queryable:!1,showPopup:!1,constructor:function(a){a&&(this.name=a.name,this.title=a.title,this.description=a.description,this.extent=a.extent,this.legendURL=a.legendURL,this.subLayers=a.subLayers?a.subLayers:
[],this.allExtents=a.allExtents?a.allExtents:[],this.spatialReferences=a.spatialReferences?a.spatialReferences:[],this.queryable=!!a.queryable,this.showPopup=!!a.showPopup)},clone:function(){var a={name:this.name,title:this.title,description:this.description,legendURL:this.legendURL},b;this.extent&&(a.extent=this.extent.getExtent());a.subLayers=[];d.forEach(this.subLayers,function(b){a.subLayers.push(b.clone())});a.allExtents=[];for(b in this.allExtents)b=parseInt(b,10),isNaN(b)||(a.allExtents[b]=
this.allExtents[b].getExtent());a.spatialReferences=[];d.forEach(this.spatialReferences,function(b){a.spatialReferences.push(b)});a.queryable=this.queryable;a.showPopup=this.showPopup;return a}});f("extend-esri")&&e.setObject("layers.WMSLayerInfo",c,g);return c});