diff --git a/src/main/webapp/js/modules/barkbeetle/seasonTrapsiteFormMap.js b/src/main/webapp/js/modules/barkbeetle/seasonTrapsiteFormMap.js index ec6d5ae2367c0b0523e68a5c6700a80f4e7f7ce7..27fa3517f7a5ebd67a6b0ba0daa94d465c462704 100644 --- a/src/main/webapp/js/modules/barkbeetle/seasonTrapsiteFormMap.js +++ b/src/main/webapp/js/modules/barkbeetle/seasonTrapsiteFormMap.js @@ -96,7 +96,7 @@ function updateLocationPosition(coordinate) { - var locationPosition = ol.coordinate.toStringXY(ol.proj.transform(coordinate, map.getView().getProjection().getCode(), 'EPSG:4326'),4); + var locationPosition = ol.coordinate.toStringXY(ol.proj.transform(coordinate, map.getView().getProjection().getCode(), 'EPSG:4326'),5); // Set/move location pin trapMarker.setPosition(coordinate); // Update form field "location" diff --git a/src/main/webapp/templates/modules/barkbeetle/barkbeetleSeasonTrapsiteForm.ftl b/src/main/webapp/templates/modules/barkbeetle/barkbeetleSeasonTrapsiteForm.ftl index 1bab39a013c46b74d53f5be5ade32b42218f09a0..f7fee12496ec8ac8174417fa6597ea8eadf36371 100644 --- a/src/main/webapp/templates/modules/barkbeetle/barkbeetleSeasonTrapsiteForm.ftl +++ b/src/main/webapp/templates/modules/barkbeetle/barkbeetleSeasonTrapsiteForm.ftl @@ -122,12 +122,21 @@ proj4.defs([ [ - 'EPSG:2077', - '+proj=utm +zone=32 +ellps=intl +units=m +no_defs '], + 'EPSG:25832', + '+proj=utm +zone=32 +ellps=GRS80 +units=m +no_defs ' + ], [ - 'EPSG:2078', - '+proj=utm +zone=33 +ellps=intl +units=m +no_defs ' - ] + 'EPSG:25833', + '+proj=utm +zone=33 +ellps=GRS80 +units=m +no_defs ' + ], + [ + 'EPSG:32632', + '+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs ' + ], + [ + 'EPSG:32633', + '+proj=utm +zone=33 +ellps=WGS84 +datum=WGS84 +units=m +no_defs ' + ], ]); function convertProjection() @@ -317,8 +326,8 @@ <label for="manualLocationProjection">Koordinatsystem</label> <select name="manualLocationProjection" id="projFromEPSG" onchange="showGisGeom();"> <option value="EPSG:4326" selected>Desimalgrader (WGS84)</option> - <option value="EPSG:2077">UTM Sone 32N</option> - <option value="EPSG:2078">UTM Sone 33N</option> + <option value="EPSG:32632">UTM Sone 32N</option> + <option value="EPSG:32633">UTM Sone 33N</option> </select> </div> <div class="form-group">