Skip to main content

@mapgear/mapengine > MapEngineFactory

MapEngineFactory interface

Main factory object to create new objects. A factory is used to be able to provide multiple map engines and handling map engines without knowing the exact map engine that is used in the backend.

Signature:
export interface MapEngineFactory 

Methods

MethodDescription
CreateMap(target, options)Create a new map and add it to the DOM
GetProjection(epsgCode)Retrieve a projection object for the specified EPSG code
RegisterProjection(epsgCode, projectionString)Register an additional projection in the mapengine