Display the current scale reference for a map.
- Supports binding to a
MapView
. - Supports display of an arbitrary scale via the
MapScale
property. - Displays both metric and imperial units.
Ensure that your GeoModel
is not null before selecting a basemap with the BasemapGallery
.
<Grid xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
<esri:MapView x:Name="MyMapView" />
<esri:ScaleLine Margin="20"
MapView="{x:Reference MyMapView}" />
</Grid>
<Grid xmlns:esri="using:Esri.ArcGISRuntime.UI.Controls"
xmlns:toolkit="using:Esri.ArcGISRuntime.Toolkit.UI.Controls">
<esri:MapView x:Name="MyMapView" />
<toolkit:ScaleLine Margin="20"
MapView="{x:Bind MyMapView}" />
</Grid>
<Grid xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
<esri:MapView x:Name="MyMapView" />
<esri:ScaleLine Margin="20"
MapView="{Binding ElementName=MyMapView}" />
</Grid>