Skip to content

Commit 34d8725

Browse files
committed
parse result coordinates to float
1 parent 7721773 commit 34d8725

File tree

1 file changed

+1
-1
lines changed
  • bundles/paikkatietoikkuna/coordinatetransformation

1 file changed

+1
-1
lines changed

bundles/paikkatietoikkuna/coordinatetransformation/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export const stateToKomuRequest = (state) => {
254254

255255
export const parseKomuResponse = (text) => {
256256
return text.split(`;`).map(coord => {
257-
const [x, y, z] = coord.split(',');
257+
const [x, y, z] = coord.split(',').map(c => parseFloat(c));
258258
return { x, y, z };
259259
});
260260
};

0 commit comments

Comments
 (0)