-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
38 lines (38 loc) · 1.67 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxm="http://schemas.devexpress.com/winfx/2008/xaml/map"
x:Class="MapProjections.MainWindow"
Title="MainWindow">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<dxm:MapControl Grid.Column="0" Margin="4,4,2,4">
<dxm:MapControl.CoordinateSystem>
<dxm:GeoMapCoordinateSystem
Projection="{Binding ElementName=lbProjection, Path=SelectedItem}"/>
</dxm:MapControl.CoordinateSystem>
<dxm:VectorLayer>
<dxm:ShapefileDataAdapter FileUri="Data/Countries.shp"/>
</dxm:VectorLayer>
</dxm:MapControl>
<StackPanel Grid.Column="1" Margin="2,4,4,4" Orientation="Vertical">
<Label Content="Map Projection:"/>
<ListBox Name="lbProjection">
<dxm:BraunStereographicProjection/>
<dxm:EllipticalMercatorProjection/>
<dxm:EqualAreaProjection/>
<dxm:EquidistantProjection/>
<dxm:EquirectangularProjection/>
<dxm:KavrayskiyProjection/>
<dxm:LambertCylindricalEqualAreaProjection/>
<dxm:MillerProjection/>
<dxm:SinusoidalProjection/>
<dxm:SphericalMercatorProjection/>
<dxm:Etrs89LambertAzimuthalEqualAreaProjection/>
</ListBox>
</StackPanel>
</Grid>
</Window>