Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.28 KB

measure-toolbar.md

File metadata and controls

45 lines (36 loc) · 1.28 KB

MeasureToolbar

Measure distances, areas, and features in a MapView.

MeasureToolbar

Features

  • Allows selection and changing of unit of measure.
  • Enables manually drawing and measuring lines (distances) and polygons (areas).
  • Supports selecting and measuring features.
  • Binds to a MapView.

Usage

UWP/WinUI:

<Grid xmlns:esri="using:Esri.ArcGISRuntime.UI.Controls"
      xmlns:toolkit="using:Esri.ArcGISRuntime.Toolkit.UI.Controls">
    <Grid.RowDefinitions>
        <RowDefinition Height="50" />
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <toolkit:MeasureToolbar HorizontalAlignment="Center"
                            MapView="{x:Bind MyMapView}" />
    <esri:MapView x:Name="MyMapView"
                  Grid.Row="1" />
</Grid>

WPF:

<Grid xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
    <Grid.RowDefinitions>
        <RowDefinition Height="50" />
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <esri:MeasureToolbar HorizontalAlignment="Center"
                         MapView="{Binding ElementName=MyMapView}" />
    <esri:MapView x:Name="MyMapView"
                  Grid.Row="1" />
</Grid>