Skip to content

Elevation helpers for ArcGIS REST JS.

Node.js

To use ArcGIS REST JS in a backend or Node.js application, first install the package using your preferred package manager, such as NPM or Yarn.

Use dark colors for code blocksCopy
1
npm install @esri/arcgis-rest-elevation

Once installed, you can import or require modules depending on your Node setup.

ES modules

Use dark colors for code blocksCopy
1
import { findElevationAtPoint } from "@esri/arcgis-rest-elevation"

CommonJS

Use dark colors for code blocksCopy
1
const findElevationAtPoint = require("@esri/arcgis-rest-elevation");

CDN

You can load ArcGIS REST JS directly in the browser using CDN with a global object or with an import map.

Global object

Use dark colors for code blocksCopy
1
2
3
4
5
6
<script src="https://unpkg.com/@esri/arcgis-rest-elevation@1.0.0/dist/bundled/elevation.umd.min.js"
  integrity="sha512-DX9aPIcxp+yNw/4XKk0/8rXQjOlWwXe3eWTW4qWFqxtzgH6rLZovYj7CKNeO9lpCR27jF4L4Y4rrWKeXqH+yWQ==">
</script>
<script>
  import { findElevationAtPoint } from "@esri/arcgis-rest-elevation";
</script>

Import map

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
<script type="importmap">
{
  "imports": {
    "@esri/arcgis-rest-elevation": "https://esm.run/@esri/arcgis-rest-elevation@1.0.0"
  }
}
</script>
<script type="module">
  import { findElevationAtPoint } from "@esri/arcgis-rest-elevation";
</script>

Exports

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.