Hajk
Hajk copied to clipboard
Sketch: make it possible to control the zIndex of features
Currently the features zIndex seems to be determinate by creation time: most recent features are inserted at top of the stack.
It would be very useful if the user could control this somehow. One way is to increment the zIndex during an edit/move operation, so that the edited feature ends up on top. Another option could be a button inside the Edit window (something like "Move to top" or similar).

I vote for both options! They should be really simple to implement
If @Hallbergs don't mind, I can have a look at this.
If @Hallbergs don't mind, I can have a look at this.
Of course! No probs!
Good, I think it's a good way to get familiar with DrawModel. It might be simple for the one who coded it from the beginning, but for me the DrawModel seems massive :) I'll keep you updated.
Good, I think it's a good way to get familiar with DrawModel. It might be simple for the one who coded it from the beginning, but for me the DrawModel seems massive :) I'll keep you updated.
Yes, it got a bit messier than i would have liked.. :P I'll be happy to help if anything is strange/wrong!
Sorry if it sounded negative, it was not my intention :) Just alot of functionality. Looks good!
Sorry if it sounded negative, it was not my intention :) Just alot of functionality. Looks good!
No no! Not at all!
I think, "moving to top" as soon as editing would be weird, and would be easy to destroy sketches. My suggestion would be to have buttons in edit (as mentioned). Buttons: [to back][-1][+1][to front]. I will post UI-example when I have something worth posting.
Here is my suggestion. Feedback please.
Here is my suggestion. Feedback please.
I like it!
Just the way I'd imagine it too, go for it! 🚀