TTMSFNCCustomMaps.LoadGeoJSONFromStream 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 LoadGeoJSONFromStream(const AStream: TStream; 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 |
|---|---|
AStream |
Stream to read from or write to. |
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 LoadGeoJSONFromStream(const AStream: TStream; 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 |
|---|---|
AStream |
Stream to read from or write to. |
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.