mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-05 00:00:46 +01:00
Update WmsImageLayer.cs
This commit is contained in:
parent
8df5625382
commit
6fdb611c7d
|
|
@ -239,14 +239,15 @@ namespace MapControl
|
|||
}
|
||||
|
||||
var rect = projection.BoundingBoxToRect(BoundingBox);
|
||||
var pos = ParentMap.TransformToVisual(Children[1]).Transform(position); // top Image element
|
||||
var image = Children[1]; // top Image element
|
||||
var imagePos = ParentMap.TransformToVisual(image).Transform(position);
|
||||
|
||||
uri += "&CRS=" + projection.GetCrsValue();
|
||||
uri += "&BBOX=" + projection.GetBboxValue(rect);
|
||||
uri += "&WIDTH=" + (int)Math.Round(ParentMap.ViewTransform.Scale * rect.Width);
|
||||
uri += "&HEIGHT=" + (int)Math.Round(ParentMap.ViewTransform.Scale * rect.Height);
|
||||
uri += "&I=" + (int)Math.Round(pos.X);
|
||||
uri += "&J=" + (int)Math.Round(pos.Y);
|
||||
uri += "&I=" + (int)Math.Round(imagePos.X);
|
||||
uri += "&J=" + (int)Math.Round(imagePos.Y);
|
||||
uri += "&INFO_FORMAT=text/xml";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue