Socket
Socket
Sign inDemoInstall

@geoblocks/cesium-compass

Package Overview
Dependencies
45
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @geoblocks/cesium-compass

Note: the code is based on the Compass class from [TerriaJS](https://github.com/TerriaJS/terriajs/blob/master/lib/ReactViews/Map/Navigation/Compass.jsx)


Version published
Maintainers
5
Created

Readme

Source

compass widget for Cesium

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

Installation

npm i --save @geoblocks/cesium-compass

Usage

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

API

Properties/Attributes

NameTypeDefaultDescription
sceneCesium.SceneA Cesium Scene instance
clockCesium.ClockA Cesium Clock instance
resetSpeednumberMath.PI/100The speed of the reset to north animation in radians / milliseconds.

CSS Custom Properties

NameDefaultDescription
--cesium-compass-stroke-colorStroke color
--cesium-compass-fill-colorFill color

FAQs

Last updated on 17 Jul 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc