C# Класс JeffWilcox.Controls.BingMapsHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
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