Einzelnen Beitrag anzeigen

Benutzerbild von Sir Rufo
Sir Rufo

Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
 
Delphi 10 Seattle Enterprise
 
#3

AW: Delphi XE8 MapView-Komponente

  Alt 7. Mai 2015, 10:06
Oder wenn man sich ganz einfach den constructor anschaut
Delphi-Quellcode:
type
  TMapPolygonDescriptor = record
    Outline: TMapPolygonPolyvertex;
    Holes: TArray<TMapPolygonPolyvertex>;
    Geodesic: Boolean;
    FillColor: TAlphaColor;
    StrokeColor: TAlphaColor;
    StrokeWidth: Single;
    ZIndex: Single;
    class function Create(const Outline: TArray<TMapCoordinate>): TMapPolygonDescriptor; static;
    procedure AddHole(const Points: TArray<TMapCoordinate>);
  end;
Aha, ein Array vom Typen
Delphi-Quellcode:
type
  TMapCoordinate = record
    Latitude: Double;
    Longitude: Double;
    class function Create(const Latitude: Double; const Longitude: Double): TMapCoordinate; overload; static; inline;
    class function Create(const Point: TPointF): TMapCoordinate; overload; static; inline;
    class function Zero: TMapCoordinate; static; inline;
    function ToString: string;
  end;
Wozu so eine Dokumentation nicht alles gut ist ... (oder hier hätte auch ein STRG-Klick auf den Typen gereicht)
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ‎ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
  Mit Zitat antworten Zitat