GeoBlazor Pro
layout: pro title: ArcGISRest parent: Pro Classes grand_parent: 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 🡒 dymaptic.GeoBlazor.Core.Model.LogicComponent 🡒 ProLogicComponent 🡒 ArcGISRest
Constructors
ArcGISRest(IJSRuntime, AuthenticationManager, IAppValidator) Constructor
Public constructor for Dependency Injection
public ArcGISRest(Microsoft.JSInterop.IJSRuntime jsRuntime, dymaptic.GeoBlazor.Core.Model.AuthenticationManager authenticationManager, dymaptic.GeoBlazor.Core.IAppValidator appValidator);
Parameters
jsRuntime
Microsoft.JSInterop.IJSRuntime
authenticationManager
dymaptic.GeoBlazor.Core.Model.AuthenticationManager
appValidator
dymaptic.GeoBlazor.Core.IAppValidator
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.Layers.Graphic[]> QueryDemographicData(dymaptic.GeoBlazor.Core.Components.Geometries.Point mapPoint);
Parameters
mapPoint
dymaptic.GeoBlazor.Core.Components.Geometries.Point
The point to query.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Layers.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.Model.RequestOptions options);
Parameters
url
System.String
The URL to request data from.
options
dymaptic.GeoBlazor.Core.Model.RequestOptions
The options specified by the user in the data request. See dymaptic.GeoBlazor.Core.Model.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.Model.RequestOptions options);
Type parameters
T
The type of expected Response Data to deserialize.
Parameters
url
System.String
The URL to request data from.
options
dymaptic.GeoBlazor.Core.Model.RequestOptions
The options specified by the user in the data request. See dymaptic.GeoBlazor.Core.Model.RequestOptions for available properties.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Model.RequestResponse<T>>