message: Refactor getMapCoordinates
  Removed input parameter tagname, hardcoded instead the array tagnames=['trkpt,'wpt'] , and iterated through this array to get elements from the XML file at once and gather them in coordinates[ ] = [ track_path_points[ ], wpoints_points[ ] ].
diff: @@ -70,10 +70,13 @@ export class MapService {
  }
  - public async getMapCoordinates(file: FileDTO, tagname: string): Promise<MapCoordinates[]> {
  + public async getMapCoordinates(file: FileDTO): Promise<MapCoordinates[][]> {
  const filePath = Utils.concatUrls(file.directory.path, file.directory.name, file.name);
  const gpx = await this.networkService.getXML('/gallery/content/' + filePath);
  - const elements = gpx.getElementsByTagName(tagname);
  + const tagnames=['trkpt','wpt'];
  + var coordinates: MapCoordinates[][]=[];
  + tagnames.forEach(function (item, index) {
  + const elements=gpx.getElementsByTagName(item);
  const points: MapCoordinates[] = [];
  // tslint:disable-next-line:prefer-for-of
  for (let i = 0; i < elements.length; i++) {
  @@ -82,7 +85,9 @@ export class MapService {
  lng: parseFloat(elements[i].getAttribute('lon'))
  });
  }
  - return points;
  + coordinates[index]=points;
  + })
  + return coordinates;
  }
  }
  