问题描述
我有以下两个地图系列,描述了美国各州和加拿大各省,我想找到一种策略,让我的 heatRules 数据在两个系列中均匀应用,基本上是一个 heatrule
跨多个地图系列.. .
let usaSeries = chartRef.current.mapChart.series.push(new am4maps.MappolygonSeries());
usaSeries.geodata = am4geodata_usaLow
usaSeries.heatRules.push({
"property": "fill","target": usaSeries.mappolygons.template,"min": am4core.color("#ffffff"),"max": am4core.color("#AAAA00"),});
usaSeries.data = heatdata //(statecode,value)
//Canada
let cadSeries = chartRef.current.mapChart.series.push(new am4maps.MappolygonSeries());
cadSeries.geodata = am4geodata_canadaLow
cadSeries.heatRules.push({
"property": "fill","target": cadSeries.mappolygons.template,"logarithmic": true
});
cadSeries.data = heatdata //(statecode,value)
现在它只是创建两个单独的加热规则。有没有办法将这些结合起来然后应用热规则?或其他可用的策略?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)