remove newlines from coordinates popup due to chrome bug making it impossible to copy from alertbox when it has newlines

This commit is contained in:
Thomas Steen Rasmussen 2020-07-05 18:54:52 +02:00
parent 63a3d2517c
commit a64781578a

View file

@ -134,7 +134,7 @@
});
map.addEventListener("contextmenu", (event) => {
alert("Lat: " + lat + " Lng: " + lng + '\n\nGeoJSON:\n{ "type": "Point", "coordinates": [ ' + lng + ', ' + lat + ' ] }');
alert("Lat: " + lat + " Lng: " + lng + ' - GeoJSON: { "type": "Point", "coordinates": [ ' + lng + ', ' + lat + ' ] }');
return false; // To disable default popup.
});