"setTextVisible"
Sets a text visible.
Synopsis
void setTextVisible(string strLayer, bool iVisible);
Parameters
Parameter | Description |
---|---|
strLayer | The layer whose text should be set visible. |
iVisible |
TRUE = text visible FALSE = text not visible |
Description
Sets a text visible.
Note that in order to display the text for a map, use the function maxWidthForText. Using the function you set the maximum width of the map in units ( degrees or meters ) at which the text is to be displayed. When the width of the map is higher than maxWidth, it is useless to display a text.
Example
Sets the text of the layer "COUNTRY" (column CAPITAL) visible.
main()
{
GisViewer_ewo1.maxWidthForText = 1000;
GisViewer_ewo1.setTextVisible( "COUNTRY", TRUE );
GisViewer_ewo1.selectShapeVarAsShapeName( "COUNTRY", "CAPITAL");
}
Assignment
GIS Viewer