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

Binding question

4 Answers 69 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 18 Jan 2019, 08:43 PM

This may be more of a WPF question. I updated our app to support multiple maps on the screen. I want each map to share the items used for the VisualizationLayer. This seems to work for custom items, but not for MapShapeData items. I tried using a different collection for each map to hold the items, but it didn't help. Details:

Add PolygonData objects. They show up fine but when zooming, they don't scale. If I change to use two maps, everything works perfectly. If I switch back to one map, the objects again stop scaling when zooming.

If I replace the PolygonData with a custom object that holds a LocationCollection and apply a MapPolygonView to the object, everything works perfectly, even with just one map.

What is it about PolygonData that causes this not to work?

Using PolygonData with a VirtualizationSource also works.

4 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 23 Jan 2019, 02:00 PM
Hello Jason,

May I ask you some questions in order to better assist you? Can you share a video/picture of the observed behavior on your end? Can you also let me know how you are sharing the objects between the maps - some sample code will be helpful?

If possible, you can open a new support ticket and attach a sample project demonstrating the setup on your end. This will hopefully allow me to better understand the scenario and further assist you.

Thank you in advance for any help you can provide.

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.
0
Jason D
Top achievements
Rank 1
Veteran
answered on 23 Jan 2019, 04:59 PM
Thanks for the reply. Will try, but will be awhile.
0
Jason D
Top achievements
Rank 1
Veteran
answered on 25 Jan 2019, 04:07 PM
Amazingly, I was able to reproduce this:
https://feedback.telerik.com/wpf/1384820-sharing-items-between-maps
0
Vladimir Stoyanov
Telerik team
answered on 25 Jan 2019, 04:50 PM
Hello Jason,

Thank you for the logged feedback item and the attached project. We will review the project and will get back to you with a reply in the feedback item next week.

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.
Tags
Map
Asked by
Jason D
Top achievements
Rank 1
Veteran
Answers by
Vladimir Stoyanov
Telerik team
Jason D
Top achievements
Rank 1
Veteran
Share this question
or