Plane.FormationCreator/Plane.FormationCreator/Views/MapView.xaml
pxzleo 84659afdab 自动生成航点和飞机按方阵生成
限制卫星地图放大最大为19级
飞行航线和实际航线默认不显示,增加显示选项
可导入某些步骤
2017-03-15 23:17:14 +08:00

63 lines
2.6 KiB
XML

<UserControl x:Class="Plane.FormationCreator.Views.MapView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Plane.FormationCreator.Views"
xmlns:m="clr-namespace:Plane.FormationCreator.Maps"
xmlns:bingMaps="clr-namespace:Microsoft.Maps.MapControl.WPF;assembly=Microsoft.Maps.MapControl.WPF"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="300">
<Grid>
<bingMaps:Map Name="map"
CredentialsProvider="8IGVSMWVqW8lDaMuGr2c~XaqB2qlBDLvSvXFzrQ8c-A~AiPIQttopdwAl4kXs8xm6_r59NEGdyqXejcaMDum6qB1BUJ6e25uViKL7fEdEROP"
ZoomLevel="20">
<bingMaps:Map.Mode>
<bingMaps:AerialMode />
</bingMaps:Map.Mode>
<bingMaps:Map.Center>
<bingMaps:Location Latitude="40.055905"
Longitude="116.322233" />
</bingMaps:Map.Center>
<!--<m:OpenStreetMapTileLayer UriFormat="http://tile.openstreetmap.org/{z}/{x}/{y}.png" />-->
</bingMaps:Map>
<StackPanel HorizontalAlignment="Right"
VerticalAlignment="Top"
Orientation="Horizontal"
>
<CheckBox Grid.Row="0" Content="计划航线" Margin="5,5,0,0"
Click="showpanline_Checked"
Foreground="White"
/>
<CheckBox Grid.Row="0" Content="实时航线" Margin="5,5,0,0"
Foreground="White"
Click="showrealtimeline_Checked" />
<ComboBox x:Name="MapSelectionComboBox"
HorizontalAlignment="Right"
Foreground="White"
Background="#232323"
Margin="5,0,0,0"
VerticalAlignment="Top"
SelectionChanged="MapSelectionComboBox_SelectionChanged">
<ComboBoxItem Content="卫星地图"
Tag="卫星地图"
IsSelected="True" />
<ComboBoxItem Content="道路"
Tag="道路" />
<ComboBoxItem Content="OpenStreet"
Tag="OpenStreet" />
</ComboBox>
</StackPanel>
</Grid>
</UserControl>