On Nov 1, 9:36 am, xelawho <[email protected]> wrote: > > Two challenges then - figure out where you want the infowindow to be > > placed. Then use that placement to open an infowindow. > > This is probably going to be easier to manage without involving > > simulated poly clicks at all i.e. make a new a special function that > > handles the sidebar clicks and does these jobs directly. > > thanks, Rossko. I'm thinking that this: > if (!pts) point = poly.getVertex(Math.floor(poly.getVertexCount()/2)); > > will tell it to open the infowindow halfway along, but I'm a little > floored as to what the special function would look like to handle the > sidebar clicks and do these jobs directly would look like. You > wouldn't happen to know of a working example I could look at?
This example: http://www.geocodezip.com/GenericMapBrowser.asp?filename=RiverWalk080702e.xml >From one of your earlier posts is a working example (and that code comes from there). This is the code in the sidebar generates a click event on the polyline: label = "<a href='javascript:GEvent.trigger(gpolys["+poly_num +"],\"click\");'>"+label+"</a>"; -- Larry > > cheers, > > Lucas -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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?hl=en.
