GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Model
ArcGISRest Class
Provides access to the ArcGIS REST API via JavaScript. This class is a work in progress, only QueryDemographicData is currently implemented.
public class ArcGISRest : dymaptic.GeoBlazor.Pro.Model.ProLogicComponent
Inheritance System.Object 🡒 LogicComponent 🡒 ProLogicComponent 🡒 ArcGISRest
Constructors
ArcGISRest(AuthenticationManager, JsModuleManager, IAppValidator, IJSRuntime) Constructor
Public constructor for Dependency Injection
public ArcGISRest(dymaptic.GeoBlazor.Core.Model.AuthenticationManager authenticationManager, dymaptic.GeoBlazor.Core.JsModuleManager jsModuleManager, dymaptic.GeoBlazor.Core.IAppValidator appValidator, Microsoft.JSInterop.IJSRuntime jsRuntime);
Parameters
authenticationManager
AuthenticationManager
jsModuleManager
JsModuleManager
appValidator
dymaptic.GeoBlazor.Core.IAppValidator
jsRuntime
Microsoft.JSInterop.IJSRuntime
Methods
ArcGISRest.QueryDemographicData(Point) Method
Queries demographic data for the given point, and returns a list of features at that point.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Graphic[]> QueryDemographicData(dymaptic.GeoBlazor.Core.Components.Geometries.Point mapPoint);
Parameters
mapPoint
Point
The point to query.
Returns
System.Threading.Tasks.Task<Graphic[]>
ArcGISRest.Request(string, RequestOptions) Method
Retrieves data from a remote server or uploads a file from a user’s computer. If the request returns an Error, the error object will include the details specified in EsriErrorDetails.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Model.RequestResponse> Request(string url, dymaptic.GeoBlazor.Core.Options.RequestOptions options);
Parameters
url
System.String
The URL to request data from.
options
RequestOptions
The options specified by the user in the data request. See RequestOptions for available properties.
Returns
System.Threading.Tasks.Task<RequestResponse>
ArcGISRest.Request(string, RequestOptions) Method
Retrieves data from a remote server or uploads a file from a user’s computer. If the request returns an Error, the error object will include the details specified in EsriErrorDetails.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Model.RequestResponse<T>> Request<T>(string url, dymaptic.GeoBlazor.Core.Options.RequestOptions options);
Type parameters
T
The type of expected Response Data to deserialize.
Parameters
url
System.String
The URL to request data from.
options
RequestOptions
The options specified by the user in the data request. See RequestOptions for available properties.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Model.RequestResponse<T>>