0.2.8 • Published 19 days ago

@inovitas/infra3dapi v0.2.8

Weekly downloads
-
License
licenses.txt
Repository
-
Last release
19 days ago

Installation

NPM Package

The API can be installed as a package using npm. To install it from the npm package repository, simply type:

npm install @inovitas/infra3dapi

CDN Download

Alternatively, you can obtain the API from a CDN. To get the latest version, add the following script to your HTML file:

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

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

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

Note: Please do not name the <div> in which the viewer is initialized as "infra3d" as this may cause internal conflicts.

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. 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.2.8 - 08.04.2024

Added

  • Integrated and documented functions
    • moveToPosition
    • moveToCampaign
    • lookAtPosition
    • getRoutes

0.2.7 - 04.04.2024

Added

  • Improved documentation
    • Description of the event types
    • Description of further settings

Changed

  • Adaptation to the existing examples

0.2.4 - 14.03.2024

Bugfixes

  • Troubleshooting with internal module

0.2.3 - 09.02.2024

Added

  • Demo Access Login
  • Documenation

Changed

  • Adoption of adjustments to the UI base of infra3D Edit

Bugfixes

  • Various minor adjustments

0.2.0 - 30.01.2024

Added

  • Edit functionality