The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration: property OnLandMarkAction: TLandMarkActionEvent;
{TLandMarkActionEvent = procedure (Sender: TObject; var Allowed: boolean; const Action: TLandMarkAction; const LandMarkData: TLandMark) of object;}

The event OnLandMarkAction is triggered when a landmark is about to be added or removed from the map by either the method RemoveLandmark, RemoveLastLandMark, or AddLandMark. This event allows you to abort the landmark operation by setting the Allowed parameter to FALSE. A typical application of the OnLandMarkAction event would be to prevent the setting of landmarks in certain areas.

Please note that OnLandMarkAction is triggered for each single landmark if several landmarks are to be removed.

Last Update: 2012-Oct-24