andyhill Posted September 15, 2018 Share Posted September 15, 2018 I have a need to read the Title of the Marker being dragged but all my attempts fail, everything else works as expected - please advise how to read the Title inside the Listener Event - Thanks in advance. ' marker.addListener("drag", dragEvent);'+ ' function dragEvent(event)'+ ' {'+ ' var latitude = event.latLng.lat(); '+ ' var longitude = event.latLng.lng(); '+ ' var myTitle = marker.title; '+ // this.title(), this.getTitle(), event.title(), event.getTitle(), marker.title(), marker.getTitle() ' ajaxRequest(GPSmForm.UnimHTMLFrame1, "_BgnDragPoint", ["Lat="+latitude, "Lng="+longitude, "Title="+myTitle]);'+ ' }'+ Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 15, 2018 Share Posted September 15, 2018 Hi, Use this.title Quote Link to comment Share on other sites More sharing options...
andyhill Posted September 15, 2018 Author Share Posted September 15, 2018 Thanks, I tried this earlier but missed it's results in my coding cycle. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.