const
Felt: {embed
:Promise
<FeltController
>;connect
:Promise
<FeltController
>; }
The Felt SDK is a library for embedding Felt maps into your website, allowing you to control and inspect the map programmatically.
Embeds a Felt map into the provided container.
Parameters
Parameter | Type | Description |
---|---|---|
Returns
Promise
<FeltController
>
Binds to an existing Felt map iframe.
Parameters
Parameter | Type | Description |
---|---|---|
Returns
Promise
<FeltController
>
container
HTMLElement
The container element to embed the map into.
mapId
string
The ID of the map to embed.
options
?
The options to configure the map.
feltWindow
Window
The iframe element containing the Felt map.