Exploring nicer map interactions
Exploring nicer map interactions
Der #Hackspace & #Makeplace in Flensburg! Offen für alle Interessierten, neue und fortgeschrittene Nerds.
I did some more work on the map tools prototype today. This time adding sub-tool that let you tweak how the current tool works. For the "shade" you can shade or erase or change how large the brush is.
Everything uses the custom undo/redo stack which is using native web events to dispatch and bubble events up to get handled by the container. It's sort of vue's two-way binding, but 100% web native.
I got undo and redo working with my map shading tool! also it simplifies the paths so it isn’t storing thousands of points and it’s loads faster.
I wish there was a browser API for undo-redo, that would be super helpful. The best hack I’ve seen is to have a big hidden <textarea> to simulate it. It’s a bit gross.
Continued playing with map-based interactions again today. Got a nice shading tool set up, next is to hook it up to the undo-redo system.
Also I want to have sub-controls on the bottom so can fill or erase while using the "shade" tool.