On Apr 6, 6:39 am, elgwiedo <[email protected]> wrote: > Hi, > > i am trying to add an DomListener to a route object. > > However when hovering over the route object , it does not work. > > for (j=0; j< myRoute.getNumSteps() ; j++) { > var stepdirection= > (myRoute.getStep(j).getDescriptionHtml() ); > > > $('.itinerary').append('<li>' + '<a>' + stepdirection + '</a>' > + '</li>' ) ; > > GEvent.addDomListener > (myRoute.getStep(j), 'click', function () > { > > > > GLog.write ("hover over route " + i + > " and step : " + j ); > > }) > > > $('#directions').append('</ol>')
1. Why? 2. What makes you think myRoute.getStep(j) returns a DOM element? 3. Where is your map? http://groups.google.com/group/google-maps-api/web/suggested-posting-guidelines http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps API" 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.
