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

Is there a migration guide for moving OpenLayers code under npm? #82

Closed
nufosmatic opened this issue Jan 2, 2020 · 2 comments
Closed

Comments

@nufosmatic
Copy link

I am not asking for a new document, just haven't found one, and the search is becoming frustrating.

We implemented an OpenLayers solution some years ago using ol2 (http://www.nufosmatic.com). The results were very satisfactory, and the new mapping capabilities allowed us to expand beyond what our circa 2004 primitive maps allowed.

However, like anything, ol2 will become stale and unusable. But, the leap to ol3+ is a big one, and some of the features of ol2 we settled upon are just simply not there.

We have found some ol3+ examples that seem to address our needs, but the v6.1.1 examples all seem to be abstracted to NPM. Now, we find some features of NPM very interesting (the development server/code and test process is really very nice), but there is this nasty bit of having to re-code all of the function names because of the NPM import process. OK, we've got a lot of re-coding to do anyway, and that's probably not no big a problem.

We have also found some third-party ol3+ examples that address missing features in ol2 that are NOT addressed in the ol3+ examples. However, bringing these examples under NPM has been most frustrating. It seems that eventually we get to "X is not a constructor" or "X is undefined" on examples that clearly work outside of NPM (especially when 'X' is something in ol3 that should be visible and correct).

Is there a doc that gives guidance on migrating a non-NPM ol3+ codebase under NPM?

@isaacs
Copy link
Contributor

isaacs commented Jan 2, 2020

I'm sorry, I'm not familiar with OpenLayers. But if your question is "how to get started using npm for dependencies", there are lots of words on the internet about that subject. I'd suggest looking for some OpenLayer community resources that may discuss migration, as it sounds like the issue is more about migrating from ol2 to ol3 than anything specific to npm.

If there's a suggestion or request for comments regarding npm itself that I'm missing, I'm happy to re-open this to discuss.

@isaacs isaacs closed this as completed Jan 2, 2020
@nufosmatic
Copy link
Author

Thank you. I appreciate an answer.

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

No branches or pull requests

2 participants