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.4 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","../../request","../../core/Logger","./constants"],function(b,g,e,d){function f(a){return a&&a.url&&a.datasetFormat?a:null}b.calculateDirection=function(a){return 135<=Math.abs(a)?"WEST":-45>a&&-135<a?"SOUTH":45>=a?"EAST":"NORTH"};b.calculateSegment=function(a,c){a=a/c*d.sectorsRadii[2];return a<=d.sectorsRadii[0]?"NEAR":a<=d.sectorsRadii[1]?"":"FAR"};b.castImageSource=function(a){return"string"===typeof a&&a.length?a:f(a)};b.castURLWithDatasetFormat=f;b.getContentType=async(a,c)=>
{try{return(await g(a,{...c,method:"head"}))?.getHeader?.("Content-Type")}catch(h){return e.getLogger("esri.widgets.OrientedImagery").error("failed to fetch Content-Type",h),null}};b.getMissingPropertyErrorMessage=(a,c)=>`Property ${c} is missing in ${a}`;b.getMissingPropertyErrorName=a=>`${a}:missing-property`;b.isGraphic=function(a){return"esri.Graphic"===a?.declaredClass};b.isNoAttachmentError=function(a){return"NoAttachmentError"===a?.name};b.isSceneView=function(a){return"3d"===a?.type};b.isTifOrMrf=
function(a){return/.*\.(tif|mrf)$/i.test(a??"")};b.logAndThrow=(a="esri.widgets.OrientedImageryViewer",c)=>{e.getLogger(a).error(c);throw c;};b.scaleExtent=function(a,c){0!==c&&(a.xmin/=c,a.xmax*=c,a.ymin/=c,a.ymax*=c)};Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});