Skip to content

Commit 0f3edb7

Browse files
New sample: Create kml multi track (#1564)
1 parent 7eeedea commit 0f3edb7

File tree

19 files changed

+1537
-0
lines changed

19 files changed

+1537
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ContentPage x:Class="ArcGIS.Samples.CreateKmlMultiTrack.CreateKmlMultiTrack"
3+
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
5+
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui">
6+
<ContentPage.Resources>
7+
<Style x:Key="IconStyle" TargetType="Button">
8+
<Style.Setters>
9+
<Setter Property="FontFamily" Value="calcite-ui-icons-24" />
10+
<Setter Property="FontSize" Value="25" />
11+
<Setter Property="Margin" Value="5" />
12+
</Style.Setters>
13+
</Style>
14+
</ContentPage.Resources>
15+
<Grid Style="{DynamicResource EsriSampleContainer}">
16+
<esriUI:MapView x:Name="MyMapView" Style="{DynamicResource EsriSampleGeoView}" />
17+
<Border Style="{DynamicResource EsriSampleControlPanel}">
18+
<StackLayout>
19+
<StackLayout x:Name="RecordingUI">
20+
<Label x:Name="ElementsCountLabel" Text="Clicked record to capture KML track elements." />
21+
<Label x:Name="TracksCountLabel" Text="Number of tracks in MultiTrack: 0" />
22+
<Grid>
23+
<Grid.ColumnDefinitions>
24+
<ColumnDefinition Width="auto" />
25+
<ColumnDefinition Width="*" />
26+
<ColumnDefinition Width="auto" />
27+
</Grid.ColumnDefinitions>
28+
<Button x:Name="RecenterButton"
29+
Clicked="RecenterButton_Clicked"
30+
IsEnabled="False"
31+
Style="{StaticResource IconStyle}"
32+
Text="&#xe13c;"
33+
ToolTipProperties.Text="Recenter" />
34+
<Button x:Name="RecordTrackButton"
35+
Grid.Column="1"
36+
Margin="5"
37+
Clicked="RecordTrackButton_Clicked"
38+
Text="Record Track" />
39+
<Button x:Name="SaveButton"
40+
Grid.Column="2"
41+
Clicked="SaveButton_Clicked"
42+
IsEnabled="False"
43+
Style="{StaticResource IconStyle}"
44+
Text="&#xe262;"
45+
ToolTipProperties.Text="Save" />
46+
</Grid>
47+
</StackLayout>
48+
<StackLayout x:Name="ViewingUI" IsVisible="False">
49+
<Label Text="Displaying contents of saved HikingTracks.kmz file." />
50+
<Grid>
51+
<Grid.ColumnDefinitions>
52+
<ColumnDefinition Width="*" />
53+
<ColumnDefinition Width="auto" />
54+
</Grid.ColumnDefinitions>
55+
<Picker x:Name="TracksPicker"
56+
Margin="5"
57+
HorizontalTextAlignment="Center"
58+
SelectedIndexChanged="TracksPicker_SelectionChanged"
59+
VerticalTextAlignment="Center" />
60+
<Button Grid.Column="1"
61+
Clicked="ResetButton_Clicked"
62+
Style="{StaticResource IconStyle}"
63+
Text="&#xe243;"
64+
ToolTipProperties.Text="Reset" />
65+
</Grid>
66+
</StackLayout>
67+
</StackLayout>
68+
</Border>
69+
</Grid>
70+
</ContentPage>

0 commit comments

Comments
 (0)