map-scale
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Map Scale

Build Status npm version MIT licensed

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

Examples

var mapScale = require('map-scale')
mapScale(10)
//=1:500K
 
mapScale(10.5)
//=1:375K

Returns string Human readable map scale

Readme

Keywords

Package Sidebar

Install

npm i map-scale

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • deniscarriere