I am using Google Maps Symbols as markers for my map. Specifically, I'm using the predefined Circle symbol. However, the circle appear hollow from inside. fillColor is ignored but strokeColor works.
Is it possible to fill the circle with color?
var marker = new google.maps.Marker({
position: myLatlng,
icon: {
path: google.maps.SymbolPath.CIRCLE,
scale: 4,
strokeWeight: 2,
fillColor: colors[parseInt(idx)],
strokeColor: colors[parseInt(idx)]
},
map: map
});
The default value for fillOpacity is 0. So you should set it to 1:
fillOpacity: 1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With