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
690 B
5 lines
690 B
// 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","../../request","../../geometry/support/jsonUtils","../../geometry/support/spatialReferenceUtils","../utils"],function(e,k,l,m,f){e.labelPoints=function(a,g,b){var d=g.map(c=>c.toJSON());const h=g[0].spatialReference;a=f.parseUrl(a);d={...a.query,f:"json",sr:m.srToRESTValue(h),polygons:JSON.stringify(d)};b=f.asValidOptions(d,b);return k(a.path+"/labelPoints",b).then(({data:c})=>(c.labelPoints||[]).map(n=>l.fromJSON(n).set({spatialReference:h})))};Object.defineProperty(e,Symbol.toStringTag, |
|
{value:"Module"})}); |