Update MainWindow.axaml

This commit is contained in:
ClemensFischer 2025-03-21 17:23:15 +01:00
parent e06dcc5155
commit 64fb850ced

View file

@ -131,77 +131,82 @@
</StackPanel> </StackPanel>
<StackPanel HorizontalAlignment="Left" VerticalAlignment="Top" Margin="6" Background="#7FFFFFFF"> <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top" Margin="6" Background="#7FFFFFFF">
<tools:MapLayersMenuButton x:Name="mapLayersMenuButton" <tools:MenuButton x:Name="mapLayersMenuButton"
Margin="2" ToolTip.Tip="Map Layers and Overlays" Map="{Binding ElementName=map}"> Icon="&#xE81E;" Margin="2" ToolTip.Tip="Map Layers and Overlays" Map="{Binding ElementName=map}">
<tools:MapLayerItem Text="OpenStreetMap"> <tools:MapLayerMenuItem Text="OpenStreetMap">
<map:MapTileLayer <map:MapTileLayer
TileSource="https://tile.openstreetmap.org/{z}/{x}/{y}.png" TileSource="https://tile.openstreetmap.org/{z}/{x}/{y}.png"
SourceName="OpenStreetMap" SourceName="OpenStreetMap"
Description="© [OpenStreetMap contributors](http://www.openstreetmap.org/copyright)"/> Description="© [OpenStreetMap contributors](http://www.openstreetmap.org/copyright)"/>
</tools:MapLayerItem> </tools:MapLayerMenuItem>
<tools:MapLayerItem Text="OpenStreetMap German"> <tools:MapLayerMenuItem Text="OpenStreetMap German">
<map:MapTileLayer <map:MapTileLayer
TileSource="https://tile.openstreetmap.de/{z}/{x}/{y}.png" TileSource="https://tile.openstreetmap.de/{z}/{x}/{y}.png"
SourceName="OpenStreetMap German" SourceName="OpenStreetMap German"
Description="© [OpenStreetMap Deutschland](https://www.openstreetmap.de) © [OpenStreetMap contributors](http://www.openstreetmap.org/copyright)"/> Description="© [OpenStreetMap Deutschland](https://www.openstreetmap.de) © [OpenStreetMap contributors](http://www.openstreetmap.org/copyright)"/>
</tools:MapLayerItem> </tools:MapLayerMenuItem>
<tools:MapLayerItem Text="OpenStreetMap French"> <tools:MapLayerMenuItem Text="OpenStreetMap French">
<map:MapTileLayer <map:MapTileLayer
TileSource="http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png" TileSource="http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png"
SourceName="OpenStreetMap French" SourceName="OpenStreetMap French"
Description="© [OpenStreetMap France](https://www.openstreetmap.fr/mentions-legales/) © [OpenStreetMap contributors](http://www.openstreetmap.org/copyright)"/> Description="© [OpenStreetMap France](https://www.openstreetmap.fr/mentions-legales/) © [OpenStreetMap contributors](http://www.openstreetmap.org/copyright)"/>
</tools:MapLayerItem> </tools:MapLayerMenuItem>
<tools:MapLayerItem Text="OpenTopoMap"> <tools:MapLayerMenuItem Text="OpenTopoMap">
<map:MapTileLayer <map:MapTileLayer
TileSource="https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png" TileSource="https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png"
SourceName="OpenTopoMap" SourceName="OpenTopoMap"
Description="© [OpenTopoMap](https://opentopomap.org/) © [OpenStreetMap contributors](http://www.openstreetmap.org/copyright)"/> Description="© [OpenTopoMap](https://opentopomap.org/) © [OpenStreetMap contributors](http://www.openstreetmap.org/copyright)"/>
</tools:MapLayerItem> </tools:MapLayerMenuItem>
<tools:MapLayerItem Text="TopPlusOpen WMTS"> <tools:MapLayerMenuItem Text="TopPlusOpen WMTS">
<map:WmtsTileLayer <map:WmtsTileLayer
CapabilitiesUri="https://sgx.geodatenzentrum.de/wmts_topplus_open/1.0.0/WMTSCapabilities.xml" CapabilitiesUri="https://sgx.geodatenzentrum.de/wmts_topplus_open/1.0.0/WMTSCapabilities.xml"
SourceName="TopPlusOpen" SourceName="TopPlusOpen"
Description="© [BKG](https://gdz.bkg.bund.de/index.php/default/webdienste/topplus-produkte/wmts-topplusopen-wmts-topplus-open.html)"/> Description="© [BKG](https://gdz.bkg.bund.de/index.php/default/webdienste/topplus-produkte/wmts-topplusopen-wmts-topplus-open.html)"/>
</tools:MapLayerItem> </tools:MapLayerMenuItem>
<tools:MapLayerItem Text="TopPlusOpen WMS"> <tools:MapLayerMenuItem Text="TopPlusOpen WMS">
<map:WmsImageLayer <map:WmsImageLayer
ServiceUri="https://sgx.geodatenzentrum.de/wms_topplus_open" ServiceUri="https://sgx.geodatenzentrum.de/wms_topplus_open"
Description="© [BKG](https://gdz.bkg.bund.de/index.php/default/webdienste/topplus-produkte/wms-topplusopen-mit-layer-fur-normalausgabe-und-druck-wms-topplus-open.html)"/> Description="© [BKG](https://gdz.bkg.bund.de/index.php/default/webdienste/topplus-produkte/wms-topplusopen-mit-layer-fur-normalausgabe-und-druck-wms-topplus-open.html)"/>
</tools:MapLayerItem> </tools:MapLayerMenuItem>
<tools:MapLayerItem Text="OpenStreetMap WMS"> <tools:MapLayerMenuItem Text="OpenStreetMap WMS">
<map:WmsImageLayer <map:WmsImageLayer
ServiceUri="http://ows.terrestris.de/osm/service" ServiceUri="http://ows.terrestris.de/osm/service"
Description="© [terrestris GmbH &amp; Co. KG](http://ows.terrestris.de/) © [OpenStreetMap contributors](http://www.openstreetmap.org/copyright)"/> Description="© [terrestris GmbH &amp; Co. KG](http://ows.terrestris.de/) © [OpenStreetMap contributors](http://www.openstreetmap.org/copyright)"/>
</tools:MapLayerItem> </tools:MapLayerMenuItem>
<tools:MapLayersMenuButton.MapOverlays> <Separator/>
<tools:MapLayerItem Text="Sample Image"> <tools:MapOverlayMenuItem Text="Sample Image">
<Image Source="avares://AvaloniaApp/10_535_330.jpg" Stretch="Fill" <Image Source="10_535_330.jpg" Stretch="Fill"
map:MapPanel.BoundingBox="53.54031,8.08594,53.74871,8.43750"/> map:MapPanel.BoundingBox="53.54031,8.08594,53.74871,8.43750"/>
</tools:MapLayerItem> </tools:MapOverlayMenuItem>
<tools:MapLayerItem Text="Mount Etna KML"> <tools:MapOverlayMenuItem Text="Mount Etna KML">
<map:GroundOverlay SourcePath="etna.kml"/> <map:GroundOverlay SourcePath="etna.kml"/>
</tools:MapLayerItem> </tools:MapOverlayMenuItem>
<tools:MapLayerItem Text="Seamarks"> <tools:MapOverlayMenuItem Text="Seamarks">
<map:MapTileLayer <map:MapTileLayer
TileSource="http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png" TileSource="http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png"
SourceName="Seamarks" SourceName="Seamarks"
MinZoomLevel="9" MaxZoomLevel="18"/> MinZoomLevel="9" MaxZoomLevel="18"/>
</tools:MapLayerItem> </tools:MapOverlayMenuItem>
<tools:MapLayerItem Text="Graticule"> <tools:MapOverlayMenuItem Text="Graticule">
<map:MapGraticule Opacity="0.7" StrokeThickness="0.25" FontSize="10"/> <map:MapGraticule Opacity="0.7"/>
</tools:MapLayerItem> </tools:MapOverlayMenuItem>
<tools:MapLayerItem Text="Scale"> <tools:MapOverlayMenuItem Text="Scale">
<map:MapScale HorizontalAlignment="Center" VerticalAlignment="Bottom"/> <map:MapScale HorizontalAlignment="Center" VerticalAlignment="Bottom"/>
</tools:MapLayerItem> </tools:MapOverlayMenuItem>
</tools:MapLayersMenuButton.MapOverlays> </tools:MenuButton>
</tools:MapLayersMenuButton>
<tools:MapProjectionsMenuButton x:Name="mapProjectionsMenuButton" <tools:MenuButton x:Name="mapProjectionsMenuButton"
Margin="2" ToolTip.Tip="Map Projections" Map="{Binding ElementName=map}"> Icon="&#xE809;" Margin="2" ToolTip.Tip="Map Projections" Map="{Binding ElementName=map}">
<tools:MapProjectionItem Text="Web Mercator" Projection="EPSG:3857"/> <tools:MapProjectionMenuItem Text="Web Mercator">
<tools:MapProjectionItem Text="Equirectangular" Projection="EPSG:4326"/> EPSG:3857
<tools:MapProjectionItem Text="ETRS89 / UTM zone 32N" Projection="EPSG:25832"/> </tools:MapProjectionMenuItem>
</tools:MapProjectionsMenuButton> <tools:MapProjectionMenuItem Text="Equirectangular">
EPSG:4326
</tools:MapProjectionMenuItem>
<tools:MapProjectionMenuItem Text="ETRS89 / UTM zone 32N">
EPSG:25832
</tools:MapProjectionMenuItem>
</tools:MenuButton>
<Slider Orientation="Vertical" Margin="-4,8" Height="100" <Slider Orientation="Vertical" Margin="-4,8" Height="100"
Minimum="{Binding MinZoomLevel, ElementName=map}" Minimum="{Binding MinZoomLevel, ElementName=map}"