Getting Elevation Data on 2D map #5113
Unanswered
goksungurhan5
asked this question in
Q&A
Replies: 1 comment
-
See the following discussion: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a pmtiles file that I serve to use 3D terrain maps offline. When I call the
setTerrain
function with this pmtiles file, I can successfully load the 3D terrain and get elevation data usingmap.terrain.getElevationForLngLatZoom(maplibregl.LngLat.convert([e.lngLat.lng, e.lngLat.lat]), map.transform.tileZoom)
. But I want to get this elevation data on the 2D map without calling setTerrain because of performance issues. Is there an easy way I can do this?Beta Was this translation helpful? Give feedback.
All reactions