JSPM

proj4-merge

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 26057
  • Score
    100M100P100Q146108F
  • License CC0-1.0

Merge Multiple Proj4 Instances

Package Exports

  • proj4-merge
  • proj4-merge/proj4-merge.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (proj4-merge) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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: