layout: default title: CSVLayer parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Layers

CSVLayer Class

The CSVLayer is a point layer based on a CSV file (.csv, .txt). CSV is a plain-text file format used to
represent tabular data, including geographic point features (latitude, longitude). Typically the latitude
coordinate is the Y value, and the longitude coordinate is the X value. The X, Y coordinates must be stored
in SpatialReference.WGS84 in csv feed.
ArcGIS Maps SDK for JavaScript

public class CSVLayer : dymaptic.GeoBlazor.Core.Components.Layers.Layer,
dymaptic.GeoBlazor.Core.Interfaces.IFeatureReductionLayer,
dymaptic.GeoBlazor.Core.Components.Layers.IPopupTemplateLayer

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Layer 🡒 CSVLayer

Implements IFeatureReductionLayer, IPopupTemplateLayer

Constructors

CSVLayer() Constructor

Parameterless constructor for use as a razor component

public CSVLayer();

CSVLayer(string, string, string, Nullable, Nullable, Nullable, Nullable, PopupTemplate) Constructor

Constructor for use in code

public CSVLayer(string url, string? title=null, string? copyright=null, System.Nullable<double> opacity=null, System.Nullable<bool> visible=null, System.Nullable<dymaptic.GeoBlazor.Core.Components.Layers.ListMode> listMode=null, System.Nullable<dymaptic.GeoBlazor.Core.Components.Layers.BlendMode> blendMode=null, dymaptic.GeoBlazor.Core.Components.Popups.PopupTemplate? popupTemplate=null);

Parameters

url System.String

The url for the CSV source data.

title System.String

The title of the layer used to identify it in places such as the Legend and LayerList widgets.

copyright System.String

A copyright string to identify ownership of the data.

opacity System.Nullable<System.Double>

The opacity of the layer.

visible System.Nullable<System.Boolean>

Indicates if the layer is visible in the View. When false, the layer may still be added to a Map instance that is
referenced in a view, but its features will not be visible in the view.

listMode System.Nullable<ListMode>

Indicates how the layer should display in the LayerList widget. The possible values are listed below.

blendMode System.Nullable<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.

popupTemplate PopupTemplate

A PopupTemplate allows you to specify the content that appears in the popup dialog window.

Properties

CSVLayer.BlendMode Property

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.

public System.Nullable<dymaptic.GeoBlazor.Core.Components.Layers.BlendMode> BlendMode { get; set; }

Property Value

System.Nullable<BlendMode>

CSVLayer.Copyright Property

A copyright string to identify ownership of the data.

public string? Copyright { get; set; }

Property Value

System.String

CSVLayer.Delimiter Property

The column delimiter. Default is comma (,).

public System.Nullable<dymaptic.GeoBlazor.Core.Components.Layers.CSVDelimiter> Delimiter { get; set; }

Property Value

System.Nullable<CSVDelimiter>

CSVLayer.DisplayField Property

The name of the layer’s primary display field. The value of this property matches the name of one of the fields of the layer.

public string? DisplayField { get; set; }

Property Value

System.String

CSVLayer.LayerType Property

Used internally to identify the sub type of Layer

public override string LayerType { get; }

Property Value

System.String

CSVLayer.PopupTemplate Property

The PopupTemplate for the layer.

public dymaptic.GeoBlazor.Core.Components.Popups.PopupTemplate? PopupTemplate { get; set; }

Implements PopupTemplate

Property Value

PopupTemplate

CSVLayer.Renderer Property

The renderer assigned to the layer. The renderer defines how to visualize each feature in the layer. Depending on the renderer type, features may be visualized with the same symbol, or with varying symbols based on the values of provided attribute fields or functions.

public dymaptic.GeoBlazor.Core.Components.Renderers.Renderer? Renderer { get; set; }

Property Value

Renderer

CSVLayer.Url Property

The url for the GeoRSS source data.

public string? Url { get; set; }

Property Value

System.String

Methods

CSVLayer.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

System.Threading.Tasks.Task

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.

CSVLayer.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

System.Threading.Tasks.Task

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.