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
Set select style (vertex, halo) in feature helper, used in gmf-drawfeature #1016
Conversation
8554259
to
8fbcd61
Compare
@fgravin Ready for review. |
Shouldn't be drown on Rectangle... or is it planed to use them to resize the rectangle? Disabling moving vertex Rectangle and Circle on will come in an other pull request? |
|
OK, tranks :-) |
Regarding @sbrunner comment, it is true that the geometry editing style is a blue point, maybe it should be the same style as the vertixes ? |
@pgiraud, see previous comment. |
8fbcd61
to
45da14c
Compare
From my side, the code is ok. For the other things, see with @pgiraud |
Halo --> Yep. |
I finally agree with @fgravin that the blue point is a bit awkward. Can you please make it so it uses the same style as the vertices (black square)? |
Black square --> Yep. |
74195df
to
58cd0e8
Compare
Ready for review. @pgiraud, because fgravin is not here until next week would you please complete the code review, or find someone who's willing to do it ? Thanks. See the live demo. |
The UI/UX looks very good. Hooray! Giving a look at the code now. |
color: [0, 0, 0, 1] | ||
}) | ||
}) | ||
}) |
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.
The style used here is the same as the style used for vertices. This should be factorized in my opinion.
I added minor comments. Otherwise it looks very good. |
Thanks for the review. I'll apply the required changes and report back. |
58cd0e8
to
6d054b7
Compare
All of the corrections required by the reviewer have been made. Ready for merge. |
Looks good to me. Merging. |
This PR adds the support of drawing vertex in addition to the original style in the feature helper. The
gmf-featurestyle
directive uses it, in addition to thegmf-drawfeature
one.Geometries that have the vertex drawn:
Geometries that don't have vertex drawn:
An additional "halo" style is added to selected features.
As a bonus, this PR also includes the
ngeo.interaction.ModifyCircle
interaction. Circles are now properly modified.Todo
Live example