Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layer点击事件失效 #30

Closed
chenrongda opened this issue Sep 9, 2019 · 0 comments
Closed

Layer点击事件失效 #30

chenrongda opened this issue Sep 9, 2019 · 0 comments
Assignees
Labels
bug 这个是一个 bug

Comments

@chenrongda
Copy link

我使用PointLayer进行点数据进行展示,发现shape()如果使用了“image:local”自定义图片标注的话,鼠标事件(click,dblclick等等)全都失效。如果不使用“image:local”,鼠标事件能正常。

scene.image.addImage('local','https://gw.alipayobjects.com/zos/rmsportal/xZXhTxbglnuTmZEwqQrE.png');
var pl = scene.PointLayer({visable:false,zIndex: 0})
.source(data.list,{
parser: {
type: 'json',
x: 'longitude',
y: 'latitude',
}
}).size(30).shape('image:local').color('#FFF').render();
pl.on('click',function(feature){
console.log(feature);
})

L7版本是1.3.4

@lzxue lzxue self-assigned this Sep 9, 2019
@lzxue lzxue added the bug 这个是一个 bug label Sep 9, 2019
@lzxue lzxue closed this as completed in 045f4f6 Sep 9, 2019
lzxue added a commit that referenced this issue Mar 5, 2020
fix 2d 图形,文本渲染的APi strokeColor -> stroke
lzxue added a commit that referenced this issue Mar 6, 2020
fix 2d 图形,文本渲染的APi strokeColor -> stroke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 这个是一个 bug
Projects
None yet
Development

No branches or pull requests

2 participants