MapPolygon ZoomRange

2 posts, 0 answers
  1. Hans
    Hans avatar
    1 posts
    Member since:
    Mar 2012

    Posted 10 Mar 2012 Link to this post

    Hi

    I'm try to customize salesdashboard demo.  http://demos.telerik.com/silverlight/#Map/SalesDashboard

    i want to set zone areas zoom range.it works on ellipse but it doesnt work on mappolygon. Is it possible to do this ? if possible where i'm doing wrong.

    <DataTemplate x:Key="AreaTemplate">
                        <telerik:MapPolygon Fill="{Binding Fill}"
                                            telerik:MapLayer.ZoomRange="9,11"
                                            Stroke="{Binding Stroke}"
                                            StrokeThickness="{Binding StrokeThickness}"
                                            Points="{Binding Points}"
                                            telerik:MapLayer.Location="{Binding Center}"
                                            MouseLeftButtonDown="elementMouseLeftButtonDown"/>
                    </DataTemplate>

  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 14 Mar 2012 Link to this post

    Hi Hans,

    1. You can not use the telerik:MapLayer.Location property with map shape objects (MapPolygon, MapPolyline and so on). It will not work. Coordinates of the map shape object are controlled by its properties like Points for MapPolygon.

    2. The telerik:MapLayer.ZoomRange property is currently not supported when the map shape (MapPolygon, MapPolyline, and so on) is used as data template. We will change it in the future releases of the RadMap control. You can check when this feature will be available using our PITS:

    http://www.telerik.com/support/pits.aspx#/details/Issue=10122

    Regards,
    Andrey Murzov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
Back to Top