Use @expose for Coordinate.z
By annotating the z property with @expose the compiler does not try to optimize that property in any way. See https://developers.google.com/closure/compiler/docs/js-for-compiler. The doc says that @expose should never be used in library code, but that's the only way I found for our case.
This commit is contained in:
@@ -26,6 +26,7 @@ ol.Coordinate = function(x, y, opt_z) {
|
||||
goog.base(this, x, y);
|
||||
|
||||
/**
|
||||
* @expose
|
||||
* @type {number}
|
||||
*/
|
||||
this.z = goog.isDef(opt_z) ? opt_z : NaN;
|
||||
|
||||
Reference in New Issue
Block a user