4 Answers, 1 is accepted
Thank you for the feedback.
We are aware about the problem with binding of RadMap.ZoomLevel property.
We will fix the problem in some of our future releases of RadMap. We have a PITS issue and you can check when the fix will be available using the following link:
The map control has the built-in zoom control that uses binding to the RadMap.ZoomLevel property.
Currently, if you want to use binding, then you should disable this zoom control. The RadMap has the ZoomBarVisibility property. To hide the zoom control you should set it to "Collapsed".
If the zoom control is displayed, then you cannot use the binding to the ZoomLevel property.
We can't reproduce the issue with binding to the RadMap.Center property.
Could you, please, create sample solution which demonstrates this problem and send it to us?
the Telerik team
As an example, we have a map that is databound to a grid. Each time a row is selected on the grid, we re-center the map to a location coming from the grid data. However, once we've interacted with the map and changed the center, the binding no longer works from the grid.
When the UI of map allows user to change the center then the binding will be broken, because the Center property will be changed. In this case the RadMap.Center property allows using two way mode binding only. So, I wouldn't recommend to bind the RadMap.Center property directly to controls like data grid or listbox.
I have attached a sample solution which uses binding of the Center property to a view model using two way mode. The view model contains Center property and additional BindableCenter property which allows to set the center from the listbox. I hope it helps.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>