Improve type checking in ol.geom
This commit is contained in:
@@ -192,7 +192,7 @@ ol.geom.Geometry.prototype.setLayout =
|
|||||||
this.stride = 2;
|
this.stride = 2;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
coordinates = coordinates[0];
|
coordinates = /** @type {Array} */ (coordinates[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stride = (/** @type {Array} */ (coordinates)).length;
|
stride = (/** @type {Array} */ (coordinates)).length;
|
||||||
|
|||||||
Reference in New Issue
Block a user