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:
parent
63a3d2517c
commit
a64781578a
|
@ -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.
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue