CN-1317 fix: 调整地图上俄罗斯的圆点位置
This commit is contained in:
@@ -297,6 +297,9 @@ export default {
|
|||||||
imageTemplate.adapter.add('longitude', function (longitude, target) {
|
imageTemplate.adapter.add('longitude', function (longitude, target) {
|
||||||
const polygon = polygonSeries.getPolygonById(target.dataItem.dataContext.id)
|
const polygon = polygonSeries.getPolygonById(target.dataItem.dataContext.id)
|
||||||
if (polygon) {
|
if (polygon) {
|
||||||
|
if (target.dataItem.dataContext.id === 'RU') {
|
||||||
|
return 90
|
||||||
|
}
|
||||||
return polygon.visualLongitude
|
return polygon.visualLongitude
|
||||||
}
|
}
|
||||||
return longitude
|
return longitude
|
||||||
|
|||||||
@@ -331,6 +331,9 @@ export default {
|
|||||||
imageTemplate.adapter.add('longitude', function (longitude, target) {
|
imageTemplate.adapter.add('longitude', function (longitude, target) {
|
||||||
const polygon = polygonSeries.getPolygonById(target.dataItem.dataContext.id)
|
const polygon = polygonSeries.getPolygonById(target.dataItem.dataContext.id)
|
||||||
if (polygon) {
|
if (polygon) {
|
||||||
|
if (target.dataItem.dataContext.id === 'RU') {
|
||||||
|
return 90
|
||||||
|
}
|
||||||
return polygon.visualLongitude
|
return polygon.visualLongitude
|
||||||
}
|
}
|
||||||
return longitude
|
return longitude
|
||||||
|
|||||||
Reference in New Issue
Block a user