Replies: 11 comments
-
Ideally we should not have to fork the project. As Oslandia, we often do that for client projects. My current process is:
The process is quite similar as to using THREE in your project. Just use itowns in your project the way we use THREE in itowns... Well I would say that if our package wasn't currently broken ! Indeed, I just realized this morning (while you were writing this probably) that things are a bit funky these times:
|
Beta Was this translation helpful? Give feedback.
-
BTw the package is broken in 2.1, not in 2.0 (we don't use MeshLine there). |
Beta Was this translation helpful? Give feedback.
-
@mbredif FYI:
For the problem with MeshLine, one workaround is to install I'll try to push a client example on our organization to get you started. So again, ideally, client code won't need to fork itowns or copy the bundles into their repo, but will use it as any npm dependency. |
Beta Was this translation helpful? Give feedback.
-
That is great, thanks for the comments and the fixes ! |
Beta Was this translation helpful? Give feedback.
-
Yes briefly in the README. But frankly, this is a "web project with npm and a module bundler tutorial" that you want. There will be nothing specific to itowns in this process. Again, the best example is how we use THREE.js in itowns. Nonetheless, I'll try to push my "itowns client bootstrap" when I'll have time. |
Beta Was this translation helpful? Give feedback.
-
"project that depends on itowns and import it via a package bundler MUST declare a global DEBUG var somewhere. I need to fix that too. They won't have this problem if they use the bundles in dist/" hello @autra |
Beta Was this translation helpful? Give feedback.
-
@ilokhat yes, it is fixed in master, but not yet published to npm. You'll have to wait for next release. I hope to do it soon. |
Beta Was this translation helpful? Give feedback.
-
nice, |
Beta Was this translation helpful? Give feedback.
-
Since #798, it's more to add and use new Parser (to parse file and converting to |
Beta Was this translation helpful? Give feedback.
-
@mbredif knowing the current simpler architecture of iTowns, if it is enough complete for you concerning this issue, I let you closing it. |
Beta Was this translation helpful? Give feedback.
-
There's the question to build iTowns plugins as npm packages. |
Beta Was this translation helpful? Give feedback.
-
I do not know if this issue implies documentation or development, but what is the standard way of adding custom functionalities to itowns ?
In other words, simple projects may only rely on js code in the html page but more more complex project (custom providers, custom materials...) may require to tweak the internals of itowns. Is it required to then fork the project or is there some kind of plugin architecture ?
Beta Was this translation helpful? Give feedback.
All reactions