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.
|
Méthode | Description | |
---|---|---|
ClampZoomLevel ( int zoomLevel ) : int | ||
ResolutionMetersPerPixel ( double latitude, int zoomLevel ) : double |
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 |