mirror of https://gitee.com/antv-l7/antv-l7
Shihui dev (#855)
* feat: 修复点图层叠加模式 additive 存在不需要的混合结果 * style: lint style
This commit is contained in:
parent
6b7df5359e
commit
9536e87433
|
@ -105,5 +105,6 @@ void main() {
|
|||
}
|
||||
|
||||
gl_FragColor = filterColor(gl_FragColor);
|
||||
gl_FragColor.rgb *= gl_FragColor.a;
|
||||
|
||||
}
|
||||
|
|
|
@ -17,13 +17,18 @@ export default class GaodeMapComponent extends React.Component {
|
|||
map: new GaodeMap({
|
||||
center: [121.107846, 30.267069],
|
||||
pitch: 0,
|
||||
style: 'normal',
|
||||
// style: 'normal',
|
||||
zoom: 20,
|
||||
animateEnable: false,
|
||||
}),
|
||||
});
|
||||
|
||||
const layer = new PointLayer()
|
||||
// normal = 'normal',
|
||||
// additive = 'additive',
|
||||
// subtractive = 'subtractive',
|
||||
// min = 'min',
|
||||
// max = 'max',
|
||||
// none = 'none',
|
||||
const layer = new PointLayer({ blend: 'additive' })
|
||||
.source(
|
||||
[
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue