We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4326 地理坐标系 102100 投影坐标系
文档地址 https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.webmercatorutils-amd.html
/** * 坐标转换 { wkid:4326 } 转换 { wkid:102100 } * @param {SpatialReference} source 要转换的SpatialReference对象 * @param {<SpatialReference} target */ export const transformCoordinate = (source, target) => { return loadModules([ "esri/geometry/webMercatorUtils", "esri/SpatialReference" ]).then(function ({ webMercatorUtils, SpatialReference }) { const sr = new SpatialReference(target) if (webMercatorUtils.canProject(source, sr)) { return webMercatorUtils.project(source, sr) } }) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
4326 地理坐标系
102100 投影坐标系
文档地址
https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.webmercatorutils-amd.html
The text was updated successfully, but these errors were encountered: