TTMSFNCMaps.LoadGPXFromFile Method
Loads GPX content and optionally creates map elements from it.
API unit family: TMSFNCMaps
Declaring type: TTMSFNCMaps
Inherited from: TTMSFNCCustomMaps
Overloads
Overload 1
Loads GPX content and optionally creates map elements from it.
function LoadGPXFromFile(AFileName: string; AAutoDisplay: Boolean = True; AZoomToBounds: Boolean = True; AStrokeWidth: Integer = 3; AStrokeColor: TTMSFNCGraphicsColor = gcBlack; ADisplayElevation: Boolean = False; ADisplayTimeStamps: Boolean = False; AMinSecondsBetweenTimeStamps: Integer = 600): TTMSFNCMapsGPXRec; overload; virtual;
Remarks
Import and export workflows usually need guide snippets for provider setup, styling, and event handling.
Returns
True when the operation succeeds or the condition is met; otherwise False.
Overload 2
Loads GPX content and optionally creates map elements from it.
function LoadGPXFromFile(AFileName: string; AAutoDisplay: Boolean; AZoomToBounds: Boolean; AStrokeWidth: Integer; AElevationColors: TTMSFNCMapsGPXColorRecArray; ADisplayElevation: Boolean; ADisplayTimeStamps: Boolean = False; AMinSecondsBetweenTimeStamps: Integer = 600): TTMSFNCMapsGPXRec; overload; virtual;
Remarks
Import and export workflows usually need guide snippets for provider setup, styling, and event handling.
Returns
True when the operation succeeds or the condition is met; otherwise False.
Overload 3
Loads GPX content and optionally creates map elements from it.
function LoadGPXFromFile(AFileName: string; AEncoding: TEncoding; AAutoDisplay: Boolean = True; AZoomToBounds: Boolean = True; AStrokeWidth: Integer = 3; AStrokeColor: TTMSFNCGraphicsColor = gcBlack; ADisplayElevation: Boolean = False; ADisplayTimeStamps: Boolean = False; AMinSecondsBetweenTimeStamps: Integer = 600): TTMSFNCMapsGPXRec; overload; virtual;
Remarks
Import and export workflows usually need guide snippets for provider setup, styling, and event handling.
Returns
True when the operation succeeds or the condition is met; otherwise False.
Overload 4
Loads GPX content and optionally creates map elements from it.
function LoadGPXFromFile(AFileName: string; AEncoding: TEncoding; AAutoDisplay: Boolean; AZoomToBounds: Boolean; AStrokeWidth: Integer; AElevationColors: TTMSFNCMapsGPXColorRecArray; ADisplayElevation: Boolean; ADisplayTimeStamps: Boolean = False; AMinSecondsBetweenTimeStamps: Integer = 600): TTMSFNCMapsGPXRec; overload; virtual;
Remarks
Import and export workflows usually need guide snippets for provider setup, styling, and event handling.
Returns
True when the operation succeeds or the condition is met; otherwise False.