Custom Gis Application with Arcgis Javascript API with modern layouting
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.
 
 

6 lines
1.3 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","../../core/jsonMap","../../geometry/support/jsonUtils","../../geometry/support/spatialReferenceUtils"],function(d,h,e,k){const l=new h.JSONMap({esriGeometryRelationCross:"cross",esriGeometryRelationDisjoint:"disjoint",esriGeometryRelationIn:"in",esriGeometryRelationInteriorIntersection:"interior-intersection",esriGeometryRelationIntersection:"intersection",esriGeometryRelationLineCoincidence:"line-coincidence",esriGeometryRelationLineTouch:"line-touch",esriGeometryRelationOverlap:"overlap",
esriGeometryRelationPointTouch:"point-touch",esriGeometryRelationTouch:"touch",esriGeometryRelationWithin:"within",esriGeometryRelationRelation:"relation"});d.relationToRESTParameters=function(a){const {geometries1:b,geometries2:c,relation:f,relationParameter:g}=a.toJSON();a={};b?.length&&(a.geometries1=JSON.stringify({geometryType:e.getJsonType(b[0]),geometries:b}),a.sr=k.srToRESTValue(b[0].spatialReference));c&&0<c.length&&(a.geometries2=JSON.stringify({geometryType:e.getJsonType(c[0]),geometries:c}));
f&&(a.relation=l.toJSON(f));g&&(a.relationParam=g);return a};Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});