"setLayerClickEnabled"

Enables or disables the click events for the GIS Viewer.

Synopsis

void setLayerClickEnabled(string strLayer, bool IEnabled);

Parameters

Parameter Description
strLayer The layer for which the click events will be enabled or disabled.
IEnabled

TRUE = Enabled

FALSE = Disabled

Description

Enables or disables the click events for the GIS Viewer.

The GIS Viewer has the extended click event ShapeHit. If you disable the function setLayerClickEnabled, the event will not be executed. If you enable it, the event will be executed.

Example

Disables and enables the click events for the layer COUNTRY.

Enables the click events:

main()
{
  GisViewer_ewo1.setLayerClickEnabled("COUNTRY", TRUE );
}

Disables the click events:

main()
{
  GisViewer_ewo1.setLayerClickEnabled("COUNTRY", FALSE );
}

Assignment

GIS Viewer