C# Class GMap.NET.MapProviders.GMapProvider

base class for each map provider
Mostrar archivo Open project: ArduPilot/MissionPlanner Class Usage Examples

Public Properties

Property Type Description
Area RectLatLng?
BypassCache bool
Copyright string
Credential ICredentials
DbId int
InvertedAxisY bool
IsSocksProxy bool
MaxZoom int?
MinZoom int
RefererUrl string
TimeoutMs int
UserAgent string
WebProxy IWebProxy

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetTileImage ( GPoint pos, int zoom ) : PureImage

gets tile image using implmented provider

OnInitialized ( ) : void

called before first use

ToString ( ) : string

Protected Methods

Method Description
CheckTileImageHttpResponse ( WebResponse response ) : bool
GMapProvider ( ) : System
GetContentUsingHttp ( string url ) : string
GetServerNum ( GPoint pos, int max ) : int
GetTileImageUsingHttp ( string url ) : PureImage

Method Details

CheckTileImageHttpResponse() protected method

protected CheckTileImageHttpResponse ( WebResponse response ) : bool
response System.Net.WebResponse
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GMapProvider() protected method

protected GMapProvider ( ) : System
return System

GetContentUsingHttp() protected method

protected GetContentUsingHttp ( string url ) : string
url string
return string

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetServerNum() protected static method

protected static GetServerNum ( GPoint pos, int max ) : int
pos GPoint
max int
return int

GetTileImage() public abstract method

gets tile image using implmented provider
public abstract GetTileImage ( GPoint pos, int zoom ) : PureImage
pos GPoint
zoom int
return PureImage

GetTileImageUsingHttp() protected method

protected GetTileImageUsingHttp ( string url ) : PureImage
url string
return PureImage

OnInitialized() public method

called before first use
public OnInitialized ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

Area public_oe property

area of map
public RectLatLng? Area
return RectLatLng?

BypassCache public_oe property

to bypass the cache, set to true
public bool BypassCache
return bool

Copyright public_oe property

public string Copyright
return string

Credential public_oe static_oe property

NetworkCredential for tile http access
public static ICredentials Credential
return ICredentials

DbId public_oe property

id for database, a hash of provider guid
public int DbId
return int

InvertedAxisY public_oe property

true if tile origin at BottomLeft, WMS-C
public bool InvertedAxisY
return bool

IsSocksProxy public_oe static_oe property

Connect trough a SOCKS 4/5 proxy server
public static bool IsSocksProxy
return bool

MaxZoom public_oe property

maximum level of zoom
public int? MaxZoom
return int?

MinZoom public_oe property

minimum level of zoom
public int MinZoom
return int

RefererUrl public_oe property

Gets or sets the value of the Referer HTTP header.
public string RefererUrl
return string

TimeoutMs public_oe static_oe property

timeout for provider connections
public static int TimeoutMs
return int

UserAgent public_oe static_oe property

Gets or sets the value of the User-agent HTTP header. It's pseudo-randomized to avoid blockages...
public static string UserAgent
return string

WebProxy public_oe static_oe property

proxy for net access
public static IWebProxy WebProxy
return IWebProxy