| MGDwgDataSources.getNameColumn |
|
string getNameColumn()
Gets the name of the column that contains the name for each map feature.
The features name appears in a MapTip and in the status bar when the user pauses the mouse pointer over the feature.
This method is not affected by the busy state.
none
String - The name of the Name column.
none
This code is designed to work with the 1stfloorplanEx6.mwf file used by the Filter DWG Layers example:
function getProperties()
{
// Get the map and selected features
var map = getMap();
var mapSel = map.getSelection();
// Use the single map layer Floor Plan
var mapLayer = map.getMapLayer("Floor Plan");
// Get DWG data source object for the layer
var mapLayerSetup = mapLayer.getLayerSetup();
var dwgMapLayerDataSource = mapLayerSetup.getDwgDataSources();
var nameColumn = dwgMapLayerDataSource.getNameColumn();
}