mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 06:26:41 +00:00
Avalonia sample application
This commit is contained in:
parent
c2a5394d8e
commit
d2c3382f46
5 changed files with 141 additions and 14 deletions
|
|
@ -14,7 +14,15 @@
|
|||
ZoomLevel="11" MinZoomLevel="3"
|
||||
Center="53.5,8.2"
|
||||
ManipulationModes="All"
|
||||
DoubleTapped="MapDoubleTapped">
|
||||
DoubleTapped="MapDoubleTapped"
|
||||
PointerPressed="MapPointerPressed"
|
||||
PointerReleased="MapPointerReleased"
|
||||
PointerMoved="MapPointerMoved"
|
||||
PointerExited="MapPointerExited">
|
||||
|
||||
<map:MapPolyline x:Name="measurementLine" IsVisible="False"
|
||||
Stroke="{Binding Foreground, ElementName=map}"
|
||||
StrokeThickness="2" StrokeDashArray="1,1"/>
|
||||
|
||||
<map:MapItemsControl ItemsSource="{Binding Polylines}">
|
||||
<map:MapItemsControl.ItemTemplate>
|
||||
|
|
@ -92,6 +100,15 @@
|
|||
<map:Pushpin AutoCollapse="True" Location="53.5,8.2" Content="N 53°30' E 8°12'"/>
|
||||
</map:Map>
|
||||
|
||||
<TextBlock x:Name="mouseLocation"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Top" Margin="4" Padding="4,2"
|
||||
FontFamily="Consolas" IsHitTestVisible="False" IsVisible="False"
|
||||
Foreground="{Binding Foreground, ElementName=map}">
|
||||
<TextBlock.Background>
|
||||
<SolidColorBrush Color="{Binding Background.Color, ElementName=map}" Opacity="0.5"/>
|
||||
</TextBlock.Background>
|
||||
</TextBlock>
|
||||
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Background="#7FFFFFFF"
|
||||
DataContext="{Binding MapLayer, ElementName=map}">
|
||||
<ProgressBar Width="100" Height="8" Margin="4,2" VerticalAlignment="Center"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue