I am unable to bind to the Geo_Bounds property of the rad map control.
If that's not possible, would it be possible to calculate the NW and SE Bounds of the map based on the Center and Zoom level (binding works on these 2 properties !!) of the rad map control ?
Thanks,
Sai Dhalli
1 Answer, 1 is accepted
0
Andrey
Telerik team
answered on 03 Jun 2014, 01:01 PM
Hi Sai,
I've tested binding to the RadMap.GeoBounds property and all things seems to work fine. Here are the XAML and code behind I've used for testing:
// It is not necessary in the real-life applications
// but demonstrates that binding works and geo bounds
// are set.
RectangleData rect = new RectangleData()
{
Location = new Telerik.Windows.Controls.Map.Location(30, 30),
Height = 10,
Width = 20,
ShapeFill = new MapShapeFill()
{
Stroke = new SolidColorBrush(Colors.Red),
StrokeThickness = 2
}
};
this.visualizationLayer.Items.Clear();
this.visualizationLayer.Items.Add(rect);
}
}
Could you, please, provide us with your solution or with a small sample project which reproduces the problem you have? This will help us better understand your particular case.
Thank you for your cooperation.
Regards,
Andrey Murzov
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.