Text color doesnot change in Maps Info window

DanneG

New Member
I am trying to customize text in google maps info window. I have a CSS file which has the following: \[code\].zabove {color:#ff0000; font-weight: bold;} // red and bold.zbelow {color:#14d714;} // green\[/code\]And in the java class depending on a value for foo, I try to set the color of a label by using the setStyle method:\[code\]if(foo>100){ label.setStyle("zbove");} else { label.setStyle("zbelow");\[/code\]The above does not result me any color, the text is just black.
 
Top