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
Add the modify circle interaction. #986
Conversation
@fgravin Could you take a look at my travis error? I don't know how to fix it. |
The message is explicit, it doesn't find your constructor in build mode. It is probably because you haven't exported your class, so the name are minified on compiling.
|
Thanks @fgravin , the missing export was the problem. I now have a different build error, that only occurs on travis. Building the example locally works for me now (it didn't with the last error), but travis now throws a very cryptic error message, do you have an idea what it means? Thanks for the help! |
I'm perplex :) <script src="../node_modules/angular-gettext/dist/angular-gettext.js"></script> Tell me if it fixes it. |
That worked thanks! Here's a live example: http://adube.github.io/ngeo/modify-circle/examples/modifycircle.html |
@fgravin This PR is now ready for review |
The live example looks good :-) |
* wrapX: (boolean|undefined)}} | ||
* @api | ||
*/ | ||
ngeox.interaction.ModifyOptions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be ModifyCircleOptions
, there gonna be other modify interactions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are not specific to the circle modification interation though, it's actually just about the same as the olx.interaction.ModifyOptions
, and I think all modify interactions which inherit from ol's modify interactions will need these options.
(Actually I don't know why just using olx.interaction.ModifyOptions
wasn't working, since it's really all I needed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok so maybe it was enough with olx.interaction.ModifyOptions
??
This issue you got was just from the @export
thing, maybe you should revert this then ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, I'm trying it now, I think you're right. I had done it in another commit after the export one because I still had an error, but that must have been the missing ngettext error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It worked!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok so update your PR please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is updated, it passed the travis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i may have mixed something, weren't we talking about removing the type ngeox.interaction.ModifyOptions
to use the type olx.interaction.ModifyOptions
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we were. We're currently in a comment thread in an outdated commit of the diff, if you go to https://github.com/camptocamp/ngeo/pull/986/files it'll be up-to-date.
I'll squash the commits of the PR into a single one once you say this is ready to merge.
One comment that you have to change please. |
This commit adds the modify circle interaction, along with an example of how it works.
The interaction was taken from the luxembourg app.
A live example is available here: http://adube.github.io/ngeo/modify-circle/examples/modifycircle.html