Hi Tanka,
No need to be sorry. :-) There is no silly question, but silly answer like
this one.
There are at least two ways.
1. simplest way is to configure InfoWindowOptions, like below.
new InfoWindowOptions({title: "Hello", contentHTML: "<img
src=Logo.100x100.jpg' />", height:150})
You need to read this reference:
http://code.google.com/apis/maps/documentation/flash/reference.html#InfoWindowOptions
2. more proper way, as i personally prefer, is to create 'customContent':
DisplayObject, which requires more ActionScript programming skills. The
example would be:
http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/CustomInfoWindowTabsDemo/CustomInfoWindowTabsDemo.html
Juguang
On Mon, Jul 27, 2009 at 5:15 AM, Tanka <[email protected]> wrote:
>
> Hello,
>
> I am sorry for the basicness of this post but it is really bugging me
> and i just need pointing in the right direction. I have been learning
> Actionscript 3 for the past two weeks and i am making a website using
> that and flash. I have created a Google Maps instance and i have
> centred it on my location, got an infowindow etc but it is just the
> basic one.
>
> I would like it to be just a simple image which has customised text
> and a company logo in it as i figured that is easiest to do rather
> than adding a logo image and trying to format the text. Can anyone
> point me in the right direction for this or just tell me or hint as to
> what code needs to be added, at the moment the section of my code
> simply looks like:
>
> function onMapReady(event:MapEvent):void {
> map.setCenter(new LatLng(51.494186,-0.254707), 15,
> MapType.NORMAL_MAP_TYPE);
> map.addControl(new ZoomControl());
> map.addControl(new PositionControl());
> map.openInfoWindow(map.getCenter(), new InfoWindowOptions({title: "My
> Title", content: "My Content"}));
> }
>
> Again sorry that this post is basic but i really appreciate any help
> or any nudges in the right direction.
>
> Thanks :-)
> >
>
--
=============
Juguang XIAO
Beijing, China
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---