当我放大时,我希望RadMap VisualizationLayer
上的图像调整大小(变小)。VisualizationLayer
上有一个 24x24 像素乌龟,它在缩放级别12时看起来很好。当我缩小时,地图会调整它的大小(使其看起来更小),这很好。但是,当我越来越放大时,它会保持固定为 24x24 。占领整个岛屿毫无意义。这是我的代码:
<telerik:VisualizationLayer x:Name="currentLayer">
<telerik:VisualizationLayer.ItemTemplate>
<DataTemplate>
<Grid telerik:MapLayer.Location="{Binding Location}"
telerik:MapLayer.BaseZoomLevel="{Binding BaseZoomLevel}"
telerik:MapLayer.ZoomRange="{Binding ZoomRange}"
telerik:MapLayer.MaxScale="1"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<Border BorderBrush="White" BorderThickness="1"
CornerRadius="17">
<Image Source="{Binding DisplayImage}"
Width="24"
Name="liveTurtle"
Height="24">
</Image>
</Border>
</Grid>
</DataTemplate>
</telerik:VisualizationLayer.ItemTemplate>
</telerik:VisualizationLayer>