get Instance
Get an instance of MapLibre.
This class manages the API key, application context, and connectivity state.
Return
the single instance of MapLibre
Parameters
Android context which holds or is an application context
Get an instance of MapLibre.
This class manages the API key, application context, and connectivity state.
Return
the single instance of MapLibre
Parameters
Android context which holds or is an application context
api key
the tile server whose predefined configuration will be used to bootstrap the SDK. The predefined configuration includes rules for converting resource URLs between normal and canonical forms and set of predefined styles available on the server.
Get an instance of MapLibre, explicitly picking the rendering engine to use.
This class manages the API key, application context, and connectivity state.
Return
the single instance of MapLibre
Parameters
Android context which holds or is an application context
api key
the tile server whose predefined configuration will be used to bootstrap the SDK. The predefined configuration includes rules for converting resource URLs between normal and canonical forms and set of predefined styles available on the server.
the rendering engine to use; ignored if MapLibre has already been initialized in this process. If null, the default rendering engine will be used.
Throws
if type isn't supported by this build of the SDK (single-backend flavors only support their compiled-in backend).