Skip to main content

@mapgear/geoapps > GeoApps > AddMap2

GeoApps.AddMap2() method

Add a map to the specified target

Signature:
AddMap2(target: string, mapId: string, workpaceId?: string): Promise<Map>;

Parameters

ParameterTypeDescription
targetstringThe id (without hashtag) of the DOM-element where the map needs to be initialized, mostly a div-tag
mapIdstringThe GeoApps mapId to load
workpaceIdstring(Optional)
Returns:

Promise<Map>

Promise