yeeen

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

Discussion created by yeeen on Feb 11, 2014
Latest reply on Feb 12, 2014 by jeff.pace
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);
});

Outcomes