Вопрос

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?

Это было полезно?

Решение

Try anchor: [5, 0]

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top