Jump to content

Google Maps Marker Listener Event - Read Title - How


andyhill

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...