diff --git a/src/geo/polygon.js b/src/geo/polygon.js index 5f6b9c6e..1ffd0c00 100644 --- a/src/geo/polygon.js +++ b/src/geo/polygon.js @@ -956,6 +956,7 @@ class Polygon { ln = ar.length, i = 0; while (i < ln) ar[i++].z = z; + this.z = z; if (this.inner) this.inner.forEach(c => c.setZ(z)); return this; }