![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
A Track Graphic is a type of entity which can be added to the track manager and is defined by a set of control points.
These control points can either be fixed locations, or may be attached to tracks within the manager. If one of a graphic's control points is attached to a track then the graphic will automatically update whenever the track’s position is modified.
In a similar fashion to tracks these graphics are managed by the track display manager. The application must create the graphic, setup the control points as needed, and then add it to the track manager for display. Graphics use the same 'TrackID' concept as the tracks which specifies the draw order of the tracks/graphics. Graphics may be 'picked' once they have been added to the display in the same fashion as tracks or other objects within MapLink.
This example demonstrates how to create a track graphic arrow, which will point from a track to a fixed position on the underlying map. The usage of each graphic implementation is slightly different, however the method in which the application creates graphics will be fairly similar. Please see the class documentation for the graphic in question for implementation-specific details.
When using in conjunction with Track Aggregation any track which is used as a control point for a graphic will be excluded from aggregation.
This means that the aggregated track group will be displayed, in addition to the track itself in this situation.