Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kappu committed Mar 1, 2018
1 parent 4064803 commit f32f295
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/client/utils/CoordinatesUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,9 @@ const CoordinatesUtils = {
if (gj.crs) {
delete gj.crs;
}
gj.coordinates = traverseCoords(gj.coordinates, (xy) => {
return transform.forward(xy);
// Strip Z coord if present fixes #2638
gj.coordinates = traverseCoords(gj.coordinates, ([x, y]) => {
return transform.forward([x, y]);
});
}, (gj) => {
if (gj.bbox) {
Expand Down

0 comments on commit f32f295

Please sign in to comment.