var x = xPos * size;
var y = yPos * size;
console.log(x+':'+y);
context.beginPath();
context.moveTo(x, y);
$(".smwtable tr:not(:has(td.Localisation)):has(td.Position)").each(function()
{
console.log(mapData);
var pos = $("td.Position", this).text();
var xPos = (pos.substr(0, pos.indexOf(':')) - mapData[0]);