addEmptyLayer()

This function adds a new empty layer to the Maps EWO.

Synopsis

int addEmptyLayer([string layerName])

Parameter

Parameter Description
layerName

Unique name of the layer.

Default: “Layer <layer number="">”

Description

This function is used to insert layers on the Maps EWO. It returns the unique layer number which can be used for further operations, such as adding symbols, polygons or lines to the layer.

The function only creates an empty layer. To use it add polygons, lines or symbols to it using the optional parameter for layer e.g.

int iLayer = Maps_ewo1.addEmptyLayer("New Layer");
Maps_ewo1.addLine("black", 1, iLayer);
Maps_ewo1.addPointToLine(iLine, 47.830147, 16.532771, iLayer);
Maps_ewo1.addPointToLine(iLine, 90, 0, iLayer);

Assignment

Maps Widget

See also

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