Mixedbredie's Ghosts
  • Home
  • Contact
Subscribe
Tagged

proj4js

A collection of 1 post

Reprojecting Leaflet Coordinates
javascript

Reprojecting Leaflet Coordinates

Leaflet has a great little function that returns the coordinates of a point clicked on the map. var popup = L.popup(); function onMapClick(e) { popup .setLatLng(e.latlng) .setContent("You clicked the map at " + e.latlng.toString()) .openOn(map); } map.on('click', onMapClick); When the user clicks on

  • Ross McDonald
Ross McDonald Sep 15, 2015 • 2 min read
Mixedbredie's Ghosts © 2023
Powered by Ghost