File

src/loaders/loader-options.interface.ts

Index

Properties

Properties

apiKey
apiKey: string
Type : string

JavaScript Api key token

apiVersion
apiVersion: string | number
Type : string | number
Optional

Maps API version.

appId
appId: string
Type : string

JavaScript App ID token

language
language: string
Type : string
Optional

The Google Maps API uses the browser's preferred language when displaying textual information. If you wish to overwrite this behavior and force the API to use a given language, you can use this setting. See https://developers.google.com/maps/documentation/javascript/basics#Language

libraries
libraries: string[]
Type : string[]

Defines which Maps libraries should get loaded.

protocol
protocol: string
Type : string
Optional

Protocol used for the <script> tag.

region
region: string
Type : string
Optional

The default bias for the map behavior is US. If you wish to alter your application to serve different map tiles or bias the application, you can overwrite the default behavior (US) by defining a region. See https://developers.google.com/maps/documentation/javascript/basics#Region

export interface LoaderOptions {
    /**
     * JavaScript Api key token
     */
    apiKey: string;
    /**
     * JavaScript App ID token
     */
    appId: string;

    /**
     * Maps API version.
     */
    apiVersion?: string | number;

    /**
     * Protocol used for the `<script>` tag.
     */
    protocol?: string;

    /**
     * Defines which Maps libraries should get loaded.
     */
    libraries: string[];

    /**
     * The default bias for the map behavior is US.
     * If you wish to alter your application to serve different map tiles or bias the
     * application, you can overwrite the default behavior (US) by defining a `region`.
     * See https://developers.google.com/maps/documentation/javascript/basics#Region
     */
    region?: string;

    /**
     * The Google Maps API uses the browser's preferred language when displaying
     * textual information. If you wish to overwrite this behavior and force the API
     * to use a given language, you can use this setting.
     * See https://developers.google.com/maps/documentation/javascript/basics#Language
     */
    language?: string;
}

result-matching ""

    No results matching ""