Skip to content

Commit

Permalink
feature(core): expose proj4 defs methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Nov 30, 2020
1 parent 0a7e22b commit 619077e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Core/Geographic/Crs.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,12 @@ export default {
isEpsg,
tms_3857: 'TMS:3857',
tms_4326: 'TMS:4326',
/**
* Define a proj4 projection as a string and reference.
*
* @param {string} code code is the projection's SRS code (only used internally by the Proj4js library)
* @param {string} proj4def is the Proj4 definition string for the projection to use
* @return {undefined}
*/
defs: (code, proj4def) => proj4.defs(code, proj4def),
};

0 comments on commit 619077e

Please sign in to comment.