Shihui dev (#855)

* feat: 修复点图层叠加模式 additive 存在不需要的混合结果

* style: lint style
This commit is contained in:
YiQianYao 2021-11-30 16:20:18 +08:00 committed by GitHub
parent 6b7df5359e
commit 9536e87433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -105,5 +105,6 @@ void main() {
}
gl_FragColor = filterColor(gl_FragColor);
gl_FragColor.rgb *= gl_FragColor.a;
}

View File

@ -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(
[
{