CN-1317 fix: 因国家简称小写不能识别导致地图不能下钻

This commit is contained in:
刘洪洪
2023-09-25 14:53:18 +08:00
parent 59676ead57
commit 3cf98e8db4
2 changed files with 11 additions and 5 deletions

View File

@@ -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',

View File

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