Okay, I found a relatively simple workaround for this.
I simply added a piece in my ZoneStartMarkerOptions as follows:
"title": idStart
so it now reads:
ZoneStartMarkerOptions = { "icon": StartPoint, "clickable": true,
"draggable": true, "title": idStart};
idStart is my unique ID for my marker.
Then in my listener event I added:
ZoneID = StartMarker.getTitle();
Which returned the unique ID of the marker I needed to retrieve.
Thanks
On Mon, May 24, 2010 at 8:19 AM, nlraley82 <[email protected]> wrote:
> When that dragend event occurs I want to retrieve the marker id, which I
> want to be the idFinish value for a Finish marker and an idStart value for a
> start marker.
>
> That make sense?
>
>
> On Mon, May 24, 2010 at 8:17 AM, Andrew Leach <
> [email protected]> wrote:
>
>> On 24 May 2010 14:08, nlraley82 <[email protected]> wrote:
>> > I have several functions to add my markers to my map, but I am pretty
>> much
>> > doing the same thing each time. Now I need each marker to have a unique
>> id
>> > or to be able to call the name or id of the listener for the marker. I
>> need
>> > to include this into my update string. Any ideas?
>>
>> I don't understand what you want to achieve.
>>
>> It looks like what you might want is
>> GEvent.trigger(ZoneStartFinishMarkers[idFinish], "dragend");
>> changing the array index as required.
>>
>> Andrew
>> --
>> Andrew C Leach
>>
>> --
>> 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%[email protected]>
>> .
>> 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 at
http://groups.google.com/group/google-maps-api?hl=en.