Pregunta

I have a special marker cluster where the text is not properly aligned.

I have tried everything to move the text position:

 Gmaps.map.customClusterer = function () {

    return [
        {
            textSize: 10,
            textColor: '#000',
            url: '<%= asset_path 'grey-dot-2.png' %>',
            height: 38,
            width: 38,
            raw: 'anchorText: [5,0]',
            anchorText: [5,0],
            opt_anchorText: [5,0]
        }
    ];
};

But the text is always rendered in the same place. Any idea?

¿Fue útil?

Solución

Try anchor: [5, 0]

I was having a similar issue and I think it was just a different markerCluster version being used.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top