dabeeomaps
TypeScript icon, indicating that this package has built-in type declarations

4.68.2 • Public • Published

dabeeomaps_library

Dabeeomaps indoormap viewer

NPM install

npm i dabeeomaps

JS Code example

import { Maps } from 'dabeeomaps';

const dabeeoMaps = new Maps();

async function init() {

    const mapData = await dabeeoMaps.getMapData({
        clientId: '75hb8YSnAokb-sZ04aDR91',
        clientSecret: '0f7ad84f160c7b3fd1849a7920af718b',
    });
    const mapContainer = document.getElementById('map');

    const mapOption = Object.assign({});
    const map = await dabeeoMaps.showMap(mapContainer, mapOption, mapData);
}

init();

TS Code example

dabeeomaps includes Typescript definitions and a type guard.

import { Maps, DabeeoMap } from 'dabeeomaps';

const dabeeoMaps: Maps = new Maps();

async function init() {    

    const mapData: DabeeoMapData = await dabeeoMaps.getMapData({
        clientId: '75hb8YSnAokb-sZ04aDR91',
        clientSecret: '0f7ad84f160c7b3fd1849a7920af718b',
    });
    const mapContainer = document.getElementById('map');

    const mapOption = Object.assign({});
    const map: DabeeoMap = await dabeeoMaps.showMap(mapContainer, mapOption, mapData);
}

init();

Sample

Full reference documentation coming soon. For now, take a look at the reference on the dabeeomaps react demo

Readme

Keywords

none

Package Sidebar

Install

npm i dabeeomaps

Weekly Downloads

323

Version

4.68.2

License

Unlicensed

Unpacked Size

1.8 MB

Total Files

270

Last publish

Collaborators

  • dabeeo