Skip to content

Elevation

Elevation is the height of a location above or below a reference point, such as mean sea level or ground level. To find elevation data for land or water with MapLibre GL JS, use the ArcGIS REST JS library to access the ArcGIS Elevation service.

Steps
  1. Use the MapLibre ArcGIS plugin to display a map.
  2. Reference the ArcGIS REST JS request and elevation packages.
  3. Get the elevation for a point or for multiple points.
  4. Display the results in the map.

Point elevation

You can find the elevation of a single location, such as a mountaintop, landmark, or your current position. This is useful for checking height above sea level, measuring water depth, or comparing elevation between locations.

Find the elevation of a point

Learn how to find the elevation of a point with the findElevationAtPoint method in ArcGIS REST JS.

Go to tutorial

Multiple point elevations

You can measure the elevation at many locations such as along a hiking trail. This is useful for making one request to get elevations to create profiles or to plan routes based on elevation values.

Find the elevation of multiple points

Learn how to find the elevation of multiple points with the findElevationAtManyPoints method in ArcGIS REST JS.

Go to tutorial

More resources

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