I am creating placemark as follows
var placemark = ge.createPlacemark('');placemark.setName("Placemark1");
Now I want to show Text "Placemark1" in bold format with different font & in Red color.Also I want to keep size for the text in smaller font
How to achieve this?
Thanks & Regards,
Anirudha Deshpande
If you haven't already found a solution, you should check out
KmlLabelStyle.
http://code.google.com/apis/earth/documentation/reference/interface_kml_label_style-members.html
However, styling of labels is limited, and you'll really only be able
to change size and color of the text (pretty much the same options you
have if you create a placemark through the UI in the Google Earth
desktop client).
Cheers,
Brendan
style.getIconStyle().setScale(0.4); // this reduces the size of your placemarks style.getLabelStyle().setScale(0.8); //Sets the scale for the setName label. (This changes the font size of your label) style.getLabelStyle().getColor().set('ff0000ff'); //This line sets the color of the label in this case redI know this is way later than when you expected a reply, but i could not find a concrete solution to setting the color of a label recently, with some trial and error got the solution. Hope this helps.
Thanks,
Chandra