# Distance and Scale

The **RadMap** uses two measure units for distance - mile and kilometer. The measure units are need for the placement of the **MapShapes**, as their width and height are measured in the selected unit. To choose the most suitable unit you have to set the **DistanceUnit** property of the **RadMap**.

> The default DistanceUnit is **Kilometer**.

```XAML
<telerik:RadMap x:Name="radMap"
	                DistanceUnit="Mile" />
```

The **DistanceUnit** also affects the **Scale** control displayed at the lower right corner of the **RadMap**.

If you want to hide it, you just have to set the **ScaleVisibility** property to **False**.

```XAML
<telerik:RadMap x:Name="radMap1"
	                ScaleVisibility="Collapsed" />
```

The UI control is represented by the **MapScale** control. You are able to use it outside the **RadMap** and place it somewhere around it. In this case you have to either hide the original one by using the **ScaleVisibility** property of the **RadMap** or the **UseDefaultLayout** one.

> tip Setting the **UseDefaultLayout** property to **False** will hide all of the UI controls inside the **RadMap**. To learn more read [here](https://www.telerik.com/products/wpf/documentation/controls/radmap/features/default-layout).

In order to use the **MapScale** outside the **RadMap** you have to set its **MapControl** property to the respective **RadMap** instance. Additionally you can modify its appearance.

Here is an example:

> When using an outside **MapScale** control, it's the value of the **DistanceUnit** property of this control that will be counted, not the one of the **RadMap's** **DistanceUnit** property.

```XAML
<StackPanel>
    <telerik:MapScale MapControl="{Binding ElementName=radMap}"
	                        ScaleLabelBackground="Orange"
	                        ScaleLabelBorderBrush="DarkRed"
	                        BorderBrush="DarkRed"
	                        Background="Orange"
	                        Foreground="DarkRed"
	                        HorizontalAlignment="Right"
	                        Margin="10"
	                        DistanceUnit="Kilometer" />
    <telerik:RadMap x:Name="radMap2"
	                    Width="600"
	                    Height="480"
	                    ScaleVisibility="Collapsed" />
</StackPanel>
```

Here is a snapshot of the result:

![WPF RadMap Distance and Scale](https://www.telerik.com/products/wpf/documentation/assets/9621e0506d5c0a7657d6dd2b821f9ed5/radmap_features_distancandscale_01.png)

## See Also

* [Navigation](https://www.telerik.com/products/wpf/documentation/controls/radmap/features/navigation)
* [Click Modes](https://www.telerik.com/products/wpf/documentation/controls/radmap/features/click-modes)
* [Zoom Modes](https://www.telerik.com/products/wpf/documentation/controls/radmap/features/zoom-modes)
* [Mouse Location](https://www.telerik.com/products/wpf/documentation/controls/radmap/features/mouse-location)
* [Default Layout](https://www.telerik.com/products/wpf/documentation/controls/radmap/features/default-layout)
