Hello.  I am having problems trying to determine how to display local
images in either an infowindow or a GOverlay.  I currently have about
20 markers on my map, each with unique infowindows.  However, I now
need to display images with these markers somehow.  My optimal goal
would be to have the images georeferenced as a ground overlay, however
I believe that adding the images in the infowindow will be a good
starting point.

I have come across many, many threads where people are asking about a
similar issue.  However, all the responses refer to using an html with
contentHTML in the infowindow options.  I need to mimic this idea, but
with LOCAL images.  I can not express that enough. :)

I have tried making the images a part of my XML project and made sure
they are in the same directory as my swf.  I have even tried using the
photo's relative path and still to no avail.  Here is the simplest
example the segment of my code for the simplest attempt at loading an
image to the infowindow:

var markerB:Marker = new Marker(
  new LatLng(29.038691, -80.906290),
  new MarkerOptions({
     fillStyle: new FillStyle({color: 0x223344, alpha: 0.8}),
     hasShadow: true }));
markerB.addEventListener(MapMouseEvent.CLICK, function (e:Event):void
{
markerB.openInfoWindow(new InfoWindowOptions({contentHTML:<img
src='example.jpg'/>,
width: 300,
height: 120}));});

With this coding, when I click on the marker, the resized infowindow
appears, but is empty.  Can someone please help with how I can make
this happen?  Or if someone has input on using an image overlay that
does not use a URL loader.  Again, I would be trying to overlay a
local image in the project folder.

Thanks for any help!

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