z property

num z

The z coordinate value. Returns zero if not available.

You can also use is3D to check whether z coordinate is available, or optZ returns z coordinate as a nullable value.

For geographic coordinates z represents elevation or altitude.

Implementation

num get z;