12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <wpf:ThemableWindow x:Class="PRSDesktop.Forms.MapForm"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:wpf="clr-namespace:InABox.Wpf;assembly=InABox.Wpf"
- xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
- xmlns:dynamicGrid="clr-namespace:InABox.Wpf.DynamicGrid;assembly=InABox.Wpf"
- mc:Ignorable="d"
- Title="MapForm"
- WindowStartupLocation="CenterScreen"
- Height="800"
- Width="1200">
- <Grid>
- <Label x:Name="TimeStamp" Panel.ZIndex="1000" VerticalAlignment="Top" HorizontalAlignment="Center"
- FontSize="24" />
-
- <syncfusion:SfMap
- x:Name="Map"
- BorderBrush="Gray"
- BorderThickness="0.75"
- ZoomLevel="19"
- MinZoom="19"
- MaxZoom="19"
- EnableZoom="False"
- EnablePan="False"
- Grid.Row="0"
- Grid.Column="0">
-
- <syncfusion:SfMap.Layers>
- <dynamicGrid:GoogleImageryLayer
- x:Name="ImageryLayer"
- Center="-31.95105, 115.85939"
- Radius="10">
-
- <syncfusion:ImageryLayer.SubShapeFileLayers>
- <syncfusion:SubShapeFileLayer x:Name="subLayer">
- <syncfusion:SubShapeFileLayer.MapElements>
- <syncfusion:MapPolygon
- x:Name="Polygon"
- Stroke="Firebrick"
- StrokeThickness="0.75">
- <syncfusion:MapPolygon.Fill>
- <SolidColorBrush Color="Salmon" Opacity="0.5"/>
- </syncfusion:MapPolygon.Fill>
- </syncfusion:MapPolygon>
-
- </syncfusion:SubShapeFileLayer.MapElements>
- </syncfusion:SubShapeFileLayer>
- </syncfusion:ImageryLayer.SubShapeFileLayers>
-
- </dynamicGrid:GoogleImageryLayer>
- </syncfusion:SfMap.Layers>
- </syncfusion:SfMap>
-
- <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,10,10" Orientation="Horizontal" >
- <Button x:Name="ZoomIn" Height="40" Width="40" Click="ZoomIn_OnClick">
- <Image Source="../Resources/zoomin.png" />
- </Button>
- <Button x:Name="ZoomOut" Height="40" Width="40" Margin="5,0,0,0" Click="ZoomOut_OnClick">
- <Image Source="../Resources/zoomout.png" />
- </Button>
- </StackPanel>
-
- </Grid>
- </wpf:ThemableWindow>
|