On this page

    Config MapTiler logo

    The config object represents global settings for the SDK. It exposes properties to define global values used by the SDK, such as the API key, map units, and languages.

    Example

    
    import * as maptilersdk from '@maptiler/sdk';
    
    maptilersdk.config.apiKey = "YOUR_MAPTILER_API_KEY_HERE";
    maptilersdk.config.primaryLanguage = maptilersdk.Language.FRENCH;
    

    API reference

    Class SdkConfig

    Was this helpful?
    SDK JS
    Reference
    Config
    Config