Interface MbxObj<T>

Provides the Mapbox control that backs the React component. This is similar to React's ref concept and working with HTML DOM objects. Implement this interface if a component's owner is allowed to access the underlying Mapbox control. Should be implemented whenever the Mapbox control has methods that can only be effectively invoked imperatively.

Type Parameters

  • T

    The Mapbox control type.

Hierarchy

Properties

Properties

obj?: ((obj) => void)

Type declaration

    • (obj): void
    • Invoked to pass the Mapbox control to the function provider, typically the parent React component.

      Parameters

      • obj: T

        An instance of the type of the Mapbox control that backs the React component.

      Returns void

Generated using TypeDoc