Skip to main content

@mapgear/mapengine > MapEngineFactory > CreateMap

MapEngineFactory.CreateMap() method

Create a new map and add it to the DOM

Signature:
CreateMap(target: string, options: MapOptions): Map;

Parameters

ParameterTypeDescription
targetstringthe target DOM element where the map should be created
optionsMapOptionsThe options passed to the create method
Returns:

Map