Open efc-awebb opened 9 years ago
:+1: 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. Better if it'd done in some build process.
We don't have build script and i think this is oversized to use one for that.
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.