mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-07 15:36:20 +00:00
Extend map projections
This commit is contained in:
parent
57e614978b
commit
d8d1cbccaf
27 changed files with 448 additions and 207 deletions
BIN
SampleApps/Shared/UTM2GTIF.tiff
Normal file
BIN
SampleApps/Shared/UTM2GTIF.tiff
Normal file
Binary file not shown.
|
|
@ -210,6 +210,19 @@
|
|||
ServiceUri="http://ows.terrestris.de/osm/service"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayersMenuButton.MapOverlays>
|
||||
<tools:MapLayerItem Text="Graticule">
|
||||
<map:MapGraticule Opacity="0.7"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Scale">
|
||||
<map:MapScale HorizontalAlignment="Center" VerticalAlignment="Bottom"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Seamarks">
|
||||
<map:MapTileLayer SourceName="Seamarks" MinZoomLevel="9" MaxZoomLevel="18">
|
||||
<map:MapTileLayer.TileSource>
|
||||
<map:TileSource UriTemplate="http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png"/>
|
||||
</map:MapTileLayer.TileSource>
|
||||
</map:MapTileLayer>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Sample Image">
|
||||
<Image Source="10_535_330.jpg" Stretch="Fill">
|
||||
<map:MapPanel.BoundingBox>
|
||||
|
|
@ -220,18 +233,8 @@
|
|||
<tools:MapLayerItem Text="Mount Etna KML">
|
||||
<map:GroundOverlay SourcePath="etna.kml"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Seamarks">
|
||||
<map:MapTileLayer SourceName="Seamarks" MinZoomLevel="9" MaxZoomLevel="18">
|
||||
<map:MapTileLayer.TileSource>
|
||||
<map:TileSource UriTemplate="http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png"/>
|
||||
</map:MapTileLayer.TileSource>
|
||||
</map:MapTileLayer>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Graticule">
|
||||
<map:MapGraticule Opacity="0.7"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Scale">
|
||||
<map:MapScale HorizontalAlignment="Center" VerticalAlignment="Bottom"/>
|
||||
<tools:MapLayerItem Text="Chicago GeoTIFF">
|
||||
<map:GeoImage SourcePath="UTM2GTIF.tiff"/>
|
||||
</tools:MapLayerItem>
|
||||
</tools:MapLayersMenuButton.MapOverlays>
|
||||
</tools:MapLayersMenuButton>
|
||||
|
|
@ -242,6 +245,8 @@
|
|||
Map="{Binding ElementName=map}">
|
||||
<tools:MapProjectionItem Text="Web Mercator" Projection="EPSG:3857"/>
|
||||
<tools:MapProjectionItem Text="Equirectangular" Projection="EPSG:4326"/>
|
||||
<tools:MapProjectionItem Text="ETRS89 / UTM zone 32N" Projection="EPSG:25832"/>
|
||||
<tools:MapProjectionItem Text="WGS84 / Auto UTM" Projection="AUTO2:42001"/>
|
||||
</tools:MapProjectionsMenuButton>
|
||||
|
||||
<Slider Orientation="Vertical" Margin="4,8" Height="100"
|
||||
|
|
|
|||
|
|
@ -78,6 +78,9 @@
|
|||
<Content Include="..\Shared\10_535_330.jpg">
|
||||
<Link>10_535_330.jpg</Link>
|
||||
</Content>
|
||||
<Content Include="..\Shared\UTM2GTIF.tiff">
|
||||
<Link>UTM2GTIF.tiff</Link>
|
||||
</Content>
|
||||
<Content Include="Properties\Default.rd.xml" />
|
||||
<Content Include="Assets\LockScreenLogo.scale-200.png" />
|
||||
<Content Include="Assets\SplashScreen.scale-200.png" />
|
||||
|
|
|
|||
|
|
@ -218,6 +218,19 @@
|
|||
ServiceUri="http://ows.terrestris.de/osm/service"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayersMenuButton.MapOverlays>
|
||||
<tools:MapLayerItem Text="Graticule">
|
||||
<map:MapGraticule Opacity="0.7"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Scale">
|
||||
<map:MapScale HorizontalAlignment="Center" VerticalAlignment="Bottom"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Seamarks">
|
||||
<map:MapTileLayer SourceName="Seamarks" MinZoomLevel="9" MaxZoomLevel="18">
|
||||
<map:MapTileLayer.TileSource>
|
||||
<map:TileSource UriTemplate="http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png"/>
|
||||
</map:MapTileLayer.TileSource>
|
||||
</map:MapTileLayer>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Sample Image">
|
||||
<Image Source="10_535_330.jpg" Stretch="Fill">
|
||||
<map:MapPanel.BoundingBox>
|
||||
|
|
@ -228,18 +241,8 @@
|
|||
<tools:MapLayerItem Text="Mount Etna KML">
|
||||
<map:GroundOverlay SourcePath="etna.kml"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Seamarks">
|
||||
<map:MapTileLayer SourceName="Seamarks" MinZoomLevel="9" MaxZoomLevel="18">
|
||||
<map:MapTileLayer.TileSource>
|
||||
<map:TileSource UriTemplate="http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png"/>
|
||||
</map:MapTileLayer.TileSource>
|
||||
</map:MapTileLayer>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Graticule">
|
||||
<map:MapGraticule Opacity="0.7"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Scale">
|
||||
<map:MapScale HorizontalAlignment="Center" VerticalAlignment="Bottom"/>
|
||||
<tools:MapLayerItem Text="Chicago GeoTIFF">
|
||||
<map:GeoImage SourcePath="UTM2GTIF.tiff"/>
|
||||
</tools:MapLayerItem>
|
||||
</tools:MapLayersMenuButton.MapOverlays>
|
||||
</tools:MapLayersMenuButton>
|
||||
|
|
@ -249,6 +252,8 @@
|
|||
Map="{Binding ElementName=map}">
|
||||
<tools:MapProjectionItem Text="Web Mercator" Projection="EPSG:3857"/>
|
||||
<tools:MapProjectionItem Text="Equirectangular" Projection="EPSG:4326"/>
|
||||
<tools:MapProjectionItem Text="ETRS89 / UTM zone 32N" Projection="EPSG:25832"/>
|
||||
<tools:MapProjectionItem Text="WGS84 / Auto UTM" Projection="AUTO2:42001"/>
|
||||
</tools:MapProjectionsMenuButton>
|
||||
|
||||
<Slider Orientation="Vertical" Margin="4,8" Height="100"
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<ItemGroup>
|
||||
<Content Include="..\Shared\10_535_330.jpg" Link="10_535_330.jpg" />
|
||||
<Content Include="..\Shared\etna.kml" Link="etna.kml" />
|
||||
<Content Include="..\Shared\UTM2GTIF.tiff" Link="UTM2GTIF.tiff" />
|
||||
<Content Include="Assets\SplashScreen.scale-200.png" />
|
||||
<Content Include="Assets\LockScreenLogo.scale-200.png" />
|
||||
<Content Include="Assets\Square150x150Logo.scale-200.png" />
|
||||
|
|
|
|||
|
|
@ -184,6 +184,13 @@
|
|||
<tools:MapLayerItem Text="TopPlusOpen WMS" Layer="{StaticResource TopPlusOpenWMS}"/>
|
||||
<tools:MapLayerItem Text="OpenStreetMap WMS" Layer="{StaticResource OpenStreetMapWMS}"/>
|
||||
<tools:MapLayersMenuButton.MapOverlays>
|
||||
<tools:MapLayerItem Text="Graticule">
|
||||
<map:MapGraticule Opacity="0.7"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Scale">
|
||||
<map:MapScale HorizontalAlignment="Center" VerticalAlignment="Bottom"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Seamarks" Layer="{StaticResource Seamarks}"/>
|
||||
<tools:MapLayerItem Text="Sample Image">
|
||||
<Image Source="10_535_330.jpg" Stretch="Fill"
|
||||
map:MapPanel.BoundingBox="53.54031,8.08594,53.74871,8.43750"/>
|
||||
|
|
@ -191,12 +198,8 @@
|
|||
<tools:MapLayerItem Text="Mount Etna KML">
|
||||
<map:GroundOverlay SourcePath="etna.kml"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Seamarks" Layer="{StaticResource Seamarks}"/>
|
||||
<tools:MapLayerItem Text="Graticule">
|
||||
<map:MapGraticule Opacity="0.7"/>
|
||||
</tools:MapLayerItem>
|
||||
<tools:MapLayerItem Text="Scale">
|
||||
<map:MapScale HorizontalAlignment="Center" VerticalAlignment="Bottom"/>
|
||||
<tools:MapLayerItem Text="Chicago GeoTIFF">
|
||||
<map:GeoImage SourcePath="UTM2GTIF.tiff"/>
|
||||
</tools:MapLayerItem>
|
||||
</tools:MapLayersMenuButton.MapOverlays>
|
||||
</tools:MapLayersMenuButton>
|
||||
|
|
@ -206,6 +209,8 @@
|
|||
Map="{Binding ElementName=map}">
|
||||
<tools:MapProjectionItem Text="Web Mercator" Projection="EPSG:3857"/>
|
||||
<tools:MapProjectionItem Text="Equirectangular" Projection="EPSG:4326"/>
|
||||
<tools:MapProjectionItem Text="ETRS89 / UTM zone 32N" Projection="EPSG:25832"/>
|
||||
<tools:MapProjectionItem Text="WGS84 / Auto UTM" Projection="AUTO2:42001"/>
|
||||
</tools:MapProjectionsMenuButton>
|
||||
|
||||
<Slider Orientation="Vertical" Margin="8" Height="100"
|
||||
|
|
|
|||
|
|
@ -32,10 +32,19 @@
|
|||
<Content Include="..\Shared\etna.kml" Link="etna.kml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="..\Shared\UTM2GTIF.tiff" Link="UTM2GTIF.tiff">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)'=='net48'">
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Runtime.Caching" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="..\Shared\TileLoader.cs">
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Loading…
Add table
Add a link
Reference in a new issue