You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
1.1 KiB
5 lines
1.1 KiB
// All material copyright Esri, All Rights Reserved, unless otherwise specified. |
|
// See https://js.arcgis.com/4.30/esri/copyright.txt for details. |
|
//>>built |
|
define(["exports","../../geometry/support/spatialReferenceUtils","../../layers/support/layerUtils"],function(l,p,q){l.findToFindRESTParameters=function(b){const {contains:r,dynamicLayers:g,geometryPrecision:t,layerDefinitions:f,layerIds:h,maxAllowableOffset:u,outSR:m,returnGeometry:v,searchFields:n,searchText:w}=b.toJSON();b={contains:r,returnGeometry:v,geometryPrecision:t,maxAllowableOffset:u,searchText:w};h&&(b.layers=h.join(","));n&&(b.searchFields=n.join(","));m&&(b.sr=p.srToRESTValue(m));if(f){var a= |
|
[];for(var c=0;c<f.length;c++){var e=f[c];a[e.id]=e.definitionExpression}b.layerDefs=q.serializeLayerDefinitions(a)}if(g?.length){a=[];for(c=0;c<g.length;c++){var d=g[c];const k=d.id;!d.subLayerIds&&h?.includes(k)&&(e={id:k},e.source=d.source,d=null,f?.length&&(d=f.find(x=>x.id===k)?.definitionExpression),d&&(e.definitionExpression=d),a.push(e))}a=JSON.stringify(a);"[]"===a&&(a="[{}]");b.dynamicLayers=a}return b};Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})}); |