function drawPolygon(coords) {
ctx.beginPath();
for(let i = 0; i < coords.length; i++ ) {
let latitude = coords[i][1];
let longitude = coords[i][0];
if(i === 0) {
ctx.moveTo(scaleX(longitude), scaleY(latitude));
} else {
ctx.lineTo(scaleX(longitude), scaleY(latitude));
}
}
ctx.stroke();
ctx.fill();
}