0.2.3 • Published 2 months ago

infra3d-api v0.2.3

Weekly downloads
-
License
licenses.txt
Repository
-
Last release
2 months ago

Installation

NPM Package

The api can be installed with npm as a package. To install it from the npm package repository just type:

npm install @inovitas/infra3dapi

CDN Download

As alternative you can get the api from a CDN. To get the latest version add the following script into your html file:

<script src="https://cdn.jsdelivr.net/npm/@inovitas/infra3dapi@latest/infra3dapi.js"></script>

We recommend to use a specific version in your project. To get a specific version use the following script and adjust the version to your version:

<script src="https://cdn.jsdelivr.net/npm/@inovitas/infra3dapi@0.1.0/infra3dapi.js"></script>

Core Concept

To use the api, you can call the init functions in infra3dapi. After loggin in and initializing the view (with manager.initView()), you will get a viewer object from the sdk. This viewer object can then be used to add event-listeners to different events emitted by the viewer (like viewer.geoframechanged) or to call some functions (like viewer.getRoutes() or viewer.movePosition()).

Changelog

0.1.0 - 22.09.2023

First MVP release of the new JavaScript API