We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我使用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
The text was updated successfully, but these errors were encountered:
045f4f6
fix pointlayer image shape event fix #30
d658c04
fix 2d 图形,文本渲染的APi strokeColor -> stroke
69ff309
lzxue
No branches or pull requests
我使用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
The text was updated successfully, but these errors were encountered: