ICsvLayer

Interface

The CSV layer type references a CSV or TXT file from a publically-accessible web server. It then dynamically loads into the map at run time. The CSV layer will maintain a reference to the CSV resource.

Extends

Properties

Property Type Notes
layerType "CSV"

String indicating the layer type.

id Inherited any

A unique identifying string for the layer.

columnDelimiter Optional "," | " " | ";" | "|" | " "

A string defining the character used to separate columns in a CSV file.

layerDefinition Optional ILayerDefinition

A layerDefinition object defining the attribute schema and drawing information for the layer.

locationInfo Optional any

A locationInfo object defining how location information will be retrieved from a CSV file.

popupInfo Optional IPopupInfo

A popupInfo object defining the content of popup windows when you click or query a feature.

refreshInterval Optional number

Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled.

type Optional "CSV"

Deprecated, use layerType instead.

itemId Optional Inherited string

Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal.

maxScale Optional Inherited number

Integer property used to determine the maximum scale at which the layer is displayed.

minScale Optional Inherited number

Integer property used to determine the minimum scale at which the layer is displayed.

name Optional Inherited string

Layer name

opacity Optional Inherited number

The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.

showLegend Optional Inherited boolean

Boolean property indicating whether to display in the legend.

title Optional Inherited string

A user-friendly string title for the layer that can be used in a table of contents.

url Optional Inherited string

The URL to the layer. Not applicable to all layer types.

visibility Optional Inherited boolean

Boolean property determining whether the layer is initially visible in the web map.


Interface defined in packages/arcgis-rest-types/src/webmap.ts:1240