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', NL: 'netherlandsLow',
GM: 'gambiaLow', GM: 'gambiaLow',
TR: 'turkeyLow', TR: 'turkeyLow',
be: 'belgiumLow', BE: 'belgiumLow',
PA: 'panamaLow', PA: 'panamaLow',
AZ: 'azerbaijanLow', AZ: 'azerbaijanLow',
PT: 'portugalLow', PT: 'portugalLow',
@@ -2011,7 +2011,7 @@ export const iso36112 = {
NZ: 'newZealandLow', NZ: 'newZealandLow',
MK: 'northMacedoniaLow', MK: 'northMacedoniaLow',
TN: 'tunisiaLow', TN: 'tunisiaLow',
bl: 'stBarthelemyLow', BL: 'stBarthelemyLow',
PY: 'paraguayLow', PY: 'paraguayLow',
ID: 'indonesiaLow', ID: 'indonesiaLow',
HT: 'haitiLow', HT: 'haitiLow',

View File

@@ -394,11 +394,17 @@ export default {
async location (n) { async location (n) {
this.$store.commit('setNpmLocationCountry', n) this.$store.commit('setNpmLocationCountry', n)
if (!n) { if (!n) {
if (this.countryImageSeries) {
this.countryImageSeries.data = [{}] this.countryImageSeries.data = [{}]
}
this.polygonSeries.show() this.polygonSeries.show()
this.worldImageSeries.show() this.worldImageSeries.show()
if (this.countrySeries) {
this.countrySeries.hide() this.countrySeries.hide()
}
if (this.countryImageSeries) {
this.countryImageSeries.hide() this.countryImageSeries.hide()
}
this.myChart.zoomToGeoPoint(this.myChart.homeGeoPoint, this.myChart.homeZoomLevel, true) this.myChart.zoomToGeoPoint(this.myChart.homeGeoPoint, this.myChart.homeZoomLevel, true)
} else { } else {
const countryId = countryNameIdMapping[n] const countryId = countryNameIdMapping[n]