-
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
Multi export #314
Multi export #314
Conversation
I think we need to re-order the corners we get from this section: Leaflet.DistortableImage/src/DistortableImageOverlay.js Lines 100 to 109 in 83e3371
|
Yes, i'm going to bump version number so it'll get picked up by MapKnitter, then we can come back to UI. Thanks! |
OK, i'm adding a note to the README that this library does |
Done and pushing to my gh-pages to test: http://jywarren.github.io/Leaflet.DistortableImage/examples/select |
Darn! I'm still getting |
That's: |
...roughly. Main problem is that points 2 and 3 of 4 are both being sent to |
Oh gosh, you're right! The exporter service uses |
@jywarren Ok great! I had on my todo list to add to the README a blurb about coordinate order because at one point we had them backwards! |
Hooray! There we go! https://mapknitter-exports-warps.storage.googleapis.com/1562027947/1562027947.jpg
There are some timing issues... or something... for example I'm still getting responses like this as well:
|
@jywarren It is working! But I am stuck on warping 1/1 still. Is this because I'm not on gh-pages? |
It's a big export... just give it a few more minutes? |
Mine has some caching issues. If i call:
I get Can't seem to bust that cached response with this either:
OK. We basically got there. Let's see if we can fix this cache issue and tomorrow we can merge this and publish it. |
Ah! OK! So -- here it is -- if we try to bust the cache by appending a timestamp, like:
It will strip the But if we directly call the final URL with a
So, we really do have to get this segment of code working: Leaflet.DistortableImage/src/DistortableCollection.js Lines 353 to 359 in 2d7ad24
Where it can detect the "final" address. |
Actually I think I can fix it here too: OK - i did this in that project. I'm going to merge now! Let's do all this follow-up too! |
So, prompt, spinner, and then MK integration! |
Exciting! |
and -- we should rejigger the section of code above that tries to match "complete" and the new JSON address. I think if we fix it, things will run a lot smoother! |
I published this to NPM! |
@jywarren should I try to connect it in MK first? |
Ill open a new issue for the next 3 parts u just listed! |
I'm calling it a night! I'll check in in the morning, thanks Sasha!
…On Mon, Jul 1, 2019, 9:12 PM Sasha Boginsky ***@***.***> wrote:
Ill open a new issue for the next 3 parts u just listed!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#314?email_source=notifications&email_token=AAAF6J4LZWICOIY4UNVJFBLP5KTMJA5CNFSM4H4LIEJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY7YKIQ#issuecomment-507479330>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J7WFWRZOMVIMZC56NLP5KTMJANCNFSM4H4LIEJA>
.
|
Fixes #270 (<=== Add issue number here)
/ PR at #310
Also:
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
grunt
If tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!
=================================
Changes:
unused: "strict"
from JSHINT gruntfileL.Map.BoxSelector
is fixed (Multi-select with shift-drag)src/edit/tools
folder withDistortableImage.ControlBar.js
andDistortableImage.PopupBar.js
, each corresponding to the new class names for the 2 types of toolbars andEditAction.js
the classname for the class we extend to create new actions.leaflet-toolbar
upgraded to "0.4.0-alpha.2" and added as a dependency in package.jsonExports
,Deletes
removeTool
,addTool
,hasTool
for theDistortableCollection
andDistortableImage.Edit
class - allows changing the toolbar actions in runtimeDistortableCollection
andDistortableImageOverlay
instantiation updates: newaction
option allows overwriting the default toolbar actions for respective toolbars initially if don't want to use the runtime API aboveDistortableCollection
instantiation updates: images are now only added to the collection class, not the map directly._updateCorners
and_updateCorner()
are nowsetCorners
andsetCorner()
but not ready to be documented yet - needoverlay.fire("update")
in them to work sep. but I don't want to change where we currently fire it in our code bc of the bugs with rotation, scaling ,etc.leaflet.distortableimage.js.map
file two months agoDistortableCollection
class========================
Pending:
DistortableCollection.Edit
class so the Tool API will work the same on it as onDistortableImage.Edit
- then update docs