Google Maps Cluster图标文字变为蓝色

时间:2016-03-16 14:35:50

标签: google-maps ionic-framework markerclusterer

我已在Google地图中使用以下样式实施了Markercluster。一切都很好,但是在摆弄地图后,标记簇的文本变成了蓝色。我希望文字是白色的。

  styles: [{
                        height: 53,
                        url: markerIcons.clusterM1,
                        width: 53,
                        textColor: "white",
                        textDecoration: "none"
        },
                    {
                        height: 56,
                        url: markerIcons.clusterM2,
                        width: 56,
                        textColor: "white",
                        textDecoration: "none"
            },
                    {
                        height: 66,
                        url: markerIcons.clusterM3,
                        width: 66,
                        textColor: "white",
                        textDecoration: "none"
            },
                    {
                        height: 78,
                        url: markerIcons.clusterM4,
                        width: 78,
                        textColor: "white",
                        textDecoration: "none"
            },
                    {
                        height: 90,
                        url: markerIcons.clusterM5,
                        width: 90,
                        textColor: "white",
                        textDecoration: "none"
            }]
            });

"screenshot of the map"

1 个答案:

答案 0 :(得分:0)

这是因为它成为超文本文本,使文本加下划线和蓝色。

你能扩展你的css对象以包含超链接样式吗?

{
                        height: 78,
                        url: markerIcons.clusterM4,
                        width: 78,
                        textColor: "white",
                        textDecoration: "none",
                        a.register:link { color:#FFFFFF; text-decoration:none;},
                        a.register:visited { color: #FFFFFF; text-decoration:none;},
                        a.register:hover { color: #FFFFFF; text-decoration:underline; },
                        a.register:active { color: #FFFFFF; text-decoration:none; }
            },