diff --git a/src/utils/constants.js b/src/utils/constants.js index 2709787b..88d1b94d 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -1972,7 +1972,7 @@ export const iso36112 = { NL: 'netherlandsLow', GM: 'gambiaLow', TR: 'turkeyLow', - be: 'belgiumLow', + BE: 'belgiumLow', PA: 'panamaLow', AZ: 'azerbaijanLow', PT: 'portugalLow', @@ -2011,7 +2011,7 @@ export const iso36112 = { NZ: 'newZealandLow', MK: 'northMacedoniaLow', TN: 'tunisiaLow', - bl: 'stBarthelemyLow', + BL: 'stBarthelemyLow', PY: 'paraguayLow', ID: 'indonesiaLow', HT: 'haitiLow', diff --git a/src/views/charts2/charts/npm/NpmMap.vue b/src/views/charts2/charts/npm/NpmMap.vue index 7d8bbcd6..e014cde5 100644 --- a/src/views/charts2/charts/npm/NpmMap.vue +++ b/src/views/charts2/charts/npm/NpmMap.vue @@ -394,11 +394,17 @@ export default { async location (n) { this.$store.commit('setNpmLocationCountry', n) if (!n) { - this.countryImageSeries.data = [{}] + if (this.countryImageSeries) { + this.countryImageSeries.data = [{}] + } this.polygonSeries.show() this.worldImageSeries.show() - this.countrySeries.hide() - this.countryImageSeries.hide() + if (this.countrySeries) { + this.countrySeries.hide() + } + if (this.countryImageSeries) { + this.countryImageSeries.hide() + } this.myChart.zoomToGeoPoint(this.myChart.homeGeoPoint, this.myChart.homeZoomLevel, true) } else { const countryId = countryNameIdMapping[n]