Unit: | SDL_geomap | Class: | TGeoMap | Declaration: | function LoadLandMarks (FName: string; DataID: string): boolean; |
The method LoadLandmarks reads landmark data from the XML file FName which has been previously created by the methods WriteLandmarksToOpenXMLFile or SaveLandmarks.
If the parameter DataID is empty, the first <gmlandmarks> tag is evaluated and read into the TGeoMap instance. If DataID is not empty, the entire rest of the file is read until a <gmlandmarks> tag is found whose attribute "id " matches DataID (the recognition of the "id" attribute is not case-sensitive). The function LoadLandmarks returns TRUE if valid starting tag <gmlandmarks> has been found.
Hint 2: |
Please note that the method LoadLandmarks repaints the geographic map after loading the stored landmarks, while ReadLandmarksFromOpenXMLFile does not. |
|