How to get new position of dragged marker

Do you checked this post?

Plugin is not defined