Larry

I want to created a minimap inside directions, each time the user
hovers over the GRoute element.
For this reason I wanted to create a listener.
Indeed, the myRoute is not a DOM....

Here is the map : http://internal.myroute.be/dev/routeplanner/index.html

On Apr 6, 3:47 pm, "[email protected]" <[email protected]>
wrote:
> 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-...http://groups.google.com/group/Google-Maps-API/web/why-including-a-li...
>
>   -- 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.

Reply via email to