Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 14x 58x 58x | import { Option } from 'effect'
import type { Formatter } from '../types'
import { toWebMercator } from './webMercator'
export const formatter: Formatter = {
id: 'WebMercator',
label: 'EPSG:3857',
maybeGridId: Option.none(),
format: point => {
const { x, y } = toWebMercator(point)
return {
lines: [`x ${x.toFixed(1)}`, `y ${y.toFixed(1)}`],
copyText: `${x.toFixed(2)}, ${y.toFixed(2)}`,
}
},
}
|