Composant Delphi / Google Maps / OpenStreetMap / Leaflet  / Mappilary / Native Maps 100% Delphi 0% WebBrowser 0% Javascript


you are here :TECNativeMap > Shapes


TECShapePolygone descends from TECShapeLine and allows to display on your map polygons.

Fig. 1 Polygones

In addition to the properties of TECShapeLine you have access to

Property Area : double

Surface Km²

property FillColor : TColor

Fill color

Property Color : TColor

The border color

property Style : TBrushStyle

Fill style (bsSolid, bsClear, bsHorizontal, bsVertical, bsFDiagonal, bsBDiagonal, bsCross, bsDiagCross)

Style does not work under Firemonkey, use BrushFilename to indicate an image that will fill your polygon, BrushFilename can be either a local path or a url or an encoded as base64 for image, like Marker.Filename

property Opacity : byte
Opacity of the polygon (0 = fully transparent, 100 = opaque)
property Level : integer
Height in metres of the polygon for a display in pseudo 3D

Fig. 2 Level = 16 - Level = 0


You also have an OnAfterDraw event that allows you to draw on top your polygon, example to include its description.


go to page
Réalisé avec la version gratuite pour les particuliers d'Help&Web