C# 클래스 JeffWilcox.Controls.BingMapsHelper

파일 보기 프로젝트 열기: jeffwilcox/wp-maps

공개 메소드들

메소드 설명
GetZoomLevelShowingPoints ( GeoCoordinate geo1, GeoCoordinate geo2, double pixelsBetween ) : double

Gets a Bing Maps zoom level that should let the user easily see both points of interest. I'm using this to show both the current location of the phone plus a destination place.

비공개 메소드들

메소드 설명
ClampZoomLevel ( int zoomLevel ) : int
ResolutionMetersPerPixel ( double latitude, int zoomLevel ) : double

메소드 상세

GetZoomLevelShowingPoints() 공개 정적인 메소드

Gets a Bing Maps zoom level that should let the user easily see both points of interest. I'm using this to show both the current location of the phone plus a destination place.
public static GetZoomLevelShowingPoints ( GeoCoordinate geo1, GeoCoordinate geo2, double pixelsBetween ) : double
geo1 GeoCoordinate First point of interest.
geo2 GeoCoordinate Second point of interest.
pixelsBetween double The number of ideal pixels between the /// two points. For a screen which may be 480 pixels wide, figure with /// pin size on display, maybe provide a value like 210 pixels.
리턴 double