Select to view content in your preferred language

How to query terrain height / altitude  information from a map in Javascript

617
1
02-11-2014 05:47 PM
YeeenYeeen
New Contributor
If I do the following I will only get the x and y coordinates. How do I get the z coordinates? Btw I have the dted layer cached already.

connect.connect(this.map.root, "onClick", function(evt) {
    console.log(evt.mapPoint.x + ", " + evt.mapPoint.y);
});
0 Kudos
1 Reply
JeffPace
MVP Alum
There is no z data unless you add your own layer with elevation, the javascript API is 2D
0 Kudos