On May 21, 2:58 pm, nlraley82 <[email protected]> wrote: > Well my markers were created as generic start and finish markers; however, > they were stored in separate locations in the array. Each marker does have > a unique listener event for them though. Is there a way to pull the id of > the listener event or do I need to rework the marker names real quick during > the marker creation?
I would think there would be a way to get an id associated with the maker somehow without reworking your existing code, but I can only guess as you haven't provided a link to your map as requested in the posting guidelines (and I am done guessing) 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 > > Thanks, > Nathan > > On Fri, May 21, 2010 at 4:49 PM, [email protected] > <[email protected]>wrote: > > > > > > > On May 21, 2:38 pm, nlraley82 <[email protected]> wrote: > > > I have went through and created markers as I have been reading the points > > > from parts of my code in c++. I was wandering. I have created a dragend > > > event for each marker with the event listener being created dynamically > > for > > > each new marker, ie each marker has its own event listener. > > > > Is there any way I can retrieve either the id of the marker or preferably > > > the id of the event listener on this drag end event so I can tell which > > > item's marker is actually being dragged? > > > Yes. If you followed Mike's tutorials and are using function closure, > > you should be able to access any properties of the marker and the > > values of any variables in the function on which you got closure. > > > -- 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]<google-maps-api%2bunsubscr...@googlegroups.com> > > . > > > For more options, visit this group athttp:// > > groups.google.com/group/google-maps-api?hl=en. > > > -- > > 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]<google-maps-api%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-maps-api?hl=en. > > -- > 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 > athttp://groups.google.com/group/google-maps-api?hl=en.- Hide quoted text - > > - Show quoted text - -- 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.
