Interface TGetMapDataWithAccessTokenOptions

interface TGetMapDataWithAccessTokenOptions {
    accessToken: string;
    analytics?: {
        baseUri?: string;
        logEvents?: boolean;
        sendEvents?: boolean;
    };
    baseAuthUri?: string;
    baseUri?: string;
    environment?: ServiceEnvironment;
    mapId: string;
    onMVFParsed?: ((mvf: TMVF) => void);
    search?: TSearchOptions;
    viewId?: string;
}

Properties

accessToken: string

Mappedin access token.

analytics?: {
    baseUri?: string;
    logEvents?: boolean;
    sendEvents?: boolean;
}

Analytics configuration.

Type declaration

  • OptionalbaseUri?: string

    Custom base URI for analytics requests. If not provided, the default analytics endpoint will be used. Use the environment setting to switch environments.

  • OptionallogEvents?: boolean

    Whether to log analytics events.

    false
    
  • OptionalsendEvents?: boolean

    Whether to send analytics events to the server.

    false
    
baseAuthUri?: string

Optionally provide a custom URI for authentication when obtaining an access token. Use the environment setting to switch environments.

baseUri?: string

Optionally provide a custom base URL for the Mappedin API request. Use the environment setting to switch environments

environment?: ServiceEnvironment

set the target SDK environment

'us'
const mapData = getMapData({
key: '',
secret: '',
environment: 'eu'
})
mapId: string

Mappedin map ID.

onMVFParsed?: ((mvf: TMVF) => void)

Callback for when the Mappedin map data has been fetched and parsed as Mappedin Venue Format (MVF) data.

Type declaration

    • (mvf): void
    • Parameters

      • mvf: TMVF

        Parsed MVF data.

      Returns void

search?: TSearchOptions
viewId?: string

Load different view of mvf data based on configId