You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lion 7b9aeb1016
地图 扣分选择
3 years ago
..
dist 地图 点位签到 3 years ago
test 地图 点位签到 3 years ago
.npmignore 地图 点位签到 3 years ago
PUBLISHING.md 地图 点位签到 3 years ago
license.md 地图 点位签到 3 years ago
mgrs.js 地图 点位签到 3 years ago
openmap.md 地图 点位签到 3 years ago
package.json 地图 扣分选择 3 years ago
publish.sh 地图 点位签到 3 years ago
readme.md 地图 点位签到 3 years ago
rollup.config.js 地图 点位签到 3 years ago

readme.md

mgrs

Utility for converting between WGS84 lat/lng and MGRS coordinates, spunoff from proj4js

has 3 methods

  • forward, takes an array of [lon,lat] and optional accuracy and returns an mgrs string
  • inverse, takes an mgrs string and returns a bbox.
  • toPoint, takes an mgrs string, returns an array of '[lon,lat]'

install dev dependencies with

npm install

test with

npm test

test coverage with

npm test --coverage

build with

npm run build

Licensed under the MIT license except:

Portions of this software are based on a port of components from the OpenMap com.bbn.openmap.proj.coords Java package. An initial port was initially created by Patrice G. Cappelaere and included in Community Mapbuilder (http://svn.codehaus.org/mapbuilder/), which is licensed under the LGPL license as per http://www.gnu.org/copyleft/lesser.html. OpenMap is licensed under the following license agreement: