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
c404fd2a90
commit
fe1ac924b4
3 changed files with 25 additions and 8 deletions
|
|
@ -75,14 +75,6 @@ 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)
|
||||
|
|
@ -91,6 +83,14 @@ namespace SampleApplication
|
|||
}
|
||||
}
|
||||
|
||||
private async void MapMouseRightButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (map.MapLayer is WmsImageLayer wmsLayer)
|
||||
{
|
||||
Debug.WriteLine(await wmsLayer.GetFeatureInfoAsync(e.GetPosition(map)));
|
||||
}
|
||||
}
|
||||
|
||||
private void MapMouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
var location = map.ViewToLocation(e.GetPosition(map));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue