Back to Devexpress

TdxMapItemFileLayer.LoadFromStream(TStream) Method

vcl-dxmapitemfilelayer-dot-tdxmapitemfilelayer-dot-loadfromstream-x28-system-dot-classes-dot-tstream-x29.md

latest1.1 KB
Original Source

TdxMapItemFileLayer.LoadFromStream(TStream) Method

Loads KML vector data from a specified file stream.

Declaration

delphi
procedure LoadFromStream(AFileStream: TStream);

Parameters

NameType
AFileStreamTStream

Remarks

This method does the following:

  • Loads KML vector data from the file stream passed as the AFileStream parameter. If an exception occurs during this operation, the layer’s MapItems collection is cleared;

  • Populates the layer’s MapItems collection with map items that are created based on the loaded data;

  • Sets the Active property to True if data loading succeeds.

See Also

TdxMapItemFileLayer Class

TdxMapItemFileLayer Members

dxMapItemFileLayer Unit