@mapwhit/scale-control
v1.0.2
Published
Scale control that can be used with vector map renderer.
Readme
@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-controlUsage
import scaleControl from '@mapwhit/scale-control';
const scale = scaleControl({
maxWidth: 150,
unit: 'imperial'
});
map.addControl(scale);
scale.setUnit('metric');License
MIT © Damian Krzeminski
