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.

      Parameters

      • options: { scriptId: string; scriptName: string; version?: string }
        • scriptId: string

          A unique id of the userscript.

        • scriptName: string

          Userscript display name

        • Optionalversion?: string

          Preferred SDK version, optional.

      Returns WmeSDK

      a reference to the WME SDK

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