Optionalcolor?: stringColor, black by default
OptionalfillStyle?: stringFilling style (transp|fill|-|vert|hor|/|)
Optionalhidden?: booleantrue to get the created surface masked
Optionalopacity?: numberopacity (0 to 1), 1 by default
Tag of the polygon
Optionaltag?: stringThe tag to be applied on the created surface
the created surface if isPromiseMode is false else promise that will be resolved when the object is displayed
Adds a surface delimited by a polygon syntaxes
addSurfacePoly(poly),addSurfacePoly(poly, color),addSurfacePoly(poly, color, fillStyle)andaddSurfacePoly(poly, color, fillStyle, opacity)are allowed too