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.
- Use the MapLibre ArcGIS plugin to display a map.
- Reference the ArcGIS REST JS
request
andelevation
packages. - Get the elevation for a point or for multiple points.
- 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 find
method in ArcGIS REST JS.
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 find
method in ArcGIS REST JS.