Compare commits

...

1 Commits

Author SHA1 Message Date
chenjinsong
c4bf0c3d60 fix: 优化实体列表性能 2022-01-11 14:30:12 +08:00

View File

@@ -857,9 +857,9 @@ export default {
polygonTemplate.strokeWidth = 0.5 polygonTemplate.strokeWidth = 0.5
polygonTemplate.fill = am4Core.color('rgba(176,196,222,.5)') polygonTemplate.fill = am4Core.color('rgba(176,196,222,.5)')
polygonTemplate.events.on('hit', ev => { polygonTemplate.events.on('hit', ev => {
let countryId = ev.target.dataItem.dataContext.id const countryId = ev.target.dataItem.dataContext.id
countryId = countryId === 'Private IP' ? 'China' : countryId // countryId = countryId === 'Private IP' ? 'China' : countryId
if (countryId) { if (countryId && countryId !== 'Private IP') {
ev.target.series.chart.zoomToMapObject(ev.target) ev.target.series.chart.zoomToMapObject(ev.target)
ev.target.isHover = false ev.target.isHover = false
this.countrySeries = chart.series.push(new am4Maps.MapPolygonSeries()) this.countrySeries = chart.series.push(new am4Maps.MapPolygonSeries())