var myCustomFormat:TextFormat = new TextFormat();
myCustomFormat.color=0xFF0000;
myCustomFormat.size=14;
myCustomFormat.font="Times New Roman";
var m_RedRockCanyon:Marker = new Marker(
new LatLng(33.056304,-112.76083),
new MarkerOptions({
strokeStyle: new StrokeStyle({color: 00000000, alpha:
0.0}),
fillStyle: new FillStyle({color: 0x223344, alpha:
0.0}),
label: "Red\nRock\nCanyon",
labelFormat: myCustomFormat,
hasShadow: true
}))
map.addOverlay(m_RedRockCanyon);
If the font isn't a client side system font you'll need to embed it (I
suggest a style sheet version of this as it seems cleanest/easiest to me).
Also notice the carriage returns I added... honestly not sure if those'll
work cause it depends on the underlying control that it assigns the text to
but I'm assuming a TextField since it takes a TextFormat for the labelFormat
parameter and the TextField.setFormat is the only class I know that uses the
TextFormat, that also depends on the instance they create internally having
multiline=true set on it. Don't worry it's not you it's the documentation,
you have to sacrifice your soul to it and in a symbiotic union it reveals
itself to you... :)
--
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api-for-flash?hl=en.