-
Notifications
You must be signed in to change notification settings - Fork 67
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
incorporate browserify? #8
Comments
After #19 we are removing bower from the equation and going to roll with some quick CDNs and begin working on incorporating browserify for module use. |
this is an example that takes an existing drop-n-chop "component" and creates a DropZone Leaflet subclass with a FileReader handle which delegates events for the map's drag-n-drop options. I think it would be nice if the other drop-n-chop "components" were also written as Leaflet extensions/subclasses. For example: - The FileLayerList could extend L.Control.Layers as this extensions does > https://github.com/stefanocudini/leaflet-panel-layers/blob/master/src/leaflet-panel-layers.js - The GeoMenu could extend L.Control to create the dropdown toolbar There would still be a drop-n-chop module that wraps the mapping needs and also has refs to the above components as this commit shows with L.DNC.DropZone.FileReader regarding discussion in #8, we then don't need browserify at all. regarding issues ( #22, #23 ), tests will be easier to write when we come to an agreement on the structure
What does @aaronr think about this? Why was it that we decided to table browserify in the first place? I don't quite recall. I do like the idea of writing this all node-like in the event that we ever want to make an offline-friendly downloadable DNC. |
@svmatthews @alukach @aaronr var shape_package = require('shapefile-lib-thing');
L.DNC.ShapeUtils = shape_package; |
@thebigspoon I'm curious if you'd want to use browserify here or stick with using the Grunt
wiredep
for loading in all of our bower components?The text was updated successfully, but these errors were encountered: