setPolygonOuterBoundaries()

The function sets the corner coordinates of a polygon of the Maps EWO.

Synopsis

bool setPolygonOuterBoundaries(int polygonId, dyn_float latitudes, dyn_float longitudes, layerId = 1)

Parameter

Parameter Description
polygonId polygon number
latitudes List of latitudes of the corner coordinates
longitudes List of longitudes of the corner coordinates
layerId layer number of line. Default: 1

Description

This function defines the boundaries of a specified polygon by setting its corner positions on the map. Therefore, the associated coordinate values (in degrees) must be added to the lists for the latitudes and longitudes. It returns false in case of an error.

A polygon needs to have at least 3 corner coordinates in order to make it visible, e.g.:

int iPolygon = Maps_ewo1.addPolygon("green", "blue", 2);
Maps_ewo1.setPolygonOuterBoundaries(iPolygon,makeDynFloat(47.830147, 48.205793, 47.067722),
makeDynFloat(16.532771, 16.370789, 15.438699));

Assignment

Maps Widget

See also

addPolygon(), appendPolygonInnerBoundaries(), centerOnPolygon(), getPolygonColor(), getPolygonFillPattern(), getPolygonInnerBoundaries(), getPolygonLineType(), getPolygonLineWidth(), getPolygonOuterBoundaries(), getPolygons(), polygonExists(), removePolygon(), setPolygonColor(), setPolygonFillPattern(), setPolygonLineType(), setPolygonLineWidth()