aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/dumbyUtils.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dumbyUtils.mjs')
-rw-r--r--src/dumbyUtils.mjs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dumbyUtils.mjs b/src/dumbyUtils.mjs
index 02cabca..1993b02 100644
--- a/src/dumbyUtils.mjs
+++ b/src/dumbyUtils.mjs
@@ -131,12 +131,11 @@ export const addGeoSchemeByText = async (node) => {
131} 131}
132 132
133/** 133/**
134 * setGeoSchemeByCRS.
135 * @description Add more information into Anchor Element within Geo Scheme by CRS 134 * @description Add more information into Anchor Element within Geo Scheme by CRS
136 * @param {String} crs - EPSG/ESRI Code for CRS 135 * @param {String} crs - EPSG/ESRI Code for CRS
137 * @return {Function} - Function for link 136 * @return {Function} - Function for link
138 */ 137 */
139export const setGeoSchemeByCRS = (crs) => (link) => { 138export const updateGeoSchemeByCRS = (crs) => (link) => {
140 const transform = proj4(crs, 'EPSG:4326') 139 const transform = proj4(crs, 'EPSG:4326')
141 const params = new URLSearchParams(link.search) 140 const params = new URLSearchParams(link.search)
142 let xy = params.get('xy')?.split(',')?.map(Number) 141 let xy = params.get('xy')?.split(',')?.map(Number)