CN-1317 fix: 因国家简称小写不能识别导致地图不能下钻
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user