feat: 修复水波点选中高亮在边缘的显示错误

This commit is contained in:
2912401452 2022-02-14 14:56:15 +08:00
parent 8e83dfa631
commit 2132c1927a
2 changed files with 5 additions and 4 deletions

View File

@ -44,7 +44,7 @@ void main() {
gl_FragColor = vec4(v_color.xyz, v_color.a * opacity * intensity);
// TODO: 优化在水波纹情况下的拾取
if(d < 0.45) {
if(d < 0.5) {
gl_FragColor = filterColor(gl_FragColor);
}
}

View File

@ -23,7 +23,7 @@ export default class GaodeMapComponent extends React.Component {
center: aspaceLnglat,
// pitch: 0,
pitch: 40,
// style: 'dark',
style: 'dark',
zoom: 17,
// dragEnable: false
}),
@ -105,7 +105,8 @@ export default class GaodeMapComponent extends React.Component {
)
.shape('circle')
// .color('#0f9')
.color('#4169E1')
// .color('#4169E1')
.color('#4cfd47')
// .size([10, 10, 100])
.size(100)
// .animate({
@ -113,7 +114,7 @@ export default class GaodeMapComponent extends React.Component {
// enable: false,
// // type: 'www'
// })
// .animate(true)
.animate(true)
.active({ color: '#00f' })
.style({
// opacity: 0.5,