C# 클래스 EasyBike.WinPhone.Helpers.MapExtensions

Helper methods to easily set and get view area in a more or less consistent way
파일 보기 프로젝트 열기: ThePublicBikeGang/EasyBike 1 사용 예제들

공개 메소드들

메소드 설명
CalcDistance ( this loc1, BasicGeoposition loc2 ) : double

Calculate the distance between two geocodes. Defaults to using Kilometers.

CalculateAngle ( this loc1, BasicGeoposition loc2 ) : double
Contains ( Geopoint location, GeoboundingBox geoBox ) : bool
Contains ( List polyPoints, Geopoint point ) : bool
Contains ( List polyPoints, double latitude, double longitude ) : bool
DiffRadian ( double val1, double val2 ) : double
GetAreaFromLocations ( List geopoints ) : GeoboundingBox
GetDistanceKM ( this point1, BasicGeoposition point2 ) : double
GetDistancePixel ( this point1, BasicGeoposition point2, double zoomLevel ) : double
GetDistanceTo ( this p1, Point p2 ) : double
GetOffsetLocation ( this station, MapControl map ) : Point
GetOffsetLocation2 ( this station, BasicGeoposition origin, double zoomLevel ) : Point
GetOffsetedLocation ( this point1, BasicGeoposition point2, double zoomLevel ) : Point

point1 must always be at the 0,0 offseted location

GetViewArea ( this map ) : GeoboundingBox
GetViewLocations ( this map ) : List
GroundResolution ( double latitude, double levelOfDetail ) : double

Determines the ground resolution (in meters per pixel) at a specified latitude and level of detail.

IsLocationVisible ( this map, Point point ) : bool
MapSize ( int levelOfDetail ) : uint

Determines the map width and height (in pixels) at a specified level of detail.

ParseMapLocationFinderResultAddress ( this result ) : string
SetViewArea ( this map, Geopoint p1, Geopoint p2 ) : void
ToRadian ( double val ) : double

비공개 메소드들

메소드 설명
Clip ( double n, double minValue, double maxValue ) : double

Clips a number to the specified minimum and maximum values.

Most helper functions are from MSDN site: http://msdn.microsoft.com/en-us/library/bb259689.aspx

메소드 상세

CalcDistance() 공개 정적인 메소드

Calculate the distance between two geocodes. Defaults to using Kilometers.
public static CalcDistance ( this loc1, BasicGeoposition loc2 ) : double
loc1 this
loc2 BasicGeoposition
리턴 double

CalculateAngle() 공개 정적인 메소드

public static CalculateAngle ( this loc1, BasicGeoposition loc2 ) : double
loc1 this
loc2 BasicGeoposition
리턴 double

Contains() 공개 정적인 메소드

public static Contains ( Geopoint location, GeoboundingBox geoBox ) : bool
location Geopoint
geoBox GeoboundingBox
리턴 bool

Contains() 공개 정적인 메소드

public static Contains ( List polyPoints, Geopoint point ) : bool
polyPoints List
point Geopoint
리턴 bool

Contains() 공개 정적인 메소드

public static Contains ( List polyPoints, double latitude, double longitude ) : bool
polyPoints List
latitude double
longitude double
리턴 bool

DiffRadian() 공개 정적인 메소드

public static DiffRadian ( double val1, double val2 ) : double
val1 double
val2 double
리턴 double

GetAreaFromLocations() 공개 정적인 메소드

public static GetAreaFromLocations ( List geopoints ) : GeoboundingBox
geopoints List
리턴 GeoboundingBox

GetDistanceKM() 공개 정적인 메소드

public static GetDistanceKM ( this point1, BasicGeoposition point2 ) : double
point1 this
point2 BasicGeoposition
리턴 double

GetDistancePixel() 공개 정적인 메소드

public static GetDistancePixel ( this point1, BasicGeoposition point2, double zoomLevel ) : double
point1 this
point2 BasicGeoposition
zoomLevel double
리턴 double

GetDistanceTo() 공개 정적인 메소드

public static GetDistanceTo ( this p1, Point p2 ) : double
p1 this
p2 Point
리턴 double

GetOffsetLocation() 공개 정적인 메소드

public static GetOffsetLocation ( this station, MapControl map ) : Point
station this
map MapControl
리턴 Point

GetOffsetLocation2() 공개 정적인 메소드

public static GetOffsetLocation2 ( this station, BasicGeoposition origin, double zoomLevel ) : Point
station this
origin BasicGeoposition
zoomLevel double
리턴 Point

GetOffsetedLocation() 공개 정적인 메소드

point1 must always be at the 0,0 offseted location
public static GetOffsetedLocation ( this point1, BasicGeoposition point2, double zoomLevel ) : Point
point1 this
point2 BasicGeoposition
zoomLevel double
리턴 Point

GetViewArea() 공개 정적인 메소드

public static GetViewArea ( this map ) : GeoboundingBox
map this
리턴 GeoboundingBox

GetViewLocations() 공개 정적인 메소드

public static GetViewLocations ( this map ) : List
map this
리턴 List

GroundResolution() 공개 정적인 메소드

Determines the ground resolution (in meters per pixel) at a specified latitude and level of detail.
public static GroundResolution ( double latitude, double levelOfDetail ) : double
latitude double Latitude (in degrees) at which to measure the /// ground resolution.
levelOfDetail double Level of detail, from 1 (lowest detail) /// to 23 (highest detail).
리턴 double

IsLocationVisible() 공개 정적인 메소드

public static IsLocationVisible ( this map, Point point ) : bool
map this
point Point
리턴 bool

MapSize() 공개 정적인 메소드

Determines the map width and height (in pixels) at a specified level of detail.
public static MapSize ( int levelOfDetail ) : uint
levelOfDetail int Level of detail, from 1 (lowest detail) /// to 23 (highest detail).
리턴 uint

ParseMapLocationFinderResultAddress() 공개 정적인 메소드

public static ParseMapLocationFinderResultAddress ( this result ) : string
result this
리턴 string

SetViewArea() 공개 정적인 메소드

public static SetViewArea ( this map, Geopoint p1, Geopoint p2 ) : void
map this
p1 Geopoint
p2 Geopoint
리턴 void

ToRadian() 공개 정적인 메소드

public static ToRadian ( double val ) : double
val double
리턴 double