|
|
|
|
@ -52,14 +52,12 @@ d3.select('form').on('submit', function(event){
|
|
|
|
|
const location1 = worldProjection([lat1, lng1]);
|
|
|
|
|
const x1 = location1[0];
|
|
|
|
|
const y1 = location1[1];
|
|
|
|
|
console.log(x1, y1);
|
|
|
|
|
|
|
|
|
|
const lat2 = d3.select('input:nth-child(4)').node().value
|
|
|
|
|
const lng2 = d3.select('input:nth-child(5)').node().value
|
|
|
|
|
const location2 = worldProjection([lat2, lng2]);
|
|
|
|
|
const x2 = location2[0];
|
|
|
|
|
const y2 = location2[1];
|
|
|
|
|
console.log(x2, y2);
|
|
|
|
|
|
|
|
|
|
d3.select('svg').append('rect')
|
|
|
|
|
.attr('fill', '#000')
|
|
|
|
|
|