提交 951021ce 编写于 作者: Q qiang

feat: Map markerLabel anchorX/anchorY

上级 5dbdea4c
......@@ -168,8 +168,8 @@ export default {
color: labelOpt.color,
fontSize: (labelOpt.fontSize || 14) + 'px',
lineHeight: (labelOpt.fontSize || 14) + 'px',
marginLeft: (Number(labelOpt.x) || 0) + 'px',
marginTop: (Number(labelOpt.y) || 0) + 'px'
marginLeft: (Number(labelOpt.anchorX || labelOpt.x) || 0) + 'px',
marginTop: (Number(labelOpt.anchorY || labelOpt.y) || 0) + 'px'
}
if ('Label' in maps) {
label = new maps.Label({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册