Hi all,

First off, I'm new to both AS 3.0 and Google maps API so it's safe to
assume I don't know much! (Up until now I've been using AS 2.0.)

I am trying to figure out how to change the font (size, color, font)
of the title and description of an infowindow.

My infowindows are called up from an xml file (like in this tutorial
http://active.tutsplus.com/tutorials/xml/implement-a-map-using-the-google-map-api-for-flash/)
so i can't figure out how the code demos and examples that pamela and
others have previously posted here would work with my project.

I figured out how to change the fill style, and figured maybe font
would be done similarly, so below is what I tried. The actionscript
reported no errors, but it didn't change the font. It's probably
something really easy, but any help would be appreciated! Thanks!

                // Add Markers On The Map
                function createMarker(latlng:LatLng, number:Number, tip, 
myTitle,
myContent):Marker {
                        var i:Marker = new Marker(
                         latlng,
                         new MarkerOptions({
        
hasShadow: true,
                                                                   tooltip: 
""+tip
                                                                                
   })
                         );
                        i.addEventListener(MapMouseEvent.CLICK, function
(event:MapMouseEvent):void ;
                        {
                                map.openInfoWindow(event.latLng, new 
InfoWindowOptions({;
                                fillStyle: {;
                                color: 333333,;
                                alpha: 90;
                                },;
                                titleFormat: {;
                                font: ("Verdana"),;
                                fontstyle: ("italic");
                                },;
                                width: 500,;
                                height: 400,;
                                titleHTML: ""+myTitle, ;
                                contentHTML: ""+myContent;
                                }));

                                });
                                return i;
                        }// end function createMarker
                }// end of loadXML function

                var xmlLoader:URLLoader = new URLLoader();
                xmlLoader.addEventListener(Event.COMPLETE, loadXML);
                xmlLoader.load(new URLRequest("xml.xml"));
        }
-- 
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