I use npm library. This library contains class repository with promises methos to get data from server:
export class MapRepository { constructor( readonly gl