map-scale
v1.0.1
Published
Human readable Map Scale based on zoom level
Downloads
6
Readme
Map Scale
Human readable Map Scale based on zoom level
Install
npm
$ npm install --save map-scale
web browser (ES5)
<script src="https://unpkg.com/map-scale/docs/map-scale.min.js"></script>
Quickstart
mapScale
Human readable Map Scale based on zoom level
Parameters
zoom
number Map zoom level
Examples
var mapScale = require('map-scale')
mapScale(10)
//=1:500K
mapScale(10.5)
//=1:375K
Returns string Human readable map scale