SDK JS
    Preparing search index...
    • Enable draping for layer when the style has a drapeable layer above it, now or later.

      Parameters

      • map: Map$1

        The map the layer was added to.

      • layer: DrapeReceiver & { id: string }

        The 3D layer, which is also the drape receiver.

      • option: DrapeOption = true

        The layer's drape option; false disables entirely.

      Returns () => void

      A teardown to call from the layer's onRemove.