Преглед на файлове

HUE-4499 [editor] Gradient map not always showing on the editor

Enrico Berti преди 9 години
родител
ревизия
0b8e7b4c3f
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      desktop/core/src/desktop/static/desktop/js/ko.charts.js

+ 6 - 0
desktop/core/src/desktop/static/desktop/js/ko.charts.js

@@ -651,6 +651,9 @@
             if (_scope != "world" && _scope != "usa" && _scope != "europe" && _place.indexOf(".") == -1) {
               _place = HueGeo.getISOAlpha2(_scope) + "." + _place;
             }
+            if ((_scope == "world" || _scope == "europe") && _place.length == 2) {
+              _place = HueGeo.getISOAlpha3(_place);
+            }
             _mapdata[_place] = {
               fillKey: "fill_" + (_is2d ? getHighestCategoryValue(cnt, item).idx : (Math.ceil(item.value / _chunk) - 1)),
               id: _place,
@@ -676,6 +679,9 @@
             if (_scope != "world" && _scope != "usa" && _scope != "europe" && _place.indexOf(".") == -1) {
               _place = HueGeo.getISOAlpha2(_scope) + "." + _place;
             }
+            if ((_scope == "world" || _scope == "europe") && _place.length == 2) {
+              _place = HueGeo.getISOAlpha3(_place);
+            }
             _mapdata[_place] = {
               fillKey: "selected",
               id: _place,