the location to reproject
the desired output projection (EPSG code)
Optional
fromProjection: stringprojection of the given location, by default the project projection (EPSG code)
if invalid parameters
// returns the location in long/lat
const longLatLocation = await JMap.Projection.reprojectLocation({
x: -8251305.053809433,
y: 5683448.361086178
},
"EPSG:4326",
"EPSG:3857"
)
console.log("Long/lat location", longLatLocation)
JMap.Projection.reprojectLocation
Returns reprojected location in the given projection.