Main
Example
// embed the map
const map = await Felt.embed(container, "felt-map-abc-123");
// now the map is loaded and connected, you can use the FeltController interface
// to control the map. For instance, to get information about the layers
const layers = await map.getLayers();
// Or to set the viewport to a specific location and zoom level
await map.setViewport({
center: { latitude: 37.8113, longitude: -122.2682 },
zoom: 10,
});Controller
Instantiation
Last updated
Was this helpful?