antvis / L7Plot

🌍 Geospatial Visualization Chart Library
https://l7plot.antv.antgroup.com
MIT License
83 stars 23 forks source link

在l7plot中设置填充兜底颜色-fillBottomColor,控制台报错 #273

Closed mwq216 closed 1 year ago

mwq216 commented 1 year ago

image 这是代码,是最近才出现的问题。之前还是可以正常使用的,插件没有做升级,不知道为突然提示错误了 image

lvisei commented 1 year ago

@mwq216 L7 没有这个属性了,L7Plot 更新为最新版本就好

mwq216 commented 1 year ago

那如果想设置兜底颜色是否有新的方法呢?

lvisei commented 1 year ago
{
  color: {
    field: 't',
    value: ['#B8E1FF', '#7DAAFF', '#3D76DD', '#0047A5', '#001D70'],
    scale: { type: 'quantile', unknown: '#c0c0c0' }
  }
}
mwq216 commented 1 year ago

多谢多谢,我看api文档上也有标注,之前忽略了