This is a migrated thread and some comments may be shown as answers.

Location.Empty with LineData

2 Answers 14 Views
Map
This is a migrated thread and some comments may be shown as answers.
Jason D
Top achievements
Rank 1
Veteran
Jason D asked on 15 Aug 2018, 04:35 PM

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 Answers, 1 is accepted

Sort by
0
Jason D
Top achievements
Rank 1
Veteran
answered on 15 Aug 2018, 05:03 PM
Actually, using a PolyLineData and clearing the Points collection also does not make the shape disappear.
0
Accepted
Dilyan Traykov
Telerik team
answered on 17 Aug 2018, 04:26 PM
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.
Tags
Map
Asked by
Jason D
Top achievements
Rank 1
Veteran
Answers by
Jason D
Top achievements
Rank 1
Veteran
Dilyan Traykov
Telerik team
Share this question
or