高德默认的是蓝色的标签,我们自己自己改一下样式。加上一下样式就能更改标签的颜色
<style>
   .amap-marker-label{
      position: absolute;
      z-index: 2;
      border: 1px solid #ccc;
      background-color: white;
      white-space: nowrap;
      cursor: default;
      padding: 3px;
      font-size: 12px;
      line-height: 14px;
   }
</style>

结果如下图:

高德地图修改label的样式

相关文章:

  • 2021-09-07
  • 2022-12-23
  • 2021-12-06
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
猜你喜欢
  • 2021-08-24
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案