百度地图之Label样式

问题:百度地图中的LABEL显示文字不在框里。

原因:bootstrap中为label加了样式:max-width:100%;

解决办法:设置maxWidth:"none"


label.setStyle({borderRadius:"8px",padding:'2px',maxWidth:"none" });

猜你喜欢

转载自blog.csdn.net/happygirlnan/article/details/84956458