我正在尝试更改地图上标记的图标,但是当我显示超过20个弹簧时,图标会出现黑色阴影。
使用Javascript:
for (var i in markers) {
var marker = new google.maps.Marker({
position: new google.maps.LatLng(markers[i].lat, markers[i].lng),
map: map,
icon: 'icons/google/employe-male-red.png',
draggable: false
});
marker.markerId = markers[i].markerId;
marker.infoWindow = new google.maps.InfoWindow({
content: markers[i].infoWindows
});
}