-
Notifications
You must be signed in to change notification settings - Fork 30
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
🐛 [BUG] #238
Comments
是指类型问题是吧 |
对的 type PolygonLayerStyleOptions 在源文件里面之定义了 opacity?: number; 并没有raisingHeight 等其他属性 所以我不知道怎么使用raisingHeight 就手动改源文件了。这个是就这样设计的吗 还是说我用错了.. |
就像这段代码 const layerOptions: Omit<TextLayerProps, 'source'> = {
autoFit: true,
field: 'text',
style: {
fill: {
field: 't',
value: [
'#ffba08',
'#faa307',
'#f48c06',
'#e85d04',
'#dc2f02',
'#d00000',
'#9d0208',
'#6a040f',
'#370617',
'#03071e',
],
},
opacity: 1,
fontSize: 18,
textAnchor: 'center', // 文本相对锚点的位置 center|left|right|top|bottom|top-left
spacing: 2, // 字符间距
padding: [1, 1], // 文本包围盒 padding [水平,垂直],影响碰撞检测结果,避免相邻文本靠的太近
stroke: '#0ff', // 描边颜色
strokeWidth: 0.2, // 描边宽度
textAllowOverlap: true,
raisingHeight: 200000 + 150000 + 10000,
},
}; 所以 是我的用法错了吗。。。。 |
类型没有更新,可以来提 PR 帮忙加一下~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PolygonLayerProps 配置 raisingHeight高度无效
需要手动在源文件中增加才可以
/Users/canonls/Desktop/CanonLs/tempReact/node_modules/.pnpm/@AntV+l7-composite-layers@0.17.1_@antv[email protected]/node_modules/@antv/l7-composite-layers/dist/lib/core-layers/polygon-layer/types.d.ts
🐛 Bug description [Please make everyone to understand it]
📷 Step to reproduce
🏞 Expected result
🚑 Any additional [like screenshots]
The text was updated successfully, but these errors were encountered: