|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....|
|Home GeoPack GeoMap Class TGeoMap Methods RemoveLandMark|
|See also: AddLandMark, LandmarkData, OnLandMarkAction, RemoveAllLandMarks, RemoveLastLandMark, LandMarkDefault, LMRandomDisplayThreshold|
The function RemoveLandMark removes one or several landmarks from a map. There are four overloaded versions available which differ in the way how the landmarks are selected for removal:
The first version removes all landmarks within a circular area of radius Radius around the position [Lat/Long]. The second version removes all landmarks within a rectangular region defined by the parameter Rect. The third version removes the landmark which is nearest to the position [Lat/Long], and finally, the fourth version removes the landmark identified by its index LmIndex in the array LandmarkData.
The parameter ClassFlag determines which class of landmarks will be affected. Setting ClassFlag to values between 0 and 255 will allow only landmarks to be removed whose class number matches ClassFlag. If ClassFlag is set to -1, classes of landmarks do not influence the removal process.
The function returns the number of landmarks which have been removed.