// 针对海南放大 if (pName == '海南') { option.series[1].center = [109.844902, 19.0392]; option.series[1].layoutCenter = ['50%', '50%']; option.series[1].layoutSize = "300%"; } else { //非显示海南时,将设置的参数恢复默认值 option.series[1].center = undefined; option.series[1].layoutCenter = undefined; option.series[1].layoutSize = undefined; }
Done!