Closed deviantony closed 8 years ago
Well in case anybody would want to do the same, I achieved that using the textColor
style property of the markers.
const markerStyle = [
{
height: 53,
url: '/path/to/marker1',
width: 52,
textColor: 'rgba(0, 0, 0, 0)',
},
{
height: 56,
url: '/path/to/marker2',
width: 55,
textColor: 'rgba(0, 0, 0, 0)',
},
{
height: 66,
url: '/path/to/marker3',
width: 65,
textColor: 'rgba(0, 0, 0, 0)',
},
{
height: 78,
url: '/path/to/marker4',
width: 77,
textColor: 'rgba(0, 0, 0, 0)',
},
{
height: 90,
url: '/path/to/marker5',
width: 89,
textColor: 'rgba(0, 0, 0, 0)',
},
];
...
<MarkerClusterer styles={ markerStyle } >
...
</MarkerClusterer>
Hi!
Is there a way to turn off the numbers being display in the cluster? I'd like to use the images only.