CN-1317 fix: 调整地图上俄罗斯的圆点位置

This commit is contained in:
chenjinsong
2023-10-23 10:39:06 +08:00
parent 012d873b71
commit d8865b74d7
2 changed files with 6 additions and 0 deletions

View File

@@ -297,6 +297,9 @@ export default {
imageTemplate.adapter.add('longitude', function (longitude, target) {
const polygon = polygonSeries.getPolygonById(target.dataItem.dataContext.id)
if (polygon) {
if (target.dataItem.dataContext.id === 'RU') {
return 90
}
return polygon.visualLongitude
}
return longitude

View File

@@ -331,6 +331,9 @@ export default {
imageTemplate.adapter.add('longitude', function (longitude, target) {
const polygon = polygonSeries.getPolygonById(target.dataItem.dataContext.id)
if (polygon) {
if (target.dataItem.dataContext.id === 'RU') {
return 90
}
return polygon.visualLongitude
}
return longitude