1.3.1 • Published 2 years ago

@dt-api/gis-api v1.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Introduction

@dt-api/gis-api is a JavaScript plugin designed for DtApi, offering a comprehensive set of APIs that empower developers to seamlessly integrate @dt-api/gis-api into their applications.

Install

$ npm i dtapi
$ npm i @dt-api/gis-api

Important

import DtApi from 'dtapi';
import GisApi from '@dt-api/gis-api';

Instantiation

const config = {
  id: 'player', //Render scene container(DOM node id)
  url: 'https://service.com/Renderers/Any/order', //Rendering service address
  order: 'c6526f3f154663431cd29577e3532aa4', //Rendering order, obtained on the rendering client
  resolution: [3840, 2160], //Set the rendering output resolution[width, height]
  debugMode: 'normal', //none, normal, high
  keyboard: { //[optional] keyboard event
    normal: false, //Keyboard event, exclude F1~F12 [default disabled]
    func: false, //Browser F1 ~ F12 function keys [default disabled]
  },
};

const App = new DtApi(config);
const { result } = await App.Plugin.Install(GIsApi);
console.log(result.id)

await App.Plugin.Uninstall(result.id);

License

Copyright (c) 2023-present

1.3.1

2 years ago