UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 535 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import e from"../../core/Logger.js";import{projectOrLoad as r}from"../../geometry/projectionUtils.js";const t=t=>{const o=t;class n extends o{projectOrWarn(t,o){if(null==t)return t;const{geometry:n,pending:c}=r(t,o);return c?null:c||n?n:(e.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:o}),null)}}return n};export{t as GeoreferenceBaseMixin};