removeLayer()

This function removes a layer from the Maps EWO.

Synopsis

bool removeLayer(int layerId)

Parameters

Parameter Description
layerId layer number

Description

This function is used to remove layers and all the associated symbols, polygons and lines from the Maps EWO. It returns false in case of an error.

The function removes a layer. Its symbols, polygons and lines are lost as well.

Example

int iLayer = Maps_ewo1.addEmptyLayer("New Layer");
...
Maps_ewo1.removeLayer(iLayer);

Assignment

Maps Widget

See also

addEmptyLayer(), clearLayer(), getLayerClickEnabled(), getLayerFromName(), getLayerName(), getLayers(), hideLayer(), isLayerVisible(), layerExists(), moveLayerToTop(), setLayerClickEnabled(), setLayerVisibleRange(), showLayer()