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

Fix window query #5468

Merged
merged 2 commits into from
Jan 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions contribs/gmf/src/query/window.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ $displayquerywindow-detailed-details-line-height: 1.25rem;
$displayquerywindow-detailed-details-height: 8 * $displayquerywindow-detailed-details-line-height;

div.gmf-displayquerywindow {
pointer-events: none;
div.windowcontainer {
pointer-events: all;
}
.details {
display: none;
}
Expand Down
1 change: 1 addition & 0 deletions src/filter/rulecomponent.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
href
ngeo-btn
ngeo-measureazimut
ngeo-measureazimut-nbpoints="16"
class="btn btn-sm btn-default ngeo-drawfeature-circle"
ng-class="{active: dfCtrl.measureAzimut.active}"
ng-model="dfCtrl.measureAzimut.active">
Expand Down
5 changes: 4 additions & 1 deletion src/measure/azimut.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ function measureAzimutComponent($compile, gettextCatalog, $filter, $injector) {
(myEvent.detail.feature.getGeometry());
const circle = /** @type {import("ol/geom/Circle.js").default} */ (
geometry.getGeometries()[1]);
const polygon = fromCircle(circle, 64);
const polygon = fromCircle(
circle,
Number.parseInt(attrs.$$element.attr('ngeo-measureazimut-nbpoints') || 64)
);
myEvent.detail.feature = new olFeature(polygon);
const azimut = getAzimut(
/** @type {import("ol/geom/LineString.js").default} */ (geometry.getGeometries()[0])
Expand Down