|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 AddLandMark|
|See also: LandmarkData, OnLandMarkAction, RemoveLandMark, TLandMark, LandMarkDefault, LMRandomDisplayThreshold|
The method AddLandmark adds a landmark to the map. It can be used in five different incarnations:  using the full specification of a landmark,  setting only its position and altitude while using the property LandmarkDefault as a template for the rest of the parameters, and  setting the position, the altitude, the identifier and the time stamp of the landmark (all other parameters are taken from LandmarkDefault. Versions  and  are comparable to versions  and  but additionally allow to specify the text of a caption and its size and color.
The parameters Lat, Long and Altitude specify the latitude, the longitude and the altitude of the landmark, respectively. The parameter Classflag contains a class number which can be used to group landmarks (i.e. landmarks can be hidden and made visible according to their class number by using the property LMClassVisible). The parameter Identifier is a short string which can be used to identify the landmark, the parameter Time contains the time stamp of the landmark.
The parameter Tag can be used to specify an arbitrary integer value, which can be used by the programmer for his own purposes. Tag is not used by TGeoMap. ColorFG and ColorBG specify the foreground and background color of the landmark. The parameter Size controls the size of the landmark (in pixels). The landmark is transparent if the parameter Transparent is TRUE. In this case the background color ColorBG is ignored.
The parameter Element controls the visual type of the landmark. Currently the following types of landmarks are available:
Finally, the parameters Direction and Length control the direction of arrow and triangle landmarks and the length of arrow landmarks. They are ignored for all other types of landmarks.