"setLayerDrawAfterText"

Sets the selected layer at the top.

Synopsis

void setLayerDrawAfterText(string strLayer);

Parameters

Parameter Description
strLayer Name of the layer who will be set at the top

Description

Normally there are several layers and each layer covers the previous layer. The texts for the layers will be drawn as follows:

Layer 1, text for layer 1, layer 2, text for layer 2., layer 3, etc..

When you set 'setLayerDrawAfterText( "text for layer1" ), The function will draw layer 1, layer 2, text for layer 2., layer 3, TEXT FOR LAYER 1. This guarantees that the text will not be covered by something.

The function will display the text of the layer field 'NAME". If this field does not exist, use the function 'selectShapeVarAsShapeName' to tell the viewer what field to use.

Example

Sets the text (text of the field NAME) of layer COUNTRY to the top, meaning this guarantees that the text will not be covered by something.

main()
{
  GisViewer_ewo1.setLayerDrawAfterText("NAME");
}

Assignment

GIS Viewer