Browse Source

fix format of geodata input

pull/4749/head
flisowna 2 years ago
parent
commit
c7772aa588
  1. 3
      packages/nc-gui/utils/geoDataUtils.ts

3
packages/nc-gui/utils/geoDataUtils.ts

@ -1,3 +1,4 @@
const latLongToJoinedString = (lat: number, long: number) => `${lat.toFixed(2).replace('.', ',')};${long.toFixed(2).replace('.', ',')}`
const latLongToJoinedString = (lat: number, long: number) =>
`${lat.toFixed(7).replace('.', ',')};${long.toFixed(7).replace('.', ',')}`
export { latLongToJoinedString }

Loading…
Cancel
Save