-
Notifications
You must be signed in to change notification settings - Fork 286
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
UI for handling multiple images #244
Comments
saw this on a page on the Mapbox site and thought it was nice for future UI inspiration:
|
I already pitched this idea to @jywarren, it implements a mixture of what he has mentioned above, but @rexagod let me know what your thoughts are on this too!. I'm excited to work on this with you!! @jywarren I have really cleared up the implementation details at this point for the modal menu so maybe we can weigh pros and cons? I used the Google Maps JavaScript API and the Material UI Kit library as inspiration for this implementation plan:
@jywarren Also I am seeing now my idea is similar to yours but backwards. I would not mind starting bottom-up instead and isolating all of the modules first. Anyway I definitely want to turn my attention to the export system now since it seems more priority so I am happy to just leave this here as an idea for now and come back to it |
I'll need to dive into this today/tomorrow to get caught up, but on the functional end of exporting, we now have an export URL that works, and accepts a JSON file/string of the images to be warped: (note NOT https for now:) http://export.mapknitter.org/export?url=https://mapknitter.org/maps/ceres--2/warpables.json&scale=30 You can also run it as a POST or GET with a parameter called This outputs a status.json URL -- all documented here! #203 |
Branching out some comments from #140 that have to do specifically with UI planning for multiple images to focus on it separately from the work on individual tools and toolbars that attach to a single image, which is a bit of a different case.
These updates may ultimately only apply to the MK repo, but we have been doing a lot of upstream planning and discussion from LDI so it makes sense to continue here.
The end goal is to have multiple image collection actions that are then managed by this UI. Original issue: #29
Some relevant discussion topics
Ideas around an "Image Manager" (a UI to manipulate a collection of images)
Implementation details:
a) Difference between this and the toolbar UI for single image selection will probably be creating a toolbar UI that wouldn't live inside the individual
DistortableImage
instancesb) Potentially built in React
c) "this is big enough that perhaps it belongs in its own library built on top of this one... like,
Leaflet.DistortableImageToolbar
or something??? Just thinking though in terms of keeping this library more universal" abstract tools UI from tools functions to allow for alternative UIs #140 (comment)d) Implementing the minimal interface in LDI first, then separating it out as an external UI for MK and potentially its own library? abstract tools UI from tools functions to allow for alternative UIs #140 (comment)
Generally, where we are planning to start is the ability to show a few images selected in multiple image selection and show how they'd appear in the sidebar
Accessor function returning an array to iterate over: like
featureCollection.getFeatures
(most likely will be just a function to makethis.eachLayer(function(layer) { .... });
more convenient to use multiple image collection actions (like export) #29 (comment)Then focus in on a new Exporting UI - relates to Planning a new Exporter UI - tracking export processes mapknitter#326
Including:
a) We could aim for a function that outputs the basic JSON format in publiclab/mapknitter-exporter-sinatra#1, called
collection.getExportJson()
? This would eventually be replaced/superceded by a fuller Export UI in React that @sashadev-sky has explored! multiple image collection actions (like export) #29 (comment)b) New progress bar
What additional priorities do we have for creating image collection actions, besides dragging multiple images and the exporter?
We can branch out separate issues for specific actions
Keybindings?
The text was updated successfully, but these errors were encountered: