C# Class JeffWilcox.Controls.BingMapsHelper

Afficher le fichier Open project: jeffwilcox/wp-maps

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
ClampZoomLevel ( int zoomLevel ) : int
ResolutionMetersPerPixel ( double latitude, int zoomLevel ) : double

Method Details

GetZoomLevelShowingPoints() public static méthode

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.
Résultat double