layout: default title: DynamicDataLayer parent: Core Classes —
dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Layers
DynamicDataLayer Class
A dynamic data layer is a layer created on-the-fly with data stored in a registered workspace. This is data that can be rendered and queried on the fly, but that isn’t explicitly exposed as a service sublayer. Depending on the type of data source, these layers are classified as one of the following:
ArcGIS Maps SDK for JavaScript
public class DynamicDataLayer : dymaptic.GeoBlazor.Core.Components.Layers.DynamicLayer
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 DynamicLayer 🡒 DynamicDataLayer
Constructors
DynamicDataLayer() Constructor
Parameterless constructor for use as a Razor component.
public DynamicDataLayer();
DynamicDataLayer(DynamicDataSource, IEnumerable) Constructor
Creates a new DynamicDataLayer in code with parameters.
public DynamicDataLayer(dymaptic.GeoBlazor.Core.Components.Layers.DynamicDataSource dataSource, System.Collections.Generic.IEnumerable<dymaptic.GeoBlazor.Core.Components.Layers.DynamicLayerField>? fields=null);
Parameters
dataSource
DynamicDataSource
The data source for the dynamic data layer.
fields
System.Collections.Generic.IEnumerable<DynamicLayerField>
Controls field visibility in the layer. Only specified fields will be visible. If null, all fields are visible in the dynamic layer. The specification for a field object is provided below.
Properties
DynamicDataLayer.DataSource Property
A table, feature class, or raster that resides in a registered workspace (either a folder or geodatabase). The data sources are not visible in the Services Directory by default. They may be viewed, published, and configured using the ArcGIS Server Manager.
public dymaptic.GeoBlazor.Core.Components.Layers.DynamicDataSource? DataSource { get; set; }
Property Value
DynamicDataLayer.Fields Property
Controls field visibility in the layer. Only specified fields will be visible. If null, all fields are visible in the dynamic layer. The specification for a field object is provided below.
public System.Collections.Generic.IReadOnlyCollection<dymaptic.GeoBlazor.Core.Components.Layers.DynamicLayerField> Fields { get; set; }
Property Value
System.Collections.Generic.IReadOnlyCollection<DynamicLayerField>
DynamicDataLayer.Type Property
The type of dynamic layer
public override string Type { get; }
Property Value
Methods
DynamicDataLayer.RegisterChildComponent(MapComponent) Method
Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync to “Register” the current component with it’s parent.
public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
MapComponent
The calling, child component to register
Returns
Exceptions
InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.
Remarks
This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method. If you see no other way to register a child component, please open an issue on GitHub.
DynamicDataLayer.UnregisterChildComponent(MapComponent) Method
Undoes the “Registration” of a child with its parent.
public override System.Threading.Tasks.Task UnregisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
MapComponent
The child to unregister
Returns
Remarks
This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method.