Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM version Build Status Dependency Status

@mapwhit/scale-control

Scale control that can be used with vector map renderer: a simplified version of the ScaleControl implemented in mapbox-gl-js

Install

$ npm install --save @mapwhit/scale-control

Usage

import scaleControl from '@mapwhit/scale-control';

const scale = scaleControl({
  maxWidth: 150,
  unit: 'imperial'
 });

 map.addControl(scale);
 scale.setUnit('metric');

License

MIT © Damian Krzeminski

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages