A Pen by DCBN

Thumbnail
This awesome code was written by CoolByNight, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright CoolByNight ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  DCBN</title>
  
  
  
  
  
</head>

<body>

  
  <script src='https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.4.4/proj4.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/CoolByNight/a-pen-by-dcbn-erNWdJ */
proj4.defs("EPSG:3006","+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs");

proj4.defs('WGS84', "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees");

const coord = proj4('EPSG:3006', 'WGS84').forward([324843.244728048, 6403682.89883195]);
console.log(coord)

Comments