MapChartAddFeatureLayer Method

Spotfire 14.2 API Reference
Adds a feature layer from a table.

Namespace:  Spotfire.Dxp.Application.Visuals
Assembly:  Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 64.0.19329.3263 (64.0.19329.3263)
Syntax

C#
public FeatureLayer AddFeatureLayer(
	DataTable featureTable
)

Parameters

featureTable
Type: Spotfire.Dxp.DataDataTable
A data table containing map data.

Return Value

Type: FeatureLayer
A newly created feature layer.
Exceptions

ExceptionCondition
InvalidOperationExceptionIf the map chart already contains a FeatureLayer or a PictureLayer
Remarks

The returned layer is one of PolygonLayer, LineLayer and PointLayer depending on the table content. It is not possible to add more than one feature layer.
Version Information

Supported in: 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8, 11.7, 11.6, 11.5, 11.4
See Also

Reference