@geoblocks/cesium-compass

0.5.4 • Public • Published

compass widget for CesiumJS

Note: the code is based on the Compass class from TerriaJS

Demo

Demo

Installation

npm i --save @geoblocks/cesium-compass

Usage

 <cesium-compass .scene="${viewer.scene}" .clock="${viewer.clock}"></cesium-compass>

API

Properties/Attributes

Name Type Default Description
scene Cesium.Scene A Cesium Scene instance
clock Cesium.Clock A Cesium Clock instance
resetSpeed number Math.PI/100 The speed of the reset to north animation in radians / milliseconds.

CSS Custom Properties

Name Default Description
--cesium-compass-stroke-color rgba(0, 0, 0, 0.6) Stroke color
--cesium-compass-fill-color rgb(224, 225, 226) Fill color

Readme

Keywords

none

Package Sidebar

Install

npm i @geoblocks/cesium-compass

Weekly Downloads

476

Version

0.5.4

License

BSD-3-Clause

Unpacked Size

21.3 kB

Total Files

4

Last publish

Collaborators

  • vladyslavtk
  • gberaudo
  • sbrunner
  • fredj
  • bgerber