Thanks ,it works.
But when I set the contents as table, the whole table is not recogized. Why?
var divtmp:String="<table border=0><tr><td>";
var address:String=propItem.wholeAddressStr;
divtmp="<table><tr><td>"+address+"</td><td><img
src='"+ propItem.thumbURL +"'></img></td></tr></table>";
marker.openInfoWindow(new
InfoWindowOptions({contentHTML: divtmp}));
In the displayed infowindow, the image is just displayed under the address.
Does this because table tag is not recoginzed?
On Wed, May 6, 2009 at 4:07 PM, Erik Barron <[email protected]> wrote:
> Use this instead...
>
> marker.openInfoWindow(new InfoWindowOptions({contentHTML: Html address}));
>
> On Wed, May 6, 2009 at 2:09 PM, xhe <[email protected]> wrote:
>
>>
>> I checked Google Map Falsh documents but unfortunately, can not find
>> way to open htmlinfo window
>>
>> This is what I did:
>>
>> var marker:Marker = new Marker(latlng);
>> map.clearOverlays();
>> map.addOverlay(marker);
>> marker.openInfoWindow(new InfoWindowOptions({content: address}));
>>
>>
>> Here, the address variable is String type which include html tag. The
>> tag is displayed as is. I know in javascript google map api, there is
>> ownInfoWindowHTML, but in flash version, I can not find this method.
>>
>> So can anyone be kind enough to tell me how to display html contents
>> in the map infowindow?
>>
>> Thanks. >>
>>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---