MapChartAddFeatureLayer Method

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

Namespace:  Spotfire.Dxp.Application.Visuals
Assembly:  Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 71.0.22122.5390 (71.0.22122.5390)
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


See Also

Reference