高德默认的是蓝色的标签,我们自己自己改一下样式。加上一下样式就能更改标签的颜色
//修改高德地图的标签样式
.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;
}
修改之后的样式
修改前