2016-03-16 6 views
-1

Я внедрил Markercluster со следующим стилем на Картах Google. Все в порядке, но текст кластера маркеров становится синим после возиться с картой. Я хочу, чтобы текст был белым.Текст значка кластера Google Maps становится синим цветом

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

спасибо, что исправил это. :) –