Socket
Book a DemoInstallSign in
Socket

@ud-viz/widget_camera_positioner

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ud-viz/widget_camera_positioner

widget base map of the itowns framework

latest
Source
npmnpm
Version
4.6.0
Version published
Maintainers
0
Created
Source

@ud-viz/widget_camera_positioner

NPM package version

The @ud-viz/widget_camera_positioner package provides a utility for display a viewer of position / rotation of camera3D object.

Installation

You can install the package via npm:

npm install @ud-viz/widget_base_map

Usage

Features:

  • Displayer camera position / rotation
  • Set up camera postion / rotation

Implementation:

import * as itowns from 'itowns';
import { CameraPositioner } from '@ud-viz/widget_camera_positioner';

const extent = new itowns.Extent(
... // name,
... // west),
... // east),
... // south),
... // north)
);

// Create an iTowns view
const view = new itowns.PlanarView(document.getElementById('viewerDiv'), extent);

// Initialize the Camera Positioner widget 
const camePosWidget = new CameraPositioner(view);

// Add the widget to a parent element
document.getElementById('parentElementId').appendChild(camePosWidget.domElement);

You can see an implementation here

Documentation

Online Documentation

Contributing

Contributions are welcome! Feel free to submit bug reports, feature requests, or pull requests on the GitHub repository. See Contributing.md.

License

This package is licensed under the GNU Lesser General Public License Version 2.1, with copyright attributed to the University of Lyon.

Credits

@ud-viz/widget_camera_positioner is developed and maintained by VCityTeam. See Contributors.md.

FAQs

Package last updated on 27 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts