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.

interface MbxObj<T> {
    obj?: ((obj) => void);
}

Type Parameters

  • T

    The Mapbox control type.

Hierarchy (view full)

Properties

Properties

obj?: ((obj) => void)

Invoked to pass the Mapbox control to the function provider, typically the parent React component.

Type declaration

    • (obj): void
    • Parameters

      • obj: T

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

      Returns void