In openlayers3, is there a method for removing the Z when getting the coordinates of a feature with layout=XYZ? Something akin to this but built into ol3?
function strip(geom, test) {
if (!geom.length) return;
if (typeof geom[0] !== "number") {
return geom.map(function(g) { return strip(g, test); });
}
return geom.filter(test);
}