antvis / L7Plot

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

🤔 [QUESTION] 对于 Choropleth 行政区划图,有没有什么方法可以让鼠标移入时的颜色为当前颜色加深一点,而不是指定某个颜色 #346

Closed CodingAndSleeping closed 5 months ago

CodingAndSleeping commented 8 months ago
{
  state: {
    active: {
      fill: false,
      stroke: 'yellow',
      lineWidth: 1.5,
      lineOpacity: 0.8,
    }
  }
}

其中的fill 指定高亮时的颜色,但是我想让他当前的颜色加深一些,而不是指定某个颜色,参考quickBI 的效果

lvisei commented 6 months ago

通过设置填充颜色的透明度试试