Jump to content
uniGUI Discussion Forums

Google Maps Marker Listener Event - Read Title - How

Recommended Posts

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]);'+
                     '  }'+

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now