Well put! Kind of a good thing I caught this post. I had no idea that the customInfoWindow option in the flash Google map api was so powerful.
AS3novice if you want to throw an image in your infoWindow and use html for now and work on the customInfoWindow later once you get a grip on the AS3 language you would add this on you existing XML <?xml version="1.0" encoding="utf-8"?> <map_xml> <location> <lat>40.71081672515426</lat> <lon>-4.01276707649231</lon> <name_tip>Majanicho</name_tip> <title_tip><![CDATA[Majanicho] ]></title_tip> <content_tip><![CDATA[sculpt the air. <img src="YOUR IMAGE PATH" alt="" height="" width="" align="right" />]]></content_tip> </location> </map_xml> That would be the easiest way. If it doesn't work email me your code and I will get it running for you. If you need help with the HTML consult W3 Schools http://www.w3schools.com/html/html_images.asp When I get some time to add the customInfoWindow to one of my projects I will help you with the customInfoWindow unless someone here can point you to a good tutorial. On Mon, Jan 4, 2010 at 9:43 AM, kmac <[email protected]> wrote: > > I understand that there are only limited capabilities > > "contentHTML" is valid option, and might be right for your > circumstances. > > But its indiscriminate use in Flash can produce something that > resembles putting lipstick on a pig. > > The API gives you three options to create content within an > InfoWindow: "InfoWindowOptions.content" for simple textual content > laid out in a paragraph, "InfoWindowOptions.contentHTML" for a > slightly more expressive HTML-based approach to layout (albeit with a > very limited selection of HTML available to you), and > "InfoWindowOptions.customContent" for Flash developers. > > It's a combination of the developer's skills and the requirements that > dictate the option used. > > For a developer proficient in ActionScript 3, "customContent" can > satisfy all requirements, but with greater development effort. > > The jump from "contentHTML" to "customContent", both in implementation > effort and concepts, needs to be considered. So, if you're less of a > software developer and more of an animator / artist (and speak of > things like "timelines" and "movie clips") you might want to try > "contentHTML" first to see if this can meet your needs. > > > > On Jan 4, 12:22 pm, Daniel <[email protected]> wrote: > > What are the problems with using the img tag to embed and image inside > the > > htmlText string, that is inside the infoWindow's content area. If there > is > > already a text field that is being used and you add an image to that text > > field are you saying that flash will handle the text field differently. I > am > > confused if there is a performance issue or a formatting issue. I > understand > > that there are only limited capabilities when you add and image to > htmlText > > inside the infoWindow. > > > > Thanks in advance. > > > > > > > > On Mon, Jan 4, 2010 at 1:19 AM, AS3novice <[email protected]> > wrote: > > > So far I have just followed this tutorial > > > > >http://active.tutsplus.com/tutorials/xml/implement-a-map-using-the-go. > .. > > > > > In the timeline I have.... > > > One Layer has an Action script for the map with zoom controls > > > One layer has the Google Map > > > In the same folder as the Fla file is an XML file for Markers, > > > ToolTips, InfoWindow > > > > > I can start again if there is a better way, I just want to be able to > > > add pictures to various Lat/Lon point on a google map within my own > > > website. > > > > > Thanks > > > > > On Jan 4, 9:55 am, Daniel <[email protected]> wrote: > > > > Are you programming you map using classes or are you adding the > action > > > > script to your timeline? > > > > > > On Sun, Jan 3, 2010 at 10:43 PM, AS3novice <[email protected]> > > > wrote: > > > > > Daniel, Jonathan Wagner,www.landed.at > > > > > Thanks for all the suggestions. Much appreciated. > > > > > > > Daniel > > > > > I am not sure if you sent me a PM, as I received an email but there > > > > > was nothing included. Anyway if you did thanks, but sadly nothing > > > > > attached. > > > > > > > Www.landed.at > > > > > I am a bit confused. Are you saying the HTML suggestion by Daniel > in > > > > > his post, or the way I have made the Markers, ToolTips and Info > > > > > Windows using this tutorial, > > > > > > > > http://active.tutsplus.com/tutorials/xml/implement-a-map-using-the-go. > > > .. > > > > > is not the way to go. > > > > > I do not care how I do it, as long as it is currently the best way. > > > > > I followed your suggestion and have searched long and hard > > > > > customInfoWindow. The problem is … > > > > > > > Most posts are trying to find the same or similar answers with no > > > > > conclusion > > > > > > > They have a demo but inevitably they use TEXT as an example not an > > > > > IMAGE. An example being... > > > > > > > > http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/CustomInfoW. > > > .. > > > > > > > Jonathan Wagner > > > > > Thanks for the link. > > > > > I have found one way to add an image but it uses an URL link and I > > > > > would prefer my image files to be local. > > > > > > > > http://gmaps-samples-flash.googlecode.com/svn/trunk/examples/GroundOv. > > > .. > > > > > > > As I have said I am happy to avoid HTML, but I need to find out > how. > > > > > Posting code does not really help someone with my AS3 knowledge > > > > > without a tutorial or a detailed explanation on how to use the code > > > > > with in Flash. > > > > > > > There seems to be a lot of Demo's, File downloads and snippets of > code > > > > > out there, but very few tutorials like .. > > > > > > > > http://active.tutsplus.com/tutorials/xml/implement-a-map-using-the-go. > > > .. > > > > > > > which was easy to follow if only it had included images. > > > > > > > -- > > > > > > > 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]<google-maps-api-for-flash%[email protected]><google-maps-api-for- > flash%[email protected]<flash%[email protected]> > > > > > <google-maps-api-for-flash%[email protected]<flash%[email protected]><flash%252Bunsubs > [email protected]> > > > > > > > . > > > > > For more options, visit this group at > > > > > > http://groups.google.com/group/google-maps-api-for-flash?hl=en.-Hide > > > quoted text - > > > > > > - Show quoted text - > > > > > -- > > > > > 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]<google-maps-api-for-flash%[email protected]><google-maps-api-for- > flash%[email protected]<flash%[email protected]> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-maps-api-for-flash?hl=en. > > -- > > 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]<google-maps-api-for-flash%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api-for-flash?hl=en. > > > -- 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.
