mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 14:08:32 +00:00
Improve MapRect
This commit is contained in:
parent
07a8e454d5
commit
8bb2555533
10 changed files with 80 additions and 65 deletions
|
|
@ -150,8 +150,10 @@ namespace MapControl.Projections
|
|||
public override string GetBboxValue(MapRect rect)
|
||||
{
|
||||
return string.Format(CultureInfo.InvariantCulture, bboxFormat,
|
||||
rect.X / scaleFactor, rect.Y / scaleFactor,
|
||||
(rect.X + rect.Width) / scaleFactor, (rect.Y + rect.Height) / scaleFactor);
|
||||
rect.XMin / scaleFactor,
|
||||
rect.YMin / scaleFactor,
|
||||
rect.XMax / scaleFactor,
|
||||
rect.YMax / scaleFactor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue