Skip to main content

@mapgear/geoapps > GeoApps > AddMap

GeoApps.AddMap() method

Warning: This API is now obsolete.

We advise to use AddMap2 instead

Add a map to the specified target

Signature:
AddMap(target: string, mapId: string, workpaceId?: string): 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:

Map