Location.Empty with LineData

3 posts, 1 answers
  1. Jason D
    Jason D avatar
    130 posts
    Member since:
    Jan 2011

    Posted 15 Aug 2018 Link to this post

    I have a visualization layer bound to an observable collection of MapShapeData. There is a LineData in it whose initial points are Location.Empty. As I change Point1 and Point2, the line is correctly updated on the map. When I change Point1 and Point2 back to Location.Empty, the line stays on the map. I am expecting it to disappear.

    This was the only simliar thread I saw:

    https://www.telerik.com/forums/visualizationlayer-location-empty-and-updating

  2. Jason D
    Jason D avatar
    130 posts
    Member since:
    Jan 2011

    Posted 15 Aug 2018 Link to this post

    Actually, using a PolyLineData and clearing the Points collection also does not make the shape disappear.
  3. Answer
    Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    1101 posts

    Posted 17 Aug 2018 Link to this post

    Hello Jason,

    The issue you described is known to us and has been logged in our feedback portal. You can subscribe to the bug report to get notified about any changes in its status.

    As stated there, currently, the only workaround we can offer is to remove the data directly from the visualization layer.

    this.layer.Items.Remove(polylineData);

    I do hope you find such an approach applicable for the time being.

    Regards,
    Dilyan Traykov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top