Skip to content

Scale control that can be used with vector map renderer.

Notifications You must be signed in to change notification settings

furkot/map-scale-control

Repository files navigation

NPM version Build Status Dependency Status

map-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 map-scale-control

Usage

var scaleControl = require('map-scale-control');

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

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

License

MIT © Damian Krzeminski

About

Scale control that can be used with vector map renderer.

Resources

Stars

Watchers

Forks

Packages

No packages published