Table of Contents

TTMSFNCCustomMaps.LoadGeoJSONFromFile Method

Loads GeoJSON content and optionally creates map elements from it.

API unit family: TMSFNCMaps Declaring type: TTMSFNCCustomMaps

Overloads

Overload 1

Loads GeoJSON content and optionally creates map elements from it.

function LoadGeoJSONFromFile(AFileName: string; AAutoDisplay: Boolean = True; AZoomToBounds: Boolean = True): TTMSFNCMapsGeoJSONRec; overload; virtual;

Remarks

Import and export workflows usually need guide snippets for provider setup, styling, and event handling.

Parameters

Name Description
AFileName Path of the file to read or write.
AAutoDisplay Set to True to create map elements from the imported data immediately.
AZoomToBounds Bounds used by the operation.

Returns

True when the operation succeeds or the condition is met; otherwise False.

Overload 2

Loads GeoJSON content and optionally creates map elements from it.

function LoadGeoJSONFromFile(AFileName: string; AEncoding: TEncoding; AAutoDisplay: Boolean = True; AZoomToBounds: Boolean = True): TTMSFNCMapsGeoJSONRec; overload; virtual;

Remarks

Import and export workflows usually need guide snippets for provider setup, styling, and event handling.

Parameters

Name Description
AFileName Path of the file to read or write.
AEncoding Encoding used to read or write text content.
AAutoDisplay Set to True to create map elements from the imported data immediately.
AZoomToBounds Bounds used by the operation.

Returns

True when the operation succeeds or the condition is met; otherwise False.