-
Notifications
You must be signed in to change notification settings - Fork 288
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
Be module-friendly #158
Comments
👍 nice idea! |
This is mentioned in Leaflet's official PLUGIN-GUIDE.md |
I'm on it... |
But I do not think that mentioned pattern should be put directly into source files. |
We don't have build script and i think this is oversized to use one for that. |
Fix #158 for layer scripts, still have to do it for tiles scripts
Well, if you prefer to see same ugly pattern in ~15 source files, instead of simple build script.. |
I like KISS, but not WET. How about DRY https://en.m.wikipedia.org/wiki/Don't_repeat_yourself? |
huhu, sorry but i prefer to keep the release process simple (push a tag & publish to npm). Anyway, feel free to provide a PR or an issue to describe the build process you would like to use. |
related to #267 |
As a user of this pluggin do I have to do this to inclure the rotate function into leaflet ? |
These classes can be made module-friendly by using a wrapper like this (credit to @sheppard).
This would enable, for example:
As it stands, developers writing modular code would have to either monkey-patch that wrapper into place or set up a shim to convert the code into a modular form - neither of which is particularly desirable.
The text was updated successfully, but these errors were encountered: