Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose methods to define new proj4 definitions #561

Merged
merged 2 commits into from
May 2, 2016
Merged

Conversation

jbeezley
Copy link
Contributor

This exposes proj4.defs as geo.transform.defs and also adds a method to lookup proj4 definitions from epsg.io. This can be used as follows:

geo.transform.lookup('EPSG:26986').then(function () {
    // Now the projection can be used
    geo.transform.transformCoordinates('EPSG:26986', 'EPSG:4326', {x: 0, y: 0});
});

@aashish24
Copy link
Member

this is nice @jbeezley. @mgrauer I know you don't need it but could you try it with your previous commit?

@mgrauer
Copy link

mgrauer commented Apr 21, 2016

I'll check it out, possibly tomorrow afternoon.

@aashish24
Copy link
Member

LGTM 👍

@codecov-io
Copy link

codecov-io commented May 2, 2016

Current coverage is 70.70%

Merging #561 into master will increase coverage by +<.01%

@@             master       #561   diff @@
==========================================
  Files            81         81          
  Lines          7041       7057    +16   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           4975       4989    +14   
- Misses         2066       2068     +2   
  Partials          0          0          
  1. File src/mapInteractor.js (not in diff) was modified. more
    • Misses +2
    • Partials 0
    • Hits -2

Powered by Codecov. Last updated by a28fa86...3ca45b0

@jbeezley jbeezley merged commit e0cd944 into master May 2, 2016
@jbeezley jbeezley deleted the proj-defs branch May 2, 2016 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants