José Ramírez
José Ramírez

Reputation: 389

Google Maps v3 - marker custom icon

I'm trying to change the icons of the markers on the map, but when I show more than 20 springs a black shadow to the icon.

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
    });
}

enter image description here

Upvotes: 1

Views: 212

Answers (1)

Rene Korss
Rene Korss

Reputation: 5494

Your marker icons have glow. So if many markers are in same place, it makes glow less transparent.

Lose glow or group markers with markerclusterer.

Upvotes: 2

Related Questions