Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4bf0c3d60 |
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user