MapGraticule

This commit is contained in:
ClemensFischer 2026-01-31 00:07:40 +01:00
parent 5c8d000378
commit 2a45c1165c
2 changed files with 31 additions and 39 deletions

View file

@ -160,9 +160,8 @@ namespace MapControl
{
string response = null;
if (ServiceUri != null && HasLayer && ParentMap != null &&
position.X >= 0d && position.X <= ParentMap.ActualWidth &&
position.Y >= 0d && position.Y <= ParentMap.ActualHeight)
if (ServiceUri != null && HasLayer &&
ParentMap != null && ParentMap.InsideViewBounds(position))
{
var uri = GetFeatureInfoRequestUri(position, format);