1
我想创建一个mapcontrol,我需要将当前的boundingrectangle拆分为25块,现在我意识到没有像wp7版本那样的boundingrectangle。Wp8地图边界矩形
我该如何解决这个问题?如果可能,我会避免使用诺基亚地图。
我想创建一个mapcontrol,我需要将当前的boundingrectangle拆分为25块,现在我意识到没有像wp7版本那样的boundingrectangle。Wp8地图边界矩形
我该如何解决这个问题?如果可能,我会避免使用诺基亚地图。
private LocationRectangle GetMapBounds()
{
GeoCoordinate topLeft = mapControl.ConvertViewportPointToGeoCoordinate(new Point(0, 0));
GeoCoordinate bottomRight = mapControl.ConvertViewportPointToGeoCoordinate(new Point(mapControl.ActualWidth, mapControl.ActualHeight));
if (topLeft != null && bottomRight != null)
{
return LocationRectangle.CreateBoundingRectangle(new[] { topLeft, bottomRight });
}
return null;
}