-
load
()
{Promise}
加載該模塊的依賴項。必須在投影幾何圖形之前調用此方法。
返回:
類型 說明 Promise 在加載依賴項時解析。 例子:
projection.load().then(function() { // the projection module is loaded. Geometries can be re-projected. // projects each polygon in the array // project() will use the spatial reference of the first geometry in the array // as an input spatial reference. It will use the default transformation // if one is required when converting from input spatial reference // to the output spatial reference let outSpatialReference = new SpatialReference({ wkid: 53008 //Sphere_Sinusoidal projection }); polygonGraphics.forEach(function(graphic) { graphic.geometry = projection.project(graphic.geometry, outSpatialReference); }); });
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/geometry/projection"], (projection) => { /* code goes here */ });
ESM:
import * as projection from "@arcgis/core/geometry/projection";
對象:
esri/geometry/projection
自從:用於 JavaScript 4.7 的 ArcGIS API
用法說明
projection.load
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS projection.getTransformations用法及代碼示例
- JavaScript ArcGIS projection.project用法及代碼示例
- JavaScript ArcGIS promiseUtils.eachAlways用法及代碼示例
- JavaScript ArcGIS promiseUtils.isAbortError用法及代碼示例
- JavaScript ArcGIS promiseUtils.debounce用法及代碼示例
- JavaScript ArcGIS promiseUtils.create用法及代碼示例
- JavaScript ArcGIS promiseUtils.resolve用法及代碼示例
- JavaScript ArcGIS promiseUtils.reject用法及代碼示例
- JavaScript promise reject()用法及代碼示例
- JavaScript ArcGIS promiseUtils.createAbortError用法及代碼示例
- JavaScript ArcGIS predominance.createRenderer用法及代碼示例
- JavaScript ArcGIS print.execute用法及代碼示例
- JavaScript ArcGIS predominantCategories.predominantCategories用法及代碼示例
- JavaScript ArcGIS predominance.getSchemeByName用法及代碼示例
- JavaScript ArcGIS predominanceUtils.getPredominanceExpressions用法及代碼示例
- JavaScript ArcGIS predominance.cloneScheme用法及代碼示例
- JavaScript ArcGIS predominance.getSchemes用法及代碼示例
- JavaScript ArcGIS predominance.getSchemesByTag用法及代碼示例
- JavaScript parseInt()用法及代碼示例
- JavaScript parseFloat()用法及代碼示例
- JavaScript performance.now()用法及代碼示例
- JavaScript ArcGIS SceneView double-click事件用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.overlaps用法及代碼示例
- JavaScript ArcGIS Expand.when用法及代碼示例
- JavaScript ArcGIS Sublayer.JoinTableDataSource用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 projection.load。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。