On Tue, Aug 30, 2011 at 6:43 PM, [email protected] <[email protected]> wrote: > On Aug 30, 7:19 am, "[email protected]" > <[email protected]> wrote: >> Hi all, >> >> I'm very very new to this, but am trying to build a campus map that >> shows info (e.g. buildings) overlayed on a map as well as a list that >> can be used to select from. >> >> I'm getting close to what I want here: >> >> http://www.som.cranfield.ac.uk/som/map/luke5.aspx >> >> All the information is being pulled from a KML file, with certain >> information being extracted via jquery to build the clickable list. >> The last part which I'm really struggling with is is to get the info >> window for the item that has been clicked on to display automatically >> with the name an description text held in the kml. I've searched high >> and low, but am man enough to admit when I've hit my limits!! > > I don't think you can do it with KmlLayer (I think there is an > outstanding feature request).
Its not using KmlLayer. The KML feed is parsed with custom code, on jQuery With that out of the way. easiest would be just to store, the title/description in an array (like you do with the coordinates) Then the click event can also open an info window. The documentation, has same sample code: http://code.google.com/apis/maps/documentation/javascript/overlays.html#InfoWindows shows how to open an info window. In that case its creating the window and making it open when the marker is clicked. You can just create it and open it directly in the click event you have on the LI's -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
