OK, stuck again on this.  Two things:

How do I change the font on for a TextField?  It's the textFont part
that isn't working.

This isn't quite working:
        var textField:TextField = new TextField();
                textField.autoSize = TextFieldAutoSize.CENTER;
                textField.text = "Red\nRock\nCanyon";
                textField.x = -textField.width/2;
                textField.y = -textField.height/2;
                                textField.textColor=0xFF0000;
                                textField.textFont = "Verdana";

...And how do I get my roll-over hyperlink finger to come back when I
convert a marker to an icon/text field like this.  The link is fine,
just doesn't look like one to user:

                var m_RedRockCanyon:Marker = new Marker(
                    new LatLng(33.056304,-112.76083),
                    new MarkerOptions({
                        icon: textField,
                        hasShadow: false
                    }))
                                
m_RedRockCanyon.addEventListener(MapMouseEvent.CLICK,
m_RedRockCanyon_ClickHandler);
                        function 
m_RedRockCanyon_ClickHandler(event:MapMouseEvent):void {
            navigateToURL(new URLRequest("http://sonoranheritage.org/
wilderness/red_rock_canyon"));
            }
                    map.addOverlay(m_RedRockCanyon);

Thanks!

Cameron



On Mar 31, 2:50 pm, Cameron Ellis <[email protected]> wrote:
> Awesome Shaun.  Thanks so much... and that looks like a cool company
> you work for.
>
> Cameron
>
> On Mar 31, 1:45 pm, Shaun <[email protected]> wrote:
>
>
>
>
>
>
>
> > Updated to get the alignment of the text corrected and add the text
> > coloring, think this should be all you need now:
>
> >                 var textField:TextField=new TextField();
> >                 textField.autoSize=TextFieldAutoSize.CENTER;
> >                 textField.htmlText="<p
> > align='center'>Red\nRock\nCanyon</p>";
> >                 textField.textColor=0xFF0000;
> >                 textField.x=-textField.width / 2;
> >                 textField.y=-textField.height / 2;
>
> >                 var m_RedRockCanyon:Marker=new Marker(new LatLng(33.056304,
> > -112.76083), new MarkerOptions({icon: textField, hasShadow: true}))
> >                 theMap.addOverlay(m_RedRockCanyon);
>
> > This support paid for you in part, by Google in the form of t-shirts and
> > pens sent to me, and the occasional down time at Roundarch.com (the company
> > that keeps me alive and happy), gotta throw the promo in there at least :)

-- 
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.

Reply via email to