2016-03-16 82 views
-1

我已在Google地圖中使用以下樣式實施了Markercluster。一切都很好,但標記集羣的文本在擺弄地圖後變成藍色。我希望文字是白色的。Google地圖集羣圖標文本顏色變爲藍色

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"

回答

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; } 
      }, 
+0

非常感謝,修復它。 :) –