@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
| Parameter | Type | Description |
|---|---|---|
| target | string | The id (without hashtag) of the DOM-element where the map needs to be initialized, mostly a div-tag |
| mapId | string | The GeoApps mapId to load |
| workpaceId | string | (Optional) |
Promise<Map>
Promise