MapForm.xaml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <wpf:ThemableWindow x:Class="PRSDesktop.Forms.MapForm"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:wpf="clr-namespace:InABox.Wpf;assembly=InABox.Wpf"
  7. xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
  8. xmlns:dynamicGrid="clr-namespace:InABox.Wpf.DynamicGrid;assembly=InABox.Wpf"
  9. mc:Ignorable="d"
  10. Title="MapForm"
  11. WindowStartupLocation="CenterScreen"
  12. Height="800"
  13. Width="1200">
  14. <Grid>
  15. <Label x:Name="TimeStamp" Panel.ZIndex="1000" VerticalAlignment="Top" HorizontalAlignment="Center"
  16. FontSize="24" />
  17. <syncfusion:SfMap
  18. x:Name="Map"
  19. BorderBrush="Gray"
  20. BorderThickness="0.75"
  21. ZoomLevel="19"
  22. MinZoom="19"
  23. MaxZoom="19"
  24. EnableZoom="False"
  25. EnablePan="False"
  26. Grid.Row="0"
  27. Grid.Column="0">
  28. <syncfusion:SfMap.Layers>
  29. <dynamicGrid:GoogleImageryLayer
  30. x:Name="ImageryLayer"
  31. Center="-31.95105, 115.85939"
  32. Radius="10">
  33. <syncfusion:ImageryLayer.SubShapeFileLayers>
  34. <syncfusion:SubShapeFileLayer x:Name="subLayer">
  35. <syncfusion:SubShapeFileLayer.MapElements>
  36. <syncfusion:MapPolygon
  37. x:Name="Polygon"
  38. Stroke="Firebrick"
  39. StrokeThickness="0.75">
  40. <syncfusion:MapPolygon.Fill>
  41. <SolidColorBrush Color="Salmon" Opacity="0.5"/>
  42. </syncfusion:MapPolygon.Fill>
  43. </syncfusion:MapPolygon>
  44. </syncfusion:SubShapeFileLayer.MapElements>
  45. </syncfusion:SubShapeFileLayer>
  46. </syncfusion:ImageryLayer.SubShapeFileLayers>
  47. </dynamicGrid:GoogleImageryLayer>
  48. </syncfusion:SfMap.Layers>
  49. </syncfusion:SfMap>
  50. <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,10,10" Orientation="Horizontal" >
  51. <Button x:Name="ZoomIn" Height="40" Width="40" Click="ZoomIn_OnClick">
  52. <Image Source="../Resources/zoomin.png" />
  53. </Button>
  54. <Button x:Name="ZoomOut" Height="40" Width="40" Margin="5,0,0,0" Click="ZoomOut_OnClick">
  55. <Image Source="../Resources/zoomout.png" />
  56. </Button>
  57. </StackPanel>
  58. </Grid>
  59. </wpf:ThemableWindow>