81 lines
3.3 KiB
XML
81 lines
3.3 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"
|
|
xmlns:googleMaps="clr-namespace:Plane.GoogleMap"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="300"
|
|
d:DesignWidth="300">
|
|
<UserControl.Resources>
|
|
<ContextMenu x:Key="MapMenu" >
|
|
<MenuItem Header="地图透明" Click="Map_Opacity"
|
|
Foreground="White"/>
|
|
<MenuItem Header="加载图片" Click="Load_Background"
|
|
Foreground="White"/>
|
|
</ContextMenu>
|
|
</UserControl.Resources>
|
|
<Grid Name="grid_bg">
|
|
|
|
<googleMaps:GMap x:Name="gmap" Opacity="1" ContextMenu="{StaticResource MapMenu}"/>
|
|
<!--
|
|
<bingMaps:Map Name="map"
|
|
CredentialsProvider="8IGVSMWVqW8lDaMuGr2c~XaqB2qlBDLvSvXFzrQ8c-A~AiPIQttopdwAl4kXs8xm6_r59NEGdyqXejcaMDum6qB1BUJ6e25uViKL7fEdEROP"
|
|
ZoomLevel="20" Opacity="1">
|
|
<bingMaps:Map.Mode>
|
|
<bingMaps:AerialMode />
|
|
</bingMaps:Map.Mode>
|
|
<bingMaps:Map.Center>
|
|
<bingMaps:Location Latitude="40.055905"
|
|
Longitude="116.322233" />
|
|
</bingMaps:Map.Center>
|
|
|
|
</bingMaps:Map>
|
|
-->
|
|
<StackPanel HorizontalAlignment="Right"
|
|
VerticalAlignment="Top"
|
|
Orientation="Horizontal"
|
|
>
|
|
<CheckBox Grid.Row="0" Content="所有航点" Margin="5,5,0,0"
|
|
Click="showallpoint_Checked"
|
|
Foreground="White" IsChecked="True"
|
|
/>
|
|
<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="Bing地图"
|
|
Tag="Bing地图"
|
|
IsSelected="True" />
|
|
<ComboBoxItem Content="谷歌地图"
|
|
Tag="谷歌地图" />
|
|
<ComboBoxItem Content="高德地图"
|
|
Tag="高德地图" />
|
|
</ComboBox>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
</UserControl>
|