-
Notifications
You must be signed in to change notification settings - Fork 280
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
use rotate as the default starting behavior #51
Comments
Hi, @wmaiouiru - there's also been a request for this in the MapKnitter repo, and we're discussing there: publiclab/mapknitter#183 Just curious - what are you using the plugin for? We're very interested in supporting its use in other projects; eager to share and support common use cases. |
@jywarren thank you for the quick reply. I am using the plugin for overlaying layers onto maps, and I found the interface quite nice. |
Glad to hear it! We're considering making rotate/scale the default starting tool. For your code, I believe that you may need to run your second line within a "load" callback, after the image has loaded, as in https://github.com/publiclab/mapknitter/blob/master/app/assets/javascripts/mapknitter/Map.js#L132 Then potentially call |
Thanks for the info, but I could only get this to work by calling the img.editing._toggleRotateDistort() function. Otherwise the handlers were not in sync with the internal mode. |
@wmaiouiru @maartenvandillen We heard you guys and have just merged PR #206: which allows a user to pass a Please checkout the Mode section in the README for someone additional information on using this option and a code block example. |
Is there any way to use the rotate mode as the default behavior?
I tried to set the mode to rotate on initialization but had no luck. I also tried to set the mode manually but had no luck either.
The text was updated successfully, but these errors were encountered: