* fix: 修复 pointLayer animate 模式 opacity 失效

* style: lint style
This commit is contained in:
YiQianYao 2022-02-11 11:29:06 +08:00 committed by GitHub
parent b2bf06ee86
commit a4e1f18f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -111,9 +111,9 @@ void main() {
} else { } else {
gl_FragColor = filterColor(gl_FragColor); gl_FragColor = filterColor(gl_FragColor);
} }
gl_FragColor.a *= opacity;
} else { } else {
gl_FragColor = filterColor(gl_FragColor); gl_FragColor = filterColor(gl_FragColor);
} }
if(u_additive > 0.0) { if(u_additive > 0.0) {

View File

@ -104,6 +104,7 @@ export default class GaodeMapComponent extends React.Component {
// .size([10, 10, 100]) // .size([10, 10, 100])
.size(100) .size(100)
.style({ .style({
// opacity: 0.1,
stroke: '#f00', stroke: '#f00',
// strokeWidth: 10, // strokeWidth: 10,
strokeWidth: 0, strokeWidth: 0,