diff --git a/src/ol/coordinate.js b/src/ol/coordinate.js index 9c979ec7ba..ba94382d95 100644 --- a/src/ol/coordinate.js +++ b/src/ol/coordinate.js @@ -28,7 +28,7 @@ ol.Coordinate = function(x, y, opt_z) { /** * @type {number} */ - this.z = opt_z || 0; + this.z = goog.isDef(opt_z) ? opt_z : NaN; }; goog.inherits(ol.Coordinate, goog.math.Vec2);