C# Class Mapsui.Providers.ArcGIS.Dynamic.ArcGisLegend

ArcGislegend for getting the layer legends for ArcGIS layers only supports ArcGISserver 10.0 and up
Show file Open project: pauldendulk/Mapsui

Public Methods

Method Description
ArcGisLegend ( ) : System
GetLegendInfo ( string serviceUrl, ICredentials credentials = null ) : ArcGISLegendResponse
GetLegendInfoAsync ( string serviceUrl, ICredentials credentials = null ) : void

Get the legend for the given mapserver

Private Methods

Method Description
CreateRequest ( string serviceUrl, ICredentials credentials ) : HttpWebRequest
FinishWebRequest ( IAsyncResult result ) : void
GetLegendResponseFromWebresponse ( WebResponse webResponse ) : ArcGISLegendResponse
OnLegendFailed ( ) : void
OnLegendReceived ( ArcGISLegendResponse legendInfo ) : void

Method Details

ArcGisLegend() public method

public ArcGisLegend ( ) : System
return System

GetLegendInfo() public method

public GetLegendInfo ( string serviceUrl, ICredentials credentials = null ) : ArcGISLegendResponse
serviceUrl string
credentials ICredentials
return ArcGISLegendResponse

GetLegendInfoAsync() public method

Get the legend for the given mapserver
public GetLegendInfoAsync ( string serviceUrl, ICredentials credentials = null ) : void
serviceUrl string Url to the mapserver
credentials ICredentials Credentials
return void