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],