map zoom error since Q3

3 posts, 1 answers
  1. Tamas
    Tamas avatar
    33 posts
    Member since:
    Jun 2010

    Posted 27 Nov 2010 Link to this post


    I was drawing charts on a RadMap like in your City demographics example. That was working fine until I've upgraded to the latest Q3 version. Now I have an issue when zooming: the small charts are enlarged when zooming in and when the zoom is finished they are resized again. This was not like this with the version before, when the radcharts had a constant size.

    Here is my code:

            private void InitializeChart(RadChart chart, List<LabeledCell> cells, Telerik.Windows.Controls.Map.Location location)
                chart.BorderThickness = new Thickness(0);
                chart.DefaultView.ChartArea.Background = new SolidColorBrush(Colors.Transparent);
                chart.DefaultView.ChartArea.Padding = new Thickness(0);
                chart.Background = new SolidColorBrush(Colors.Transparent);
                chart.DefaultView.ChartLegend.Visibility = Visibility.Collapsed;
                chart.DefaultView.ChartTitle.Visibility = Visibility.Collapsed;
                chart.DefaultSeriesDefinition = new PieSeriesDefinition() { ShowItemLabels = false };
                chart.Margin = new Thickness(-1 * (chart.Width / 2), -1 * (chart.Height / 2), 0, 0);
                List<double> chartdata = new List<double>();
                foreach (LabeledCell cell in cells)
                chart.ItemsSource = chartdata;
                chart.SetValue(MapLayer.LocationProperty, location);

    private void SetChartDimension(RadChart chart)
        if (this.RadMap1.ZoomLevel < 0)
        chart.Height = 30 * this.RadMap1.ZoomLevel;
        chart.Width  = 30 * this.RadMap1.ZoomLevel;

    And the XAML:

    <telerik:RadMap x:Name="RadMap1" ZoomLevel="2">
        <telerik:InformationLayer x:Name="InformationLayer" Visibility="Visible">
                <telerik:RadMap Background="Transparent" Foreground="Transparent" />

    Is it possible to achieve the original behavior?

    Many thanks and best regards,
  2. Answer
    Andrey avatar
    1681 posts

    Posted 30 Nov 2010 Link to this post

    Hello Tamas,

    Our developers have already addressed this issue and we would suggest you to download the latest internal build from your Client.Net account to get the fixed version.

    Hope this helps.

    Best wishes,
    Andrey Murzov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. Tamas
    Tamas avatar
    33 posts
    Member since:
    Jun 2010

    Posted 30 Nov 2010 Link to this post

    Hi Andrey,

    Many thanks, this is solved in the latest build.
Back to Top