Skip to content

Commit

Permalink
Pass latlng as string
Browse files Browse the repository at this point in the history
  • Loading branch information
frafra committed Jul 3, 2023
1 parent 9e49dbf commit ce13e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dist/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ map.on('click', function(event) {
maker.remove()
maker = L.marker(event.latlng);
maker.addTo(map);
window.ipc.postMessage([event.latlng.lat, event.latlng.lng]);
window.ipc.postMessage(event.latlng.lat+','+event.latlng.lng);
});

0 comments on commit ce13e50

Please sign in to comment.