GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components.Layers
ProGeoJSONLayer Class
Advanced GeoBlazor Parser for GeoJSON Layers that supports additional properties like in the <a target=”_blank” href=”https://wiki.openstreetmap.org/wiki/Geojson_CSS”>OpenStreetMap GeoJSON CSS</a> spec and the <a target=”_blank” href=”https://github.com/mapbox/simplestyle-spec/tree/master/1.1.0”>Mapbox SimpleStyle</a> spec.
public class ProGeoJSONLayer : dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 dymaptic.GeoBlazor.Core.Components.Layers.Layer 🡒 dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer 🡒 ProGeoJSONLayer
Constructors
ProGeoJSONLayer() Constructor
Parameterless constructor for use as a Razor Component.
public ProGeoJSONLayer();
ProGeoJSONLayer(string, string, string, string, Nullable<double>, Nullable<bool>, Nullable<ListMode>, string, IAttributeTableTemplate, Nullable<BlendMode>, Dictionary<string,object>, string, string, Nullable<bool>, DisplayFilterInfo, Nullable<bool>, Effect, GeoJSONLayerElevationInfo, FeatureEffect, IFeatureReduction, IReadOnlyList<Field>, Extent, Nullable<SimpleGeometryType>, Nullable<bool>, IReadOnlyList<Label>, Nullable<bool>, Nullable<bool>, Nullable<double>, Nullable<double>, string, IReadOnlyList<OrderByInfo>, IReadOnlyList<string>, Nullable<bool>, Nullable<bool>, PopupTemplate, PortalItem, Nullable<double>, Renderer, Nullable<bool>, SpatialReference, IReadOnlyList<IFeatureTemplate>, TimeExtent, TimeInfo, TimeInterval, TrackInfo, Nullable<bool>, TimeExtent, Nullable<bool>) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public ProGeoJSONLayer(string url, string sourceJSON="", string? copyright=null, string? title=null, System.Nullable<double> opacity=null, System.Nullable<bool> visible=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.ListMode> listMode=null, string? arcGISLayerId=null, dymaptic.GeoBlazor.Core.Interfaces.IAttributeTableTemplate? attributeTableTemplate=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.BlendMode> blendMode=null, System.Collections.Generic.Dictionary<string,object>? customParameters=null, string? definitionExpression=null, string? displayField=null, System.Nullable<bool> displayFilterEnabled=null, dymaptic.GeoBlazor.Core.Components.DisplayFilterInfo? displayFilterInfo=null, System.Nullable<bool> editingEnabled=null, dymaptic.GeoBlazor.Core.Model.Effect? effect=null, dymaptic.GeoBlazor.Core.Components.GeoJSONLayerElevationInfo? elevationInfo=null, dymaptic.GeoBlazor.Core.Components.FeatureEffect? featureEffect=null, dymaptic.GeoBlazor.Core.Interfaces.IFeatureReduction? featureReduction=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Field>? fields=null, dymaptic.GeoBlazor.Core.Components.Geometries.Extent? fullExtent=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.SimpleGeometryType> geometryType=null, System.Nullable<bool> isBasemapReferenceLayer=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Label>? labelingInfo=null, System.Nullable<bool> labelsVisible=null, System.Nullable<bool> legendEnabled=null, System.Nullable<double> maxScale=null, System.Nullable<double> minScale=null, string? objectIdField=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.OrderByInfo>? orderBy=null, System.Collections.Generic.IReadOnlyList<string>? outFields=null, System.Nullable<bool> persistenceEnabled=null, System.Nullable<bool> popupEnabled=null, dymaptic.GeoBlazor.Core.Components.Popups.PopupTemplate? popupTemplate=null, dymaptic.GeoBlazor.Core.Components.PortalItem? portalItem=null, System.Nullable<double> refreshInterval=null, dymaptic.GeoBlazor.Core.Components.Renderers.Renderer? renderer=null, System.Nullable<bool> screenSizePerspectiveEnabled=null, dymaptic.GeoBlazor.Core.Components.SpatialReference? spatialReference=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Interfaces.IFeatureTemplate>? templates=null, dymaptic.GeoBlazor.Core.Components.TimeExtent? timeExtent=null, dymaptic.GeoBlazor.Core.Components.TimeInfo? timeInfo=null, dymaptic.GeoBlazor.Core.Components.TimeInterval? timeOffset=null, dymaptic.GeoBlazor.Core.Components.TrackInfo? trackInfo=null, System.Nullable<bool> useViewTime=null, dymaptic.GeoBlazor.Core.Components.TimeExtent? visibilityTimeExtent=null, System.Nullable<bool> applyStyles=null);
Parameters
url
System.String
The URL of the GeoJSON file. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#url”>ArcGIS Maps SDK for JavaScript</a>
sourceJSON
System.String
The GeoJSON content as a string. Can be set directly or fetched from the Url property.
copyright
System.String
Copyright information for the layer. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#copyright”>ArcGIS Maps SDK for JavaScript</a>
title
System.String
The title of the layer used to identify it in places such as the <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html”>LayerList</a> widget. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#title”>ArcGIS Maps SDK for JavaScript</a>
opacity
System.Nullable<System.Double>
The opacity of the layer. default 1 <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#opacity”>ArcGIS Maps SDK for JavaScript</a>
visible
System.Nullable<System.Boolean>
Indicates if the layer is visible in the <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html”>View</a>. default true <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#visible”>ArcGIS Maps SDK for JavaScript</a>
listMode
System.Nullable<dymaptic.GeoBlazor.Core.Enums.ListMode>
Indicates how the layer should display in the <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html”>LayerList</a> widget. default “show” <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#listMode”>ArcGIS Maps SDK for JavaScript</a>
arcGISLayerId
System.String
The unique ID assigned to the layer. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#id”>ArcGIS Maps SDK for JavaScript</a>
attributeTableTemplate
dymaptic.GeoBlazor.Core.Interfaces.IAttributeTableTemplate
This property is used to configure the associated layer’s <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html”>FeatureTable</a>. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#attributeTableTemplate”>ArcGIS Maps SDK for JavaScript</a>
blendMode
System.Nullable<dymaptic.GeoBlazor.Core.Enums.BlendMode>
Blend modes are used to blend layers together to create an interesting effect in a layer, or even to produce what seems like a new layer. default normal <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-BlendLayer.html#blendMode”>ArcGIS Maps SDK for JavaScript</a>
customParameters
System.Collections.Generic.Dictionary<System.String,System.Object>
A list of custom parameters appended to the URL of all resources fetched by the layer. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#customParameters”>ArcGIS Maps SDK for JavaScript</a>
definitionExpression
System.String
The SQL where clause used to filter features on the client. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#definitionExpression”>ArcGIS Maps SDK for JavaScript</a>
displayField
System.String
The name of the layer’s primary display field. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#displayField”>ArcGIS Maps SDK for JavaScript</a>
displayFilterEnabled
System.Nullable<System.Boolean>
displayFilterInfo
dymaptic.GeoBlazor.Core.Components.DisplayFilterInfo
editingEnabled
System.Nullable<System.Boolean>
Indicates if the layer is editable. default false <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#editingEnabled”>ArcGIS Maps SDK for JavaScript</a>
effect
dymaptic.GeoBlazor.Core.Model.Effect
Effect provides various filter functions that can be performed on the layer to achieve different visual effects similar to how image filters work. default null <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#effect”>ArcGIS Maps SDK for JavaScript</a>
elevationInfo
dymaptic.GeoBlazor.Core.Components.GeoJSONLayerElevationInfo
Specifies how features are placed on the vertical axis (z). <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#elevationInfo”>ArcGIS Maps SDK for JavaScript</a>
featureEffect
dymaptic.GeoBlazor.Core.Components.FeatureEffect
The featureEffect can be used to draw attention features of interest. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#featureEffect”>ArcGIS Maps SDK for JavaScript</a>
featureReduction
dymaptic.GeoBlazor.Core.Interfaces.IFeatureReduction
Configures the method for reducing the number of features in the view. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#featureReduction”>ArcGIS Maps SDK for JavaScript</a>
fields
System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Field>
An array of fields in the layer. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#fields”>ArcGIS Maps SDK for JavaScript</a>
fullExtent
dymaptic.GeoBlazor.Core.Components.Geometries.Extent
The full extent of the layer. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#fullExtent”>ArcGIS Maps SDK for JavaScript</a>
geometryType
System.Nullable<dymaptic.GeoBlazor.Core.Enums.SimpleGeometryType>
The geometry type of features in the layer. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#geometryType”>ArcGIS Maps SDK for JavaScript</a>
isBasemapReferenceLayer
System.Nullable<System.Boolean>
Indicates whether the layer is a basemap reference layer. Default value: false.
labelingInfo
System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Label>
The label definition for this layer, specified as an array of <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html”>LabelClass</a>. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#labelingInfo”>ArcGIS Maps SDK for JavaScript</a>
labelsVisible
System.Nullable<System.Boolean>
Indicates whether to display labels for this layer. default true <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#labelsVisible”>ArcGIS Maps SDK for JavaScript</a>
legendEnabled
System.Nullable<System.Boolean>
Indicates whether the layer will be included in the legend. default true <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#legendEnabled”>ArcGIS Maps SDK for JavaScript</a>
maxScale
System.Nullable<System.Double>
The maximum scale (most zoomed in) at which the layer is visible in the view. default 0 <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#maxScale”>ArcGIS Maps SDK for JavaScript</a>
minScale
System.Nullable<System.Double>
The minimum scale (most zoomed out) at which the layer is visible in the view. default 0 <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#minScale”>ArcGIS Maps SDK for JavaScript</a>
objectIdField
System.String
The name of a <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#fields”>field</a> containing a unique value or identifier for each feature in the layer. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#objectIdField”>ArcGIS Maps SDK for JavaScript</a>
orderBy
System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.OrderByInfo>
Determines the order in which features are drawn in the view. default null <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#orderBy”>ArcGIS Maps SDK for JavaScript</a>
outFields
System.Collections.Generic.IReadOnlyList<System.String>
An array of field names from the geoJSON file to include with each feature. default null <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#outFields”>ArcGIS Maps SDK for JavaScript</a>
persistenceEnabled
System.Nullable<System.Boolean>
Enable persistence of the layer in a <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html”>WebMap</a> or <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html”>WebScene</a>. default true <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-OperationalLayer.html#persistenceEnabled”>ArcGIS Maps SDK for JavaScript</a>
popupEnabled
System.Nullable<System.Boolean>
Indicates whether to display popups when features in the layer are clicked. default true <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#popupEnabled”>ArcGIS Maps SDK for JavaScript</a>
popupTemplate
dymaptic.GeoBlazor.Core.Components.Popups.PopupTemplate
The popup template for the layer. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#popupTemplate”>ArcGIS Maps SDK for JavaScript</a>
portalItem
dymaptic.GeoBlazor.Core.Components.PortalItem
The portal item referencing the geojson file from which the GeoJSONLayer is loaded. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#portalItem”>ArcGIS Maps SDK for JavaScript</a>
refreshInterval
System.Nullable<System.Double>
Refresh interval of the layer in minutes. default 0 <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#refreshInterval”>ArcGIS Maps SDK for JavaScript</a>
renderer
dymaptic.GeoBlazor.Core.Components.Renderers.Renderer
The renderer assigned to the layer. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#renderer”>ArcGIS Maps SDK for JavaScript</a>
screenSizePerspectiveEnabled
System.Nullable<System.Boolean>
Apply perspective scaling to screen-size point symbols in a <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html”>SceneView</a>. default true <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#screenSizePerspectiveEnabled”>ArcGIS Maps SDK for JavaScript</a>
spatialReference
dymaptic.GeoBlazor.Core.Components.SpatialReference
The spatial reference of the layer. default SpatialReference.WGS84 <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#spatialReference”>ArcGIS Maps SDK for JavaScript</a>
templates
System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Interfaces.IFeatureTemplate>
An array of feature templates defined in the layer. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#templates”>ArcGIS Maps SDK for JavaScript</a>
timeExtent
dymaptic.GeoBlazor.Core.Components.TimeExtent
The layer’s time extent. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#timeExtent”>ArcGIS Maps SDK for JavaScript</a>
timeInfo
dymaptic.GeoBlazor.Core.Components.TimeInfo
TimeInfo provides information such as date fields that store <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#startField”>start</a> and <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#endField”>end</a> time for each feature and the <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#fullTimeExtent”>fullTimeExtent</a> for the layer. default null <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#timeInfo”>ArcGIS Maps SDK for JavaScript</a>
timeOffset
dymaptic.GeoBlazor.Core.Components.TimeInterval
A temporary offset of the time data based on a certain <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-time-TimeInterval.html”>TimeInterval</a>. default null <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#timeOffset”>ArcGIS Maps SDK for JavaScript</a>
trackInfo
dymaptic.GeoBlazor.Core.Components.TrackInfo
Allows you to render track data for a layer, including a track line, previous observations, and latest observations. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#trackInfo”>ArcGIS Maps SDK for JavaScript</a>
useViewTime
System.Nullable<System.Boolean>
Determines if the layer will update its temporal data based on the view’s <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#timeExtent”>timeExtent</a>. default true <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#useViewTime”>ArcGIS Maps SDK for JavaScript</a>
visibilityTimeExtent
dymaptic.GeoBlazor.Core.Components.TimeExtent
Specifies a fixed <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-time-TimeExtent.html”>time extent</a> during which a layer should be visible. default null <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#visibilityTimeExtent”>ArcGIS Maps SDK for JavaScript</a>
applyStyles
System.Nullable<System.Boolean>
If the GeoJSON source contains style information such as in the <a target=”_blank” href=”https://wiki.openstreetmap.org/wiki/Geojson_CSS”>OpenStreetMap GeoJSON CSS</a> spec or the <a target=”_blank” href=”https://github.com/mapbox/simplestyle-spec/tree/master/1.1.0”>Mapbox SimpleStyle</a> spec, this property must be set to determine whether to apply those styles to the features.
Properties
ProGeoJSONLayer.ApplyStyles Property
If the GeoJSON source contains style information such as in the <a target=”_blank” href=”https://wiki.openstreetmap.org/wiki/Geojson_CSS”>OpenStreetMap GeoJSON CSS</a> spec or the <a target=”_blank” href=”https://github.com/mapbox/simplestyle-spec/tree/master/1.1.0”>Mapbox SimpleStyle</a> spec, this property must be set to determine whether to apply those styles to the features.
public System.Nullable<bool> ApplyStyles { get; set; }
Property Value
System.Nullable<System.Boolean>
ProGeoJSONLayer.Features Property
The deserialized collection of dymaptic.GeoBlazor.Core.Components.Graphic features parsed from the GeoJSON content.
public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Graphic> Features { get; }
Property Value
System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Graphic>
ProGeoJSONLayer.HttpClient Property
HttpClient for fetching GeoJSON content from a URL.
public System.Net.Http.HttpClient HttpClient { get; set; }
Property Value
ProGeoJSONLayer.SourceJSON Property
The GeoJSON content as a string. Can be set directly or fetched from the Url property.
public string? SourceJSON { get; set; }
Property Value
ProGeoJSONLayer.Type Property
Used internally to identify the sub type of Layer
public override dymaptic.GeoBlazor.Core.Enums.LayerType Type { get; }
Property Value
dymaptic.GeoBlazor.Core.Enums.LayerType
ProGeoJSONLayer.Url Property
<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer.html#geojsonlayerurl-property”>GeoBlazor Docs</a> The URL of the GeoJSON file. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#url”>ArcGIS Maps SDK for JavaScript</a>
public override string Url { get; set; }
Property Value
Methods
ProGeoJSONLayer.Load() Method
Loads the resources referenced by this class. This method automatically executes for a View and all of the resources it references in Map if the view is constructed with a map instance. This method must be called by the developer when accessing a resource that will not be loaded in a View. The load() method only triggers the loading of the resource the first time it is called. The subsequent calls return the same promise.
public override System.Threading.Tasks.Task Load();
Returns
ProGeoJSONLayer.Load(IJSRuntime, JsModuleManager, CancellationToken) Method
Loads the resources referenced by this class. This method automatically executes for a View and all of the resources it references in Map if the view is constructed with a map instance. This method must be called by the developer when accessing a resource that will not be loaded in a View. The load() method only triggers the loading of the resource the first time it is called. The subsequent calls return the same promise.
public override System.Threading.Tasks.Task Load(Microsoft.JSInterop.IJSRuntime jsRuntime, dymaptic.GeoBlazor.Core.JsModuleManager jsModuleManager, System.Threading.CancellationToken cancellationToken);
Parameters
jsRuntime
Microsoft.JSInterop.IJSRuntime
The dependency-injected Blazor IJSRuntime instance to connect to JavaScript.
jsModuleManager
dymaptic.GeoBlazor.Core.JsModuleManager
The dependency-injected GeoBlazor JsModuleManager instance to load JavaScript modules.
cancellationToken
System.Threading.CancellationToken
A cancellation token to cancel the operation.
Returns
ProGeoJSONLayer.Load(CancellationToken) Method
Loads the resources referenced by this class. This method automatically executes for a View and all of the resources it references in Map if the view is constructed with a map instance. This method must be called by the developer when accessing a resource that will not be loaded in a View. The load() method only triggers the loading of the resource the first time it is called. The subsequent calls return the same promise.
public override System.Threading.Tasks.Task Load(System.Threading.CancellationToken cancellationToken);
Parameters
cancellationToken
System.Threading.CancellationToken
Returns
Remarks
It’s possible to provide a signal to stop being interested into a Loadable instance load status. When the signal is aborted, the instance does not stop its loading process, only cancelLoad can abort it.
ProGeoJSONLayer.ParseJSON() Method
Method for pre-parsing the GeoJSON content from the Url or SourceJSON properties before sending to ArcGIS. This is called automatically when the ProGeoJSONLayer is added in markup or when layer.Load() is called. If the layer is added to the map in code, this method or load should be called first.
public System.Threading.Tasks.Task ParseJSON();