原文:【百度地图API1.1】修改文本标注的样式

百度地图API1.0中文本标注的样式写法为:

label.getDom().style.borderColor = "#808080";
label.getDom().style.color = "#333";
label.getDom().style.cursor = "pointer";

2010年12月,百度地图API升级至1.1版本,文本标注的样式写法需要修改为:(否则将会导致鼠标点击失灵)

label.setStyle({
        "borderColor": "#808080",
        "color": "#333",
        "cursor": "pointer"
      }); 

图示:

【百度地图API1.1】修改文本标注的样式

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
  • 2021-06-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案