mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Attached property MapPanel.MapRect
This commit is contained in:
parent
881b39c4b4
commit
69b105c11f
12 changed files with 150 additions and 96 deletions
|
|
@ -230,6 +230,14 @@ namespace MapControl
|
|||
return MapProjection.MapToLocation(ViewTransform.ViewToMap(point));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a MapRect in projected map coordinates that covers a rectangle in view coordinates.
|
||||
/// </summary>
|
||||
public MapRect ViewToMapRect(Rect rect)
|
||||
{
|
||||
return new MapRect(ViewTransform.ViewToMapBounds(rect), MapProjection.Center);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a BoundingBox in geographic coordinates that covers a rectangle in view coordinates.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue