Interface MapAdapter<M, L, C>

Parameters and methods that control the behavior of the map and the layers on it.

Type Parameters

  • M = any

    WEB-GIS framework map interface

  • L = any

    WEB-GIS framework layer interface

  • C = any

    WEB-GIS framework control interface


  • MapAdapter

Implemented by


controlAdapters: {
    [name: string]: Type<C>;

Named map controls specific for each framework.

Type declaration

  • [name: string]: Type<C>
emitter: StrictEventEmitter<EventEmitter, MapAdapterEvents>

An instance of the EventEmitter class for listen and emit events

isLoaded?: boolean

State of readiness of the card for use.

Default Value

layerAdapters: {
    [name: string]: Type<LayerAdapter<M, L, any>>;

Named adapters for map layers through a generic interface.

Type declaration

map?: M

Original map object of GIS framework (Leaflet.Map, Openlayers.Map, Mapboxgl.Map or other)


  • Tries to locate the user using the Geolocation API, firing a locationfound event with location data on success or a locationerror event on failure, and optionally sets the map view to the user's location with respect to detection accuracy (or to the world view if geolocation failed). Note that, if your page doesn't use HTTPS, this method will fail in modern browsers (Chrome 50 and newer) See Locate options for more details.


    Returns Locate

Generated using TypeDoc