I've put a map inside a Flash movie, I've added a marker and on
ROLL_OVER event I show an Info Window, but I can't put both text and
image inside it, I can only put one or the other.
In example with this code I can put an image, but I don't know how to
add some text
var request:URLRequest = new URLRequest("immagini/img.jpg");
var imageLoader:Loader = new Loader();
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
function(event:Event):void {
var options:InfoWindowOptions = new
InfoWindowOptions({
customContent: imageLoader,
hasCloseButton:true,
drawDefaultFrame:true
});
map.openInfoWindow(e.latLng,options);
}
);
imageLoader.load(request);
With this other code I can write text, but can't add an image
map.openInfoWindow(e.latLng, new InfoWindowOptions({
titleHTML: "Info Title",
contentHTML: "Other text"
}));
How can I put text and image inside the info window?
--
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.