From f4a89ea3762e029ce6b043c35f735ed08573d306 Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 31 Jan 2018 03:30:16 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=88=EC=A7=80=EB=8F=84=20=EC=88=98?= =?UTF-8?q?=EB=8F=84=20=ED=91=9C=EA=B8=B0=20=EB=B2=84=EA=B7=B8=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmp_map/map.js | 3 ++- tmp_map/result.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tmp_map/map.js b/tmp_map/map.js index 7ecb5364..fb7cd447 100644 --- a/tmp_map/map.js +++ b/tmp_map/map.js @@ -73,7 +73,7 @@ function reloadWorldMap(isDetailMap, clickableAll, selectCallback, hrefTemplate) "id":arr[0], "name":arr[1], "color":arr[2], - "capital":(arr[3]!==0) + "capital":arr[3] }; } @@ -159,6 +159,7 @@ function reloadWorldMap(isDetailMap, clickableAll, selectCallback, hrefTemplate) city.nation = nationObj.name; city.color = nationObj.color; city.isCapital = (nationObj.capital == city.id); + console.log(city.id, nationObj.capital, city.isCapital); return city; } diff --git a/tmp_map/result.json b/tmp_map/result.json index d063bb43..69d18f31 100644 --- a/tmp_map/result.json +++ b/tmp_map/result.json @@ -101,7 +101,7 @@ ], "nationList":[ [1,"위","#0000ff",13], - [2,"촉","#00ff00",83], + [2,"촉","#00ff00",72], [3,"오","#ff0000",89] ], "spyList":[133, 892],