Waze Map Editor JavaScript SDK
    Preparing search index...

    Function getWmeSdk

    Get a reference to the WME SDK. If preferred version not specified, returns the latest SDK. Subsequent calls to this function with the same scriptId would return the same SDK instance.

    a reference to the WME SDK (returns AsyncWmeSDK if initialized with mode: 'async')

    InvalidStateError if another instance of the SDK had been requested with a different version

    • Get a reference to the WME SDK in asynchronous execution mode.

      Parameters

      • options: { mode: "async"; scriptId: string; scriptName: string; version?: string }

      Returns AsyncWmeSDK

    • Get a reference to the WME SDK in deprecated synchronous execution mode.

      Parameters

      • options: { mode?: "sync"; scriptId: string; scriptName: string; version?: string }

      Returns WmeSDK