Field-Map Scripting

4.4.6.9 DrawPolygon

DrawPolygon procedure


Prototype:

procedure DrawPolygon ( Polygon_ : TPolygonWrapper;

                       const LineWidth : integer;

                       const LineColor : string;

                       const FillStyle : integer;

                       const FillColor : string);


Description:

DrawPolygon procedure draws and shows polygon with predefined formatting in FieldMap Data collector map window.

Syntax:

Project.DrawPolygon (Polygon_, LineWidth, LineColor, FillStyle, FillColor);


Part

Description


Project

A reference to the Field-Map project as defined in Field-Map Project Manager


Polygon_

A reference to an instance of a TPolygonWrapper


LineWidth

Width of border line in px


LineColor

String expression defining the color of border line


FillStyle

Fill style of polygon


FillColor

Color used to fill the polygon



Return value:


none



See also:

GetPolygonIntersectArea_m2; OverlayPolygonLayers; TransferAttributeValuesFromPolygonsToPointsOrCentroids; GetPoint; GetCentroids; DrawText; DrawPoint; DrawLine; DrawPolygon; DrawCircle; DrawRectangle; FlashPolygon; FlashLine; FlashPoint; SelectedPointCount; SelectedPointID; SelectedLineCount; SelectedLineID; GetCurrentPosition; SetCurrentPosition; SetBasicExtent; GetMapExtent; GetMapFullExtent; GetBasicExtent; ZoomToPolygon; ZoomToLine; MapExtentAsVariant; AddReferencePoint; InvertColors; FindTargetHeight; SetCircularPlotBoundary; TrimLineByPlotBoundary; RefreshMap; RefreshMapRectangle; RefreshTrackingLayer; RefreshTrackingLayerRectangle; ScreenMilimeters2MapDistance_m; MapToScreen; SaveShapesToBlobs; SaveShapesOfCurrentPlotToBlobs; SaveShapesOfAllPlotsToBlobs; ProjectionToWGS84; WGS84ToProjection