mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Test WMS FeatureInfo
This commit is contained in:
parent
1ccfbb28a4
commit
448177418e
3 changed files with 15 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
|||
using MapControl.Caching;
|
||||
using MapControl.UiTools;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
|
|
@ -74,6 +75,14 @@ namespace SampleApplication
|
|||
map.TargetHeading = 0d;
|
||||
}
|
||||
|
||||
private async void MapMouseRightButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (map.MapLayer is WmsImageLayer wmsLayer)
|
||||
{
|
||||
Debug.WriteLine(await wmsLayer.GetFeatureInfoAsync(e.GetPosition(map)));
|
||||
}
|
||||
}
|
||||
|
||||
private void MapMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (e.ClickCount == 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue