Skip to content
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

Display azimuth of circles in the redlining tools #1595

Merged
merged 1 commit into from
Jul 25, 2016

Conversation

pgiraud
Copy link
Contributor

@pgiraud pgiraud commented Jul 21, 2016

Supersedes #1573

I reworked @jlap 's pull request to make it simpler (well I hope).
Instead of storing the radius line geometry, only the azimut is kept as a property of the feature.
Also, the placement of the azimut value on the map is computed using the point which is on the circle instead of a complex computation with an offset from the center.
Also the radius value and the position of the azimut update correctly if the circle is modified.
Finally, the radius length displays along the line (ie. oriented).

Demo:
http://pgiraud.github.io/ngeo/azimuth/examples/contribs/gmf/drawfeature.html
https://pgiraud.github.io/ngeo/azimuth/examples/contribs/gmf/apps/desktop

Still missing: update of the azimut value when modifying the circle.

@pgiraud pgiraud force-pushed the azimuth branch 2 times, most recently from 43d545f to e7ed26d Compare July 21, 2016 14:20
@pgiraud pgiraud changed the title Display azimuth of circles in the redlining tools [WIP] Display azimuth of circles in the redlining tools Jul 21, 2016
@pgiraud
Copy link
Contributor Author

pgiraud commented Jul 21, 2016

Please review.

@pgiraud pgiraud changed the title [WIP] Display azimuth of circles in the redlining tools Display azimuth of circles in the redlining tools Jul 21, 2016
@ybolognini
Copy link
Member

Done UI tests. Looks good

@sbrunner
Copy link
Member

For me thats looks ok :-)

@pgiraud pgiraud merged commit ec64118 into camptocamp:master Jul 25, 2016
@pgiraud pgiraud deleted the azimuth branch July 25, 2016 07:18
@sbrunner sbrunner added this to the Older milestone Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants