Public Lab
use `#replaceTool` method in MapKnitter
Problem
a #replaceTool
method was added recently to compliment the existing #addTool
and #removeTool
methods.
Now we want to use it downstream in MapKnitter.
Solution
MapKnitter takes advantage of LDI's tool API to remove the delete tool, create a custom variation of it, and add that tool instead.
- update the Leaflet.DistortableImage dependency version in MK's package.json to 0.8.7. (Update it manually, run yarn install)
- replace out the code linked above with an implementation using
#replaceTool
- replace out the code linked above with an implementation using
Additional Information
Please find further information on installation, solving, & getting help on the linked issue.
Thank you 😊
Task tags
Students who completed this task
NotDeGhost