You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@mapbox-controls/compass

Package Overview
Dependencies
2
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox-controls/compass

Indicate map direction


Version published
Maintainers
0
Created

Changelog

Source

2.1.0

  • Update @turf package from alpha version to release version
  • Fix Vite SSR for icons
  • Update dependencies

Readme

Source

<< all controls

🧭 @mapbox-controls/compass

Control to indicate map direction. Optionally, can be hidden if map bearing iz 0.

npm i @mapbox-controls/compass
import CompassControl from '@mapbox-controls/compass';
import '@mapbox-controls/compass/src/index.css';

map.addControl(new CompassControl(), 'bottom-right');

Options

export type CompassControlOptions = {
  instant?: boolean;
};

FAQs

Package last updated on 25 Jun 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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc