1
mapcontrol을 만들려고합니다. 현재 경계 사각형을 25 개로 분할해야합니다. 이제 wp7 버전과 같은 경계 사각형이 없다는 것을 깨달았습니다.Wp8 경계 사각형 만들기
어떻게이 문제를 해결할 수 있습니까? 가능한 경우 Nokia 맵 사용을 피합니다.
mapcontrol을 만들려고합니다. 현재 경계 사각형을 25 개로 분할해야합니다. 이제 wp7 버전과 같은 경계 사각형이 없다는 것을 깨달았습니다.Wp8 경계 사각형 만들기
어떻게이 문제를 해결할 수 있습니까? 가능한 경우 Nokia 맵 사용을 피합니다.
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;
}