Reimers.dk

.NET, AJAX and Google APIs brought together
Welcome to Reimers.dk Sign in | Join | Help
in Search

Get info on a polyline

Last post 12-09-2009, 21:06 by jjrdk. 1 replies.
Sort Posts: Previous Next
  •  12-08-2009, 13:18 2896

    Get info on a polyline

    I have several polylines combined to a trail. I can catch the event of the user clicking on a polyline, but I can't get any information from code behind. When I create the polyilne, I set some information to GooglePolyline.Options.Description that I would like to show to the user when he/she click the polyline, but when the event rises in code behind, the field Description is empty.

    Is there some what to show information on a polyline click? Maybe InfoWindows?


  •  12-09-2009, 21:06 2899 in reply to 2896

    Re: Get info on a polyline

    I'm sorry, but there seems to be a bug for this. The description does not get serialized when rendering the map. I'll be sure to get that fixed.

    In the meanwhile what you can do is to use the clientside event handlers (ClientsideHandlers property) and set the it to open an infowindow with the content you define.

    I'll let you know as soon as I get a fix in for this. 

View as RSS news feed in XML