From 03ec9b433493130714df1c4a1430314a28638aa6 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 9 Apr 2018 23:54:16 +0300 Subject: [PATCH] v. 0.55951b --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 3d1509a0..1cecbe59 100644 --- a/script.js +++ b/script.js @@ -2985,7 +2985,7 @@ function fantasyMap() { console.error("There is already a burg in this cell. Select a free cell"); return; } - var i = manors.ljsength; + var i = manors.length; burgs.append("circle").attr("id", "manorIcon"+i).attr("r", .5).attr("stroke-width", .12).attr("cx", x).attr("cy", y).call(d3.drag().on("start", elementDrag)); var group = labels.select("#addedBurgs"); if (!group.size()) { @@ -5706,7 +5706,7 @@ function fantasyMap() { scX = d3.scaleLinear().domain([0, mapWidth]).range([0, mapWidth]); scY = d3.scaleLinear().domain([0, mapHeight]).range([0, mapHeight]); lineGen = d3.line().x(function(d) {return scX(d.scX);}).y(function(d) {return scY(d.scY);}); - zoom.scaleExtent([1, 40]).translateExtent([[0, 0], [mapWidth, mapHeight]]); + zoom.translateExtent([[0, 0], [mapWidth, mapHeight]]); fitScaleBar(); fitStatusBar(); }