Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mapbox-gl-dual-scale-control

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapbox-gl-dual-scale-control

Dual scalebar (metric + imperial) control for Mapbox GL

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Mapbox GL Dual Scale Control

Shows both metric and imperial at the same time as well as lat/lon mouse position

This is an unofficial plugin, and is not affliated with Mapbox. 😇

Installation

npm install mapbox-gl-dual-scale-control

or

yarn add mapbox-gl-dual-scale-control

Usage

var DualScaleControl = require('mapbox-gl-dual-scale-control');
map.addControl(new DualScaleControl({
    maxWidth: 80
}));

Include dist/mapbox-gl-dual-scale-control.css on your page, or use it as starting point to apply your own style

Development

Build: npm run build-dev

License

MIT

Attributions

Adapted from the default mapbox-gl ScaleControl

Keywords

FAQs

Package last updated on 05 Mar 2020

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc