Declined
Last Updated: 11 Feb 2019 13:49 by ADMIN
Jason D
Created on: 25 Jan 2019 16:06
Category: Map
Type: Bug Report
1
Sharing items between maps

In reference to: https://www.telerik.com/forums/binding-question

This sample project is not exactly the same as my actual project, but has the same issue.

I have multiple maps visible. I have a PolygonData that I want to be visible on both maps. It shows up fine. However, the polygon on the first map will not scale when zooming with the FIRST map. If I zoom with the SECOND map, both polygons will correctly scale.

If I replace PolygonData with my own object (PolygonVM), both polygons always correctly scale.

Attached Files:
3 comments
ADMIN
Vladimir Stoyanov
Posted on: 11 Feb 2019 13:49
Hello Jason,

I agree that the documentation should be updated in order to state that the Map Shape Data objects should not be added to the ItemsSource of the VisualizationLayer. I have logged an internal item in order to update the corresponding article. As a small thank you for bringing this to our attention, I have updated your telerik points.

I will proceed with changing the status of this item to "Declined". Of course, if you have any other questions feel free to get back to us.

Regards,
Vladimir Stoyanov
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.
Jason D
Posted on: 04 Feb 2019 17:46
So is this a bug and something that needs to be fixed? Or are MapShapeData objects designed to only be used in XAML? If the latter, it should be noted in the documentation.
ADMIN
Vladimir Stoyanov
Posted on: 01 Feb 2019 14:22
Hello Jason,

Thank you for the provided project. 

I investigated the described behavior on my end and contacted our developers about the scenario. 

As it turns out, it is not recommended to populate the ItemsSource of the VisualizationLayer with Map Shape Data objects. I am afraid that I cannot say for certain what is the reason for the observed behavior, however do bear in mind that the MapPolygonView internally sets its ShapeData to a PolygonData. With this in mind, populating the ItemsSource of the VisualizationLayer with PolygonData objects is not necessary.

What I can suggest is creating custom objects and adding them to the ItemsSource of the VisualizationLayer as you have already done. I hope that such an approach would be suitable for your scenario. 

Regards,
Vladimir Stoyanov
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.