Identify Marker in Marker Position Changed Event

Hi.
I have implemented two draggable markers in my maps component.
Both of them invoke the marker changed event correctly and return their lat/long coordinates.
But I can’t identify which marker was moved.
Is there a way to do that?

1 Like

@patrick Please help.
I’ve had to created two separate maps with one marker each to get the functionality working. And it does not look like a good solution at all.

Hello Sid,
In the current version the marker id was not available for the marker move event.
Here’s an updated version that includes it:

dmxGoogleMaps.js.zip (7.0 KB)

You can use the marker id the same way as the lat/lon are available:

$event.id

That works. Thanks Teodor.

BTW, are you taking over Patrick’s coding responsibilities? :laughing:
Don’t you have enough on your plate already?

2 Likes