addPointToLine()

The function adds a point to a line of the Maps EWO.

Synopsis

bool addPointToLine(int lineId, float lat, float lon, int layerId = 1)

Parameter

Parameter Description
line line number
lat latitude
lon longitude
layerId layer number of line. Default = 1.

Description

This function adds a point, defined by coordinates, to a specified line. It returns false in case of an error.

int iLine = Maps_ewo1.addLine("red", 2);
Maps_ewo1.addPointToLine(iLine, 47.830147, 16.532771);
Maps_ewo1.addPointToLine(iLine, 90, 0);

Assignment

Maps Widget

See also

addLine(), centerOnLine(), getLineColor(), getLinePoints(), getLines(), getLineType(), getLineWidth(), lineExists(), removeLine(), setLineColor(), setLineType(), setLineWidth()