proj4-merge

0.1.1 • Public • Published

proj4-merge

Merge Multiple Proj4 Instances

install

npm install proj4-merge

usage

import merge from "proj4-merge";

import proj4 from "proj4";
import proj4FullyLoaded from "proj4-fully-loaded";
import proj4AnotherOne from "proj4-another-one";

// target is the proj4 that will be updated
const target = proj4;

// sources supply extra definitions
const sources = [proj4FullyLoaded, proj4AnotherOne];

// adds the projection definitions from the sources to the target
merge(target, sources);

// you can also merge using spread arguments
merge(target, proj4FullyLoaded, proj4AnotherOne);

references:

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    2,934
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    2,934
  • 0.1.0
    1
  • 0.0.2
    17
  • 0.0.1
    1

Package Sidebar

Install

npm i proj4-merge

Weekly Downloads

2,459

Version

0.1.1

License

CC0-1.0

Unpacked Size

9.59 kB

Total Files

4

Last publish

Collaborators

  • danieljdufour