Skip to main content

@mapgear/geoapps > GeoApps > AddApp

GeoApps.AddApp() method

Add a GeoApps app

Signature:
AddApp(name: string, appId: string, current?: boolean): Promise<App>;

Parameters

ParameterTypeDescription
namestringUnique reference name of the app, used to retrieve the app through GetApp()
appIdstringThe id of the app to load requested environment is not the default project for the app
currentboolean(Optional) Indication if the app that is added is the current app
Returns:

Promise<App>

App representing the app that is requested by the specified appId