@feltmaps/js-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@feltmaps/js-sdk

An SDK for Felt maps.

Quickstart

Install the SDK using your preferred package manager:

npm install @feltmaps/js-sdk

Embed a Felt map in your app and use the SDK to control it:

import { Felt } from "@feltmaps/js-sdk";

const map = await Felt.embed(
  document.querySelector("#container"),
  "FELT_MAP_ID",
);
const layers = await map.getLayers();
const elements = await map.getElements();
map.setViewport({
  center: {
    latitude: 37.8044,
    longitude: -122.271,
  },
  zoom: 13,
});

Readme

Keywords

Package Sidebar

Install

npm i @feltmaps/js-sdk

Weekly Downloads

729

Version

1.1.0

License

MIT

Unpacked Size

249 kB

Total Files

17

Last publish

Collaborators

  • tom.hicks
  • candurukfelt