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

MapPolygon ZoomRange

1 Answer 46 Views
Map
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Hans asked on 10 Mar 2012, 11:43 PM
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>

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 14 Mar 2012, 09:01 AM
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 >>
Tags
Map
Asked by
Hans
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or