Jump to main content
SIMATIC WinCC Open Architecture Version 3.18 Documentation
  • Highlights and Release Notes
  • Getting Started - Tutorial
  • DemoApplication
  • Installation
  • Project Administration
  • Mass configuration
  • Module PARA
  • Graphics Editor (GEDI)
  • System Management
  • User Interface
  • CONTROL
  • Multilingual Projects
  • Add-ons
  • Special Functions
  • Drivers
  • Diagnostics
  • Reference Tables
  • Security
  • Product Information
  • Videos & Tutorials
  • Support & Services
  1. Home
  2. CONTROL
  3. Control graphics
  4. Maps Widget - Properties and Functions
  5. getPolygons()
  • CONTROL
    • Introduction to CTRL

      An introduction to the product's own programming language Control(CTRL).

    • CONTROL Classes
    • Types of Control Functions

      An overview of the types of functions distinguished within Control.

    • Control graphics
      • Graphics objects
      • Attributes of graphics objects
      • Panel functions
      • Reference Functions
      • Arc
      • AttentionEffect EWO functions
      • Bar trend
      • BarChart3D EWO
      • Button
      • Chart.ewo
      • Calendar
      • Cascade
      • Checkbox
      • Clock
      • Combobox
      • DateTimeEdit EWO functions
      • DialGauge EWO
      • DoubleSpinbox EWO
      • DpTreeView
      • DpTypeView
      • Embedded module
      • Frame
      • GIS Viewer EWO

        WinCC OA GIS Viewer provides the cartographic representation of objects in WinCC OA. This new feature provides numerous advantages, particularly in geographical distributed systems, like in Water, Traffic, Oil & Gas or Energy.

      • Label Functions
      • Layoutgroup functions
      • LCD number
      • Maps Widget - Properties and Functions
        • Maps Widget - Properties and Functions
        • addEmptyLayer()
        • addGeoDataFile()
        • addLine()
        • addPlacemark()
        • addPointToLine()
        • addPolygon()
        • addSymbol()
        • appendPolygonInnerBoundaries()
        • centerOn()
        • centerOnBox()
        • centerOnHome()
        • centerOnLine()
        • centerOnPlacemark()
        • centerOnPolygon()
        • centerOnSymbol()
        • clearLayer()
        • getLayerClickEnabled()
        • getLayerFromName()
        • getLayerName()
        • getLayers()
        • getLineColor()
        • getLinePoints()
        • getLines()
        • getLineType()
        • getLineWidth()
        • getMapCoordinates()
        • getPluginData()
        • getPolygonColor()
        • getPolygonFillPattern()
        • getPolygonInnerBoundaries()
        • getPolygonLineType()
        • getPolygonLineWidth()
        • getPolygonOuterBoundaries()
        • getPolygons()
        • getScreenCoordinates()
        • getVisibleBox()
        • hideLayer()
        • isLayerVisible()
        • isPositionVisible()
        • latLonToString()
        • layerExists()
        • lineExists()
        • moveLayerToTop()
        • pan()
        • polygonExists()
        • removeGeoDataFile()
        • removeLayer()
        • removeLine()
        • removePlacemark()
        • removePolygon()
        • removeSymbol()
        • setHome()
        • setLayerClickEnabled()
        • setLayerVisibleRange()
        • setLineColor()
        • setLineType()
        • setLineWidth()
        • setPluginData()
        • setPolygonColor()
        • setPolygonFillPattern()
        • setPolygonLineType()
        • setPolygonLineWidth()
        • setPolygonOuterBoundaries()
        • showLayer()
        • stringToLatLon()
        • zoom()
      • PDF Viewer EWO
      • PictureFlow EWO functions
      • Pipe
      • Polyline
      • Primitive text
      • Progress bar
      • Radio box
      • Rectangle
      • Reference Functions
      • Scheduler.ewo
      • Selection list
      • Slider
      • Spin button
      • Splitter
      • Tab
      • Table

        The available functions of the Table object.

      • TextEdit
      • Text field
      • Thumb wheel
      • ToggleSwitch EWO
      • Tree widget
      • Trend Functions
      • WebView EWO

        All events and functions, specifically available for the WebView EWO.

      • Zoom Navigator

        Functions available for the Zoom Navigator widget.

    • CONTROL Functions
    • CTRL Debugger

      With the CTRL Debugger you can debug the programming language Control.

    • CtrlExtension

      The CtrlExtension allows the addition of custom C++ code.

getPolygons()

The function returns a list of all polygons of the Maps EWO.

Synopsis

dyn_int getPolygons(layerId = 1)

Parameter

Parameter Description
layerId layer number of polygon. Default: 1

Description

This function returns the polygon number of every polygon in a layer in the Maps EWO.

Assignment

Maps Widget

See also

addPolygon(), setPolygonOuterBoundaries(), appendPolygonInnerBoundaries(), setPolygonColor(), getPolygonColor(), setPolygonLineWidth(), getPolygonLineWidth(), removePolygon()

SIMATIC WinCC Open Architecture Version 3.18.31 - © ETM professional control GmbH - ✉ documentation@etm.at | | | - Privacy Policy - Cookie Policy - Terms of use