From 3bb854035b56af33c0e57e4a1e7420c1f46d417a Mon Sep 17 00:00:00 2001 From: Yannick Kuypers Date: Wed, 30 Oct 2024 11:15:36 +0100 Subject: [PATCH 1/9] #468 predicted waarde gebruiken. Default waarde op 0 --- .../components/referentielaag-autocorrectie.d.ts | 1 + .../components/referentielaag-autocorrectie.js | 11 ++++++++++- .../referentielaag-autocorrectie.js.map | 2 +- .../components/relevante-afstand-input.js | 2 +- .../components/referentielaag-autocorrectie.d.ts | 1 + .../components/referentielaag-autocorrectie.js | 11 ++++++++++- .../referentielaag-autocorrectie.js.map | 2 +- .../components/relevante-afstand-input.js | 2 +- .../components/referentielaag-autocorrectie.ts | 16 ++++++++++++++-- .../components/relevante-afstand-input.ts | 2 +- 10 files changed, 41 insertions(+), 9 deletions(-) diff --git a/dist/commonjs/zoneerder/components/referentielaag-autocorrectie.d.ts b/dist/commonjs/zoneerder/components/referentielaag-autocorrectie.d.ts index a412802b..ee1d6f87 100644 --- a/dist/commonjs/zoneerder/components/referentielaag-autocorrectie.d.ts +++ b/dist/commonjs/zoneerder/components/referentielaag-autocorrectie.d.ts @@ -32,4 +32,5 @@ export declare class ReferentielaagAutocorrectie { openOpenbaarDomeinLegende(): void; onHistogramDataChanged(): Promise; relevanteAfstandChanged(nv: string, ov: string): void; + private getRelevanteAfstand; } diff --git a/dist/commonjs/zoneerder/components/referentielaag-autocorrectie.js b/dist/commonjs/zoneerder/components/referentielaag-autocorrectie.js index 9f79f8b8..079bc1b0 100644 --- a/dist/commonjs/zoneerder/components/referentielaag-autocorrectie.js +++ b/dist/commonjs/zoneerder/components/referentielaag-autocorrectie.js @@ -81,7 +81,7 @@ var ReferentielaagAutocorrectie = (function () { value: "SNAP_SINGLE_SIDE", label: "Eénzijdig snappen (1)" }; - this.relevanteAfstand = "3.0"; + this.relevanteAfstand = "0.0"; this.max = "6"; this.min = "0"; this.floatMin = "0.0"; @@ -131,6 +131,7 @@ var ReferentielaagAutocorrectie = (function () { return [4, this.alignGrb(this.zone, this.referentielaag.value, this.domeinstrategie.value)]; case 2: _a.histogramData = _d.sent(); + this.relevanteAfstand = this.getRelevanteAfstand(this.histogramData.diffs); this.laatstGealigneerd = new Date().toISOString(); this.loadingData = false; (0, d3_1.setupD3)(this.histogram, this.histogramData.diffs, Number(this.relevanteAfstand)); @@ -164,6 +165,14 @@ var ReferentielaagAutocorrectie = (function () { } this.resultsUpdated(this.histogramData.series[floatNumber]); }; + ReferentielaagAutocorrectie.prototype.getRelevanteAfstand = function (diffs) { + var diffsEntries = Object.entries(diffs).filter(function (_a) { + var key = _a[0], value = _a[1]; + return value !== 0; + }); + var predictedRelevantEntry = diffsEntries.reduce(function (minEntry, currentEntry) { return (currentEntry[1] < minEntry[1] ? currentEntry : minEntry); }, [null, Infinity]); + return predictedRelevantEntry[0] || "0.0"; + }; __decorate([ aurelia_framework_1.bindable, __metadata("design:type", Object) diff --git a/dist/commonjs/zoneerder/components/referentielaag-autocorrectie.js.map b/dist/commonjs/zoneerder/components/referentielaag-autocorrectie.js.map index 0367dbdb..105531d0 100644 --- a/dist/commonjs/zoneerder/components/referentielaag-autocorrectie.js.map +++ b/dist/commonjs/zoneerder/components/referentielaag-autocorrectie.js.map @@ -1 +1 @@ -{"version":3,"sources":["zoneerder/components/referentielaag-autocorrectie.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAA+E;AAC/E,2BAA2D;AAC3D,iDAA+C;AAC/C,6CAO2B;AAG3B;IAiDE,qCAAoB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;QAhDtC,mBAAc,GAAG,UAAC,KAAK,IAAK,OAAA,KAAK,EAAL,CAAK,CAAC;QAInC,oBAAe,GAAG;YACzB;gBACE,KAAK,OAAoC;gBACzC,KAAK,EAAE,0BAA0B;aAClC;YACD;gBACE,KAAK,OAAoC;gBACzC,KAAK,EAAE,wBAAwB;aAChC;SACF,CAAC;QAEO,gBAAW,GAAG;Y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aAAa,GAAG,IAAI,CAAC;;;;wBAE1B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;;;;;;KAE5B;IAED,6DAAuB,GAAvB,UAAwB,EAAU,EAAE,EAAU;QAC5C,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QACD,IAAM,WAAW,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC1C,IAAA,gBAAW,GAAE,CAAC;QACd,IAAA,kBAAa,EAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YAAC,OAAO;QAAC,CAAC;QACpC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC9D,CAAC;IAjGS;QAAT,4BAAQ;;uEAAmC;IAClC;QAAT,4BAAQ;kCAAO,iBAAO;6DAAC;IACd;QAAT,4BAAQ;;iEAA0I;IAyBzI;QAAT,4BAAQ;;0EAA2B;IAShB;QAAnB,8BAAU;;yEAA0C;IArC1C,2BAA2B;QADvC,8BAAU;yCAkD0B,8BAAa;OAjDrC,2BAA2B,CAmGvC;IAAD,kCAAC;CApGD,AAoGC,IAAA;AAnGY,kEAA2B","file":"referentielaag-autocorrectie.js","sourceRoot":"../../../../src/"} \ No newline at end of file +{"version":3,"sources":["zoneerder/components/referentielaag-autocorrectie.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAA+E;AAC/E,2BAA2D;AAC3D,iDAA+C;AAC/C,6CAQ2B;AAG3B;IAiDE,qCAAoB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;QAhDtC,mBAAc,GAAG,UAAC,KAAK,IAAK,OAAA,KAAK,EAAL,CAAK,CAAC;QAInC,oBAAe,GAAG;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Q,CAAC,EAAzD,CAAyD,EACrF,CAAC,IAAI,EAAE,QAAQ,CAAC,CACjB,CAAC;QACF,OAAO,sBAAsB,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC;IAC5C,CAAC;IA5GS;QAAT,4BAAQ;;uEAAmC;IAClC;QAAT,4BAAQ;kCAAO,iBAAO;6DAAC;IACd;QAAT,4BAAQ;;iEAA0I;IAyBzI;QAAT,4BAAQ;;0EAA2B;IAShB;QAAnB,8BAAU;;yEAA0C;IArC1C,2BAA2B;QADvC,8BAAU;yCAkD0B,8BAAa;OAjDrC,2BAA2B,CA8GvC;IAAD,kCAAC;CA/GD,AA+GC,IAAA;AA9GY,kEAA2B","file":"referentielaag-autocorrectie.js","sourceRoot":"../../../../src/"} \ No newline at end of file diff --git a/dist/commonjs/zoneerder/components/relevante-afstand-input.js b/dist/commonjs/zoneerder/components/relevante-afstand-input.js index fc976765..6aa3d41a 100644 --- a/dist/commonjs/zoneerder/components/relevante-afstand-input.js +++ b/dist/commonjs/zoneerder/components/relevante-afstand-input.js @@ -13,7 +13,7 @@ exports.RelevanteAfstandInput = void 0; var aurelia_framework_1 = require("aurelia-framework"); var RelevanteAfstandInput = (function () { function RelevanteAfstandInput() { - this.relevanteAfstand = "3.0"; + this.relevanteAfstand = "0.0"; this.max = "6"; this.min = "0"; this.floatMin = "0.0"; diff --git a/dist/native-modules/zoneerder/components/referentielaag-autocorrectie.d.ts b/dist/native-modules/zoneerder/components/referentielaag-autocorrectie.d.ts index a412802b..ee1d6f87 100644 --- a/dist/native-modules/zoneerder/components/referentielaag-autocorrectie.d.ts +++ b/dist/native-modules/zoneerder/components/referentielaag-autocorrectie.d.ts @@ -32,4 +32,5 @@ export declare class ReferentielaagAutocorrectie { openOpenbaarDomeinLegende(): void; onHistogramDataChanged(): Promise; relevanteAfstandChanged(nv: string, ov: string): void; + private getRelevanteAfstand; } diff --git a/dist/native-modules/zoneerder/components/referentielaag-autocorrectie.js b/dist/native-modules/zoneerder/components/referentielaag-autocorrectie.js index 234c3835..437674cb 100644 --- a/dist/native-modules/zoneerder/components/referentielaag-autocorrectie.js +++ b/dist/native-modules/zoneerder/components/referentielaag-autocorrectie.js @@ -78,7 +78,7 @@ var ReferentielaagAutocorrectie = (function () { value: "SNAP_SINGLE_SIDE", label: "Eénzijdig snappen (1)" }; - this.relevanteAfstand = "3.0"; + this.relevanteAfstand = "0.0"; this.max = "6"; this.min = "0"; this.floatMin = "0.0"; @@ -128,6 +128,7 @@ var ReferentielaagAutocorrectie = (function () { return [4, this.alignGrb(this.zone, this.referentielaag.value, this.domeinstrategie.value)]; case 2: _a.histogramData = _d.sent(); + this.relevanteAfstand = this.getRelevanteAfstand(this.histogramData.diffs); this.laatstGealigneerd = new Date().toISOString(); this.loadingData = false; setupD3(this.histogram, this.histogramData.diffs, Number(this.relevanteAfstand)); @@ -161,6 +162,14 @@ var ReferentielaagAutocorrectie = (function () { } this.resultsUpdated(this.histogramData.series[floatNumber]); }; + ReferentielaagAutocorrectie.prototype.getRelevanteAfstand = function (diffs) { + var diffsEntries = Object.entries(diffs).filter(function (_a) { + var key = _a[0], value = _a[1]; + return value !== 0; + }); + var predictedRelevantEntry = diffsEntries.reduce(function (minEntry, currentEntry) { return (currentEntry[1] < minEntry[1] ? currentEntry : minEntry); }, [null, Infinity]); + return predictedRelevantEntry[0] || "0.0"; + }; __decorate([ bindable, __metadata("design:type", Object) diff --git a/dist/native-modules/zoneerder/components/referentielaag-autocorrectie.js.map b/dist/native-modules/zoneerder/components/referentielaag-autocorrectie.js.map index 75744ecc..daaa149a 100644 --- a/dist/native-modules/zoneerder/components/referentielaag-autocorrectie.js.map +++ b/dist/native-modules/zoneerder/components/referentielaag-autocorrectie.js.map @@ -1 +1 @@ -{"version":3,"sources":["zoneerder/components/referentielaag-autocorrectie.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAA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AA2B;QADvC,UAAU;yCAkD0B,aAAa;OAjDrC,2BAA2B,CAmGvC;IAAD,kCAAC;CApGD,AAoGC,IAAA;SAnGY,2BAA2B","file":"referentielaag-autocorrectie.js","sourceRoot":"../../../../src/"} \ No newline at end of file +{"version":3,"sources":["zoneerder/components/referentielaag-autocorrectie.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EACL,OAAO,EAOR,MAAM,mBAAmB,CAAC;AAG3B;IAiDE,qCAAoB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;QAhDtC,mBAAc,GAAG,UAAC,KAAK,IAAK,OAAA,KAAK,EAAL,CAAK,CAAC;QAInC,oBAAe,GAAG;YACzB;gBACE,KAAK,OAAoC;gBACzC,KAAK,EAAE,0BAA0B;aAClC;YACD;gBACE,KAAK,OAAoC;gBACzC,KAAK,EAAE,wBAAwB;aAChC;SACF,CAAC;QAEO,gBAAW,GAAG;YACrB;gBACE,KAAK,oBAAgC;gBACrC,KAAK,EAAE,uBAAuB;aAC/B;YACD,EAAE,KAAK,iBAAiC,EAAE,KAAK,EAAE,wBAAwB,EAAE;YAC3E,EAAE,KAAK,SAA8B,EAAE,KAAK,EAAE,qBAAqB,EAAE;YACrE,EAAE,KAAK,WAA0B,EAAE,KAAK,EAAE,iBAAiB,EAAE;SAC9D,CAAC;QAKM,mBAAc,GAAmB;YACvC,KAAK,OAAoC;YACzC,KAAK,EAAE,0BAA0B;SAClC,CAAC;QACM,oBAAe,GAAoB;YACzC,KAAK,oBAAgC;YACrC,KAAK,EAAE,uBAAuB;SAC/B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1C,WAAW,EAAE,CAAC;QACd,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YAAC,OAAO;QAAC,CAAC;QACpC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC9D,CAAC;IAEO,yDAAmB,GAA3B,UAA4B,KAAY;QAEtC,IAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,UAAC,EAAY;gBAAX,GAAG,QAAA,EAAE,KAAK,QAAA;YAAM,OAAA,KAAK,KAAK,CAAC;QAAX,CAAW,CAAC,CAAC;QACjF,IAAM,sBAAsB,GAAG,YAAY,CAAC,MAAM,CAChD,UAAC,QAAQ,EAAE,YAAY,IAAK,OAAA,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAzD,CAAyD,EACrF,CAAC,IAAI,EAAE,QAAQ,CAAC,CACjB,CAAC;QACF,OAAO,sBAAsB,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC;IAC5C,CAAC;IA5GS;QAAT,QAAQ;;uEAAmC;IAClC;QAAT,QAAQ;kCAAO,OAAO;6DAAC;IACd;QAAT,QAAQ;;iEAA0I;IAyBzI;QAAT,QAAQ;;0EAA2B;IAShB;QAAnB,UAAU;;yEAA0C;IArC1C,2BAA2B;QADvC,UAAU;yCAkD0B,aAAa;OAjDrC,2BAA2B,CA8GvC;IAAD,kCAAC;CA/GD,AA+GC,IAAA;SA9GY,2BAA2B","file":"referentielaag-autocorrectie.js","sourceRoot":"../../../../src/"} \ No newline at end of file diff --git a/dist/native-modules/zoneerder/components/relevante-afstand-input.js b/dist/native-modules/zoneerder/components/relevante-afstand-input.js index 3b45b865..57470e60 100644 --- a/dist/native-modules/zoneerder/components/relevante-afstand-input.js +++ b/dist/native-modules/zoneerder/components/relevante-afstand-input.js @@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) { import { bindable, bindingMode } from 'aurelia-framework'; var RelevanteAfstandInput = (function () { function RelevanteAfstandInput() { - this.relevanteAfstand = "3.0"; + this.relevanteAfstand = "0.0"; this.max = "6"; this.min = "0"; this.floatMin = "0.0"; diff --git a/src/zoneerder/components/referentielaag-autocorrectie.ts b/src/zoneerder/components/referentielaag-autocorrectie.ts index c5fb3bc7..ee780664 100644 --- a/src/zoneerder/components/referentielaag-autocorrectie.ts +++ b/src/zoneerder/components/referentielaag-autocorrectie.ts @@ -7,7 +7,8 @@ import { DomeinStrategie, Referentielaag, ReferentielaagEnum, - StrategieEnum + StrategieEnum, + Diffs } from '../models/contour'; @autoinject @@ -48,7 +49,7 @@ export class ReferentielaagAutocorrectie { value: StrategieEnum.EenzijdigSnappen, label: "Eénzijdig snappen (1)" }; - @observable private relevanteAfstand: string = "3.0"; + @observable private relevanteAfstand: string = "0.0"; private max = "6"; private min = "0"; private floatMin = "0.0"; @@ -87,6 +88,7 @@ export class ReferentielaagAutocorrectie { try { this.loadingData = true; this.histogramData = await this.alignGrb(this.zone, this.referentielaag.value, this.domeinstrategie.value); + this.relevanteAfstand = this.getRelevanteAfstand(this.histogramData.diffs); this.laatstGealigneerd = new Date().toISOString(); this.loadingData = false; setupD3(this.histogram, this.histogramData.diffs, Number(this.relevanteAfstand)); @@ -110,4 +112,14 @@ export class ReferentielaagAutocorrectie { if (!this.histogramData) { return; } this.resultsUpdated(this.histogramData.series[floatNumber]); } + + private getRelevanteAfstand(diffs: Diffs) { + // Set relevante afstand to minimum predicted relevant distance. + const diffsEntries = Object.entries(diffs).filter(([key, value]) => value !== 0); + const predictedRelevantEntry = diffsEntries.reduce( + (minEntry, currentEntry) => (currentEntry[1] < minEntry[1] ? currentEntry : minEntry), + [null, Infinity] + ); + return predictedRelevantEntry[0] || "0.0"; + } } diff --git a/src/zoneerder/components/relevante-afstand-input.ts b/src/zoneerder/components/relevante-afstand-input.ts index cefa191d..365a1327 100644 --- a/src/zoneerder/components/relevante-afstand-input.ts +++ b/src/zoneerder/components/relevante-afstand-input.ts @@ -1,6 +1,6 @@ import { bindable, bindingMode } from 'aurelia-framework'; export class RelevanteAfstandInput { - @bindable({ defaultBindingMode: bindingMode.twoWay }) private relevanteAfstand: string = "3.0"; + @bindable({ defaultBindingMode: bindingMode.twoWay }) private relevanteAfstand: string = "0.0"; @bindable private max = "6"; @bindable private min = "0"; @bindable private floatMin = "0.0"; From ed6cc419dd1312e68ae780b3fa3497d7f8e3e38c Mon Sep 17 00:00:00 2001 From: Yannick Kuypers Date: Mon, 4 Nov 2024 15:15:12 +0100 Subject: [PATCH 2/9] =?UTF-8?q?#466=20wkt=20kopie=C3=ABren=20van=20geometr?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../commonjs/zoneerder/components/ol-map.d.ts | 5 +- .../commonjs/zoneerder/components/ol-map.html | 2 +- dist/commonjs/zoneerder/components/ol-map.js | 41 ++++++++++----- .../zoneerder/components/ol-map.js.map | 2 +- .../components/zone-vergelijking-dialog.d.ts | 2 +- dist/commonjs/zoneerder/models/contour.d.ts | 4 ++ .../zoneerder/components/ol-map.d.ts | 5 +- .../zoneerder/components/ol-map.html | 2 +- .../zoneerder/components/ol-map.js | 41 ++++++++++----- .../zoneerder/components/ol-map.js.map | 2 +- .../components/zone-vergelijking-dialog.d.ts | 2 +- .../zoneerder/models/contour.d.ts | 4 ++ src/zoneerder/components/ol-map.html | 15 ++++-- src/zoneerder/components/ol-map.ts | 51 +++++++++++++------ src/zoneerder/models/contour.ts | 5 ++ 15 files changed, 125 insertions(+), 58 deletions(-) diff --git a/dist/commonjs/zoneerder/components/ol-map.d.ts b/dist/commonjs/zoneerder/components/ol-map.d.ts index 295dfabd..98450dba 100644 --- a/dist/commonjs/zoneerder/components/ol-map.d.ts +++ b/dist/commonjs/zoneerder/components/ol-map.d.ts @@ -1,5 +1,5 @@ import ol from 'openlayers'; -import { Contour, IAlignerResponse, ReferentielaagEnum, StrategieEnum } from '../models/contour'; +import { Contour, IAlignerResponse, IGeometryObject, ReferentielaagEnum, StrategieEnum } from '../models/contour'; import { CrabService } from '../../services/crab.api-service'; import { IZoneerderServiceConfig } from 'exports'; import { DialogService } from 'aurelia-dialog'; @@ -19,7 +19,7 @@ export declare class OlMap extends BaseMap { showSelectGebouw: boolean; alignerAreaLimit: number; initialLaatstGealigneerd: string; - geometryObjectList: string[]; + geometryObjectList: IGeometryObject[]; WKTstring: string; protected isDrawing: boolean; protected isDrawingCircle: boolean; @@ -31,6 +31,7 @@ export declare class OlMap extends BaseMap { private polygonIndex; private circleIndex; private totalArea; + private wktFormat; constructor(element: Element, crabService: CrabService, dialogService: DialogService); attached(): void; private addZoneToDrawLayer; diff --git a/dist/commonjs/zoneerder/components/ol-map.html b/dist/commonjs/zoneerder/components/ol-map.html index d805ed6b..5c0d9aa3 100644 --- a/dist/commonjs/zoneerder/components/ol-map.html +++ b/dist/commonjs/zoneerder/components/ol-map.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/commonjs/zoneerder/components/ol-map.js b/dist/commonjs/zoneerder/components/ol-map.js index ae842948..e4208771 100644 --- a/dist/commonjs/zoneerder/components/ol-map.js +++ b/dist/commonjs/zoneerder/components/ol-map.js @@ -55,6 +55,7 @@ var OlMap = (function (_super) { _this.totalArea = 0; log.debug('olMap::constructor', _this.zone); _this._defineProjections(); + _this.wktFormat = new openlayers_1.default.format.WKT(); return _this; } OlMap.prototype.attached = function () { @@ -89,6 +90,7 @@ var OlMap = (function (_super) { if (!this.zone) { return; } + var wktString = ''; this.zone.coordinates.forEach(function (coords) { var polygon = new openlayers_1.default.geom.Polygon(coords); var feature = new openlayers_1.default.Feature({ @@ -97,9 +99,10 @@ var OlMap = (function (_super) { }); drawSource.addFeature(feature); _this.totalArea += polygon.getArea(); + wktString += _this.wktFormat.writeFeature(feature); }); - if (this.geometryObjectList.indexOf('Zone') === -1) { - this.geometryObjectList.push('Zone'); + if (!this.geometryObjectList.some(function (geometryObject) { return geometryObject.name === 'Zone'; })) { + this.geometryObjectList.push({ name: 'Zone', wktString: wktString }); } }; OlMap.prototype.zoneChanged = function () { @@ -121,13 +124,21 @@ var OlMap = (function (_super) { if (type === 'Polygon') { this.mapInteractions.drawZone.on('drawend', function (evt) { evt.feature.setProperties({ name: "Polygoon ".concat(_this.polygonIndex++) }); - _this.geometryObjectList.push(evt.feature.getProperties().name); + var wktString = _this.wktFormat.writeFeature(evt.feature); + _this.geometryObjectList.push({ name: evt.feature.getProperties().name, wktString: wktString }); }); } else if (type === 'Circle') { this.mapInteractions.drawZone.on('drawend', function (evt) { evt.feature.setProperties({ name: "Cirkel ".concat(_this.circleIndex++) }); - _this.geometryObjectList.push(evt.feature.getProperties().name); + var circleGeometry = evt.feature.getGeometry(); + var polygonGeometry = openlayers_1.default.geom.Polygon.fromCircle(circleGeometry); + var polygonFeature = new openlayers_1.default.Feature(polygonGeometry); + var wktString = _this.wktFormat.writeFeature(polygonFeature); + _this.geometryObjectList.push({ + name: evt.feature.getProperties().name, + wktString: wktString + }); }); } }; @@ -140,8 +151,8 @@ var OlMap = (function (_super) { var name = 'Adrespunten'; perceel.set('name', name); _this.drawLayer.getSource().addFeature(perceel); - if (_this.geometryObjectList.indexOf(name) === -1) { - _this.geometryObjectList.push(name); + if (!_this.geometryObjectList.some(function (geometryObject) { return geometryObject.name === name; })) { + _this.geometryObjectList.push({ name: name, wktString: '' }); } }); }); @@ -182,10 +193,11 @@ var OlMap = (function (_super) { OlMap.prototype.drawPerceel = function (olFeature) { if (olFeature) { var name_1 = "Perceel ".concat(olFeature.get('CAPAKEY')); - if (this.geometryObjectList.indexOf(name_1) === -1) { + if (!this.geometryObjectList.some(function (geometryObject) { return geometryObject.name === name_1; })) { olFeature.set('name', name_1); this.drawLayer.getSource().addFeature(olFeature); - this.geometryObjectList.push(name_1); + var wktString = this.wktFormat.writeFeature(olFeature); + this.geometryObjectList.push({ name: name_1, wktString: wktString }); } } else { @@ -195,10 +207,11 @@ var OlMap = (function (_super) { OlMap.prototype.drawGebouw = function (olFeature) { if (olFeature) { var name_2 = "Gebouw ".concat(olFeature.get('OIDN')); - if (this.geometryObjectList.indexOf(name_2) === -1) { + if (!this.geometryObjectList.some(function (geometryObject) { return geometryObject.name === name_2; })) { olFeature.set('name', name_2); this.drawLayer.getSource().addFeature(olFeature); - this.geometryObjectList.push(name_2); + var wktString = this.wktFormat.writeFeature(olFeature); + this.geometryObjectList.push({ name: name_2, wktString: wktString }); } } else { @@ -206,15 +219,14 @@ var OlMap = (function (_super) { } }; OlMap.prototype.drawWKTzone = function (wkt) { - var wktParser = new openlayers_1.default.format.WKT(); try { - var featureFromWKT = wktParser.readFeature(wkt); + var featureFromWKT = this.wktFormat.readFeature(wkt); var name_3 = "Polygoon ".concat(this.polygonIndex++); featureFromWKT.setProperties({ name: name_3 }); this.drawLayer.getSource().addFeature(featureFromWKT); - this.geometryObjectList.push(name_3); + this.geometryObjectList.push({ name: name_3, wktString: this.WKTstring }); this.zoomToFeatures(); this.WKTstring = ''; } @@ -234,7 +246,8 @@ var OlMap = (function (_super) { if (this.zone.coordinates.length === 0) { this.zone = null; } - this.geometryObjectList.splice(this.geometryObjectList.indexOf(name), 1); + var index = this.geometryObjectList.findIndex(function (geom) { return geom.name === name; }); + this.geometryObjectList.splice(index, 1); }; OlMap.prototype.geoLocationClick = function () { var view = this.map.getView(); diff --git a/dist/commonjs/zoneerder/components/ol-map.js.map b/dist/commonjs/zoneerder/components/ol-map.js.map index d9ac628a..1622b4f1 100644 --- a/dist/commonjs/zoneerder/components/ol-map.js.map +++ b/dist/commonjs/zoneerder/components/ol-map.js.map @@ -1 +1 @@ -{"version":3,"sources":["zoneerder/components/ol-map.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;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KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,0BAAU,GAAV,UAAW,IAAI;QACb,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;IACtD,CAAC;IAhZS;QAAT,4BAAQ;;2CAAmB;IAC0B;QAArD,IAAA,4BAAQ,EAAC,EAAE,kBAAkB,EAAE,6BAAW,CAAC,MAAM,EAAE,CAAC;kCAAO,iBAAO;uCAAC;IAC1D;QAAT,4BAAQ;;8CAAyB;IACxB;QAAT,4BAAQ;;8CAAsB;IACrB;QAAT,4BAAQ;;gDAAwC;IACvC;QAAT,4BAAQ;;8CAAqB;IACpB;QAAT,4BAAQ;;2CAA2I;IAC1I;QAAT,4BAAQ;;oDAA4B;IAC3B;QAAT,4BAAQ;;mDAA2B;IAC1B;QAAT,4BAAQ;;mDAA0B;IAWjB;QAAjB,4BAAQ;kCAAqB,mDAAuB;6CAAC;IArB3C,KAAK;QADjB,8BAAU;yCAgCU,OAAO;YACH,8BAAW;YACT,8BAAa;OAjC3B,KAAK,CAkZjB;IAAD,YAAC;CAnZD,AAmZC,CAlZ0B,kBAAO,GAkZjC;AAlZY,sBAAK","file":"ol-map.js","sourceRoot":"../../../../src/"} \ No newline at end of file diff --git a/dist/commonjs/zoneerder/components/zone-vergelijking-dialog.d.ts b/dist/commonjs/zoneerder/components/zone-vergelijking-dialog.d.ts index e13b4ea1..6d03ff62 100644 --- a/dist/commonjs/zoneerder/components/zone-vergelijking-dialog.d.ts +++ b/dist/commonjs/zoneerder/components/zone-vergelijking-dialog.d.ts @@ -6,7 +6,7 @@ export declare class ZoneVergelijkingDialog { controller: DialogController; zone: Contour; buttonConfig: ButtonConfig; - layerConfig: import("../..").LayerConfig; + layerConfig: import("exports").LayerConfig; alignGrb: (contour: Contour, referentielaagType: ReferentielaagEnum, openbaardomeinStrategy: StrategieEnum) => Promise; laatstGealigneerd: string; resultaat: Geometry; diff --git a/dist/commonjs/zoneerder/models/contour.d.ts b/dist/commonjs/zoneerder/models/contour.d.ts index 3948fa26..92159388 100644 --- a/dist/commonjs/zoneerder/models/contour.d.ts +++ b/dist/commonjs/zoneerder/models/contour.d.ts @@ -39,3 +39,7 @@ export interface ISeriesValue { result_diff_plus: Contour; } export type AlignGrb = (contour: Contour, referentielaagType: ReferentielaagEnum, openbaardomeinStrategy: StrategieEnum) => Promise; +export interface IGeometryObject { + name: string; + wktString: string; +} diff --git a/dist/native-modules/zoneerder/components/ol-map.d.ts b/dist/native-modules/zoneerder/components/ol-map.d.ts index 295dfabd..98450dba 100644 --- a/dist/native-modules/zoneerder/components/ol-map.d.ts +++ b/dist/native-modules/zoneerder/components/ol-map.d.ts @@ -1,5 +1,5 @@ import ol from 'openlayers'; -import { Contour, IAlignerResponse, ReferentielaagEnum, StrategieEnum } from '../models/contour'; +import { Contour, IAlignerResponse, IGeometryObject, ReferentielaagEnum, StrategieEnum } from '../models/contour'; import { CrabService } from '../../services/crab.api-service'; import { IZoneerderServiceConfig } from 'exports'; import { DialogService } from 'aurelia-dialog'; @@ -19,7 +19,7 @@ export declare class OlMap extends BaseMap { showSelectGebouw: boolean; alignerAreaLimit: number; initialLaatstGealigneerd: string; - geometryObjectList: string[]; + geometryObjectList: IGeometryObject[]; WKTstring: string; protected isDrawing: boolean; protected isDrawingCircle: boolean; @@ -31,6 +31,7 @@ export declare class OlMap extends BaseMap { private polygonIndex; private circleIndex; private totalArea; + private wktFormat; constructor(element: Element, crabService: CrabService, dialogService: DialogService); attached(): void; private addZoneToDrawLayer; diff --git a/dist/native-modules/zoneerder/components/ol-map.html b/dist/native-modules/zoneerder/components/ol-map.html index d805ed6b..5c0d9aa3 100644 --- a/dist/native-modules/zoneerder/components/ol-map.html +++ b/dist/native-modules/zoneerder/components/ol-map.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/native-modules/zoneerder/components/ol-map.js b/dist/native-modules/zoneerder/components/ol-map.js index bb55e4f3..9eb34caf 100644 --- a/dist/native-modules/zoneerder/components/ol-map.js +++ b/dist/native-modules/zoneerder/components/ol-map.js @@ -52,6 +52,7 @@ var OlMap = (function (_super) { _this.totalArea = 0; log.debug('olMap::constructor', _this.zone); _this._defineProjections(); + _this.wktFormat = new ol.format.WKT(); return _this; } OlMap.prototype.attached = function () { @@ -86,6 +87,7 @@ var OlMap = (function (_super) { if (!this.zone) { return; } + var wktString = ''; this.zone.coordinates.forEach(function (coords) { var polygon = new ol.geom.Polygon(coords); var feature = new ol.Feature({ @@ -94,9 +96,10 @@ var OlMap = (function (_super) { }); drawSource.addFeature(feature); _this.totalArea += polygon.getArea(); + wktString += _this.wktFormat.writeFeature(feature); }); - if (this.geometryObjectList.indexOf('Zone') === -1) { - this.geometryObjectList.push('Zone'); + if (!this.geometryObjectList.some(function (geometryObject) { return geometryObject.name === 'Zone'; })) { + this.geometryObjectList.push({ name: 'Zone', wktString: wktString }); } }; OlMap.prototype.zoneChanged = function () { @@ -118,13 +121,21 @@ var OlMap = (function (_super) { if (type === 'Polygon') { this.mapInteractions.drawZone.on('drawend', function (evt) { evt.feature.setProperties({ name: "Polygoon ".concat(_this.polygonIndex++) }); - _this.geometryObjectList.push(evt.feature.getProperties().name); + var wktString = _this.wktFormat.writeFeature(evt.feature); + _this.geometryObjectList.push({ name: evt.feature.getProperties().name, wktString: wktString }); }); } else if (type === 'Circle') { this.mapInteractions.drawZone.on('drawend', function (evt) { evt.feature.setProperties({ name: "Cirkel ".concat(_this.circleIndex++) }); - _this.geometryObjectList.push(evt.feature.getProperties().name); + var circleGeometry = evt.feature.getGeometry(); + var polygonGeometry = ol.geom.Polygon.fromCircle(circleGeometry); + var polygonFeature = new ol.Feature(polygonGeometry); + var wktString = _this.wktFormat.writeFeature(polygonFeature); + _this.geometryObjectList.push({ + name: evt.feature.getProperties().name, + wktString: wktString + }); }); } }; @@ -137,8 +148,8 @@ var OlMap = (function (_super) { var name = 'Adrespunten'; perceel.set('name', name); _this.drawLayer.getSource().addFeature(perceel); - if (_this.geometryObjectList.indexOf(name) === -1) { - _this.geometryObjectList.push(name); + if (!_this.geometryObjectList.some(function (geometryObject) { return geometryObject.name === name; })) { + _this.geometryObjectList.push({ name: name, wktString: '' }); } }); }); @@ -179,10 +190,11 @@ var OlMap = (function (_super) { OlMap.prototype.drawPerceel = function (olFeature) { if (olFeature) { var name_1 = "Perceel ".concat(olFeature.get('CAPAKEY')); - if (this.geometryObjectList.indexOf(name_1) === -1) { + if (!this.geometryObjectList.some(function (geometryObject) { return geometryObject.name === name_1; })) { olFeature.set('name', name_1); this.drawLayer.getSource().addFeature(olFeature); - this.geometryObjectList.push(name_1); + var wktString = this.wktFormat.writeFeature(olFeature); + this.geometryObjectList.push({ name: name_1, wktString: wktString }); } } else { @@ -192,10 +204,11 @@ var OlMap = (function (_super) { OlMap.prototype.drawGebouw = function (olFeature) { if (olFeature) { var name_2 = "Gebouw ".concat(olFeature.get('OIDN')); - if (this.geometryObjectList.indexOf(name_2) === -1) { + if (!this.geometryObjectList.some(function (geometryObject) { return geometryObject.name === name_2; })) { olFeature.set('name', name_2); this.drawLayer.getSource().addFeature(olFeature); - this.geometryObjectList.push(name_2); + var wktString = this.wktFormat.writeFeature(olFeature); + this.geometryObjectList.push({ name: name_2, wktString: wktString }); } } else { @@ -203,15 +216,14 @@ var OlMap = (function (_super) { } }; OlMap.prototype.drawWKTzone = function (wkt) { - var wktParser = new ol.format.WKT(); try { - var featureFromWKT = wktParser.readFeature(wkt); + var featureFromWKT = this.wktFormat.readFeature(wkt); var name_3 = "Polygoon ".concat(this.polygonIndex++); featureFromWKT.setProperties({ name: name_3 }); this.drawLayer.getSource().addFeature(featureFromWKT); - this.geometryObjectList.push(name_3); + this.geometryObjectList.push({ name: name_3, wktString: this.WKTstring }); this.zoomToFeatures(); this.WKTstring = ''; } @@ -231,7 +243,8 @@ var OlMap = (function (_super) { if (this.zone.coordinates.length === 0) { this.zone = null; } - this.geometryObjectList.splice(this.geometryObjectList.indexOf(name), 1); + var index = this.geometryObjectList.findIndex(function (geom) { return geom.name === name; }); + this.geometryObjectList.splice(index, 1); }; OlMap.prototype.geoLocationClick = function () { var view = this.map.getView(); diff --git a/dist/native-modules/zoneerder/components/ol-map.js.map b/dist/native-modules/zoneerder/components/ol-map.js.map index 6f47a43c..34775387 100644 --- a/dist/native-modules/zoneerder/components/ol-map.js.map +++ b/dist/native-modules/zoneerder/components/ol-map.js.map @@ -1 +1 @@ -{"version":3,"sources":["zoneerder/components/ol-map.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAuD,MAAM,mBAAmB,CAAC;AACjG,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,IAAM,GAAG,GAAG,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;AAG3C;IAA2B,yBAAO;IA6BhC,eACU,OAAgB,EAChB,WAAwB,EACxB,aAA4B;QAEpC,YAAA,MAAK,WAAE,SAAC;QAJA,aAAO,GAAP,OAAO,CAAS;QAChB,iBAAW,GAAX,WAAW,CAAa;QACxB,mBAAa,GAAb,aAAa,CAAe;QA1B5B,iBAAW,GAAG,KAAK,CAAC;QAO9B,wBAAkB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CAAC;IACtD,CAAC;IAhZS;QAAT,QAAQ;;2CAAmB;IAC0B;QAArD,QAAQ,CAAC,EAAE,kBAAkB,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC;kCAAO,OAAO;uCAAC;IAC1D;QAAT,QAAQ;;8CAAyB;IACxB;QAAT,QAAQ;;8CAAsB;IACrB;QAAT,QAAQ;;gDAAwC;IACvC;QAAT,QAAQ;;8CAAqB;IACpB;QAAT,QAAQ;;2CAA2I;IAC1I;QAAT,QAAQ;;oDAA4B;IAC3B;QAAT,QAAQ;;mDAA2B;IAC1B;QAAT,QAAQ;;mDAA0B;IAWjB;QAAjB,QAAQ;kCAAqB,uBAAuB;6CAAC;IArB3C,KAAK;QADjB,UAAU;yCAgCU,OAAO;YACH,WAAW;YACT,aAAa;OAjC3B,KAAK,CAkZjB;IAAD,YAAC;CAnZD,AAmZC,CAlZ0B,OAAO,GAkZjC;SAlZY,KAAK","file":"ol-map.js","sourceRoot":"../../../../src/"} \ No newline at end of file diff --git a/dist/native-modules/zoneerder/components/zone-vergelijking-dialog.d.ts b/dist/native-modules/zoneerder/components/zone-vergelijking-dialog.d.ts index e13b4ea1..6d03ff62 100644 --- a/dist/native-modules/zoneerder/components/zone-vergelijking-dialog.d.ts +++ b/dist/native-modules/zoneerder/components/zone-vergelijking-dialog.d.ts @@ -6,7 +6,7 @@ export declare class ZoneVergelijkingDialog { controller: DialogController; zone: Contour; buttonConfig: ButtonConfig; - layerConfig: import("../..").LayerConfig; + layerConfig: import("exports").LayerConfig; alignGrb: (contour: Contour, referentielaagType: ReferentielaagEnum, openbaardomeinStrategy: StrategieEnum) => Promise; laatstGealigneerd: string; resultaat: Geometry; diff --git a/dist/native-modules/zoneerder/models/contour.d.ts b/dist/native-modules/zoneerder/models/contour.d.ts index 3948fa26..92159388 100644 --- a/dist/native-modules/zoneerder/models/contour.d.ts +++ b/dist/native-modules/zoneerder/models/contour.d.ts @@ -39,3 +39,7 @@ export interface ISeriesValue { result_diff_plus: Contour; } export type AlignGrb = (contour: Contour, referentielaagType: ReferentielaagEnum, openbaardomeinStrategy: StrategieEnum) => Promise; +export interface IGeometryObject { + name: string; + wktString: string; +} diff --git a/src/zoneerder/components/ol-map.html b/src/zoneerder/components/ol-map.html index 0be0b79c..3f22b1a3 100644 --- a/src/zoneerder/components/ol-map.html +++ b/src/zoneerder/components/ol-map.html @@ -1,6 +1,7 @@ diff --git a/src/copy-button/copy-button.ts b/src/copy-button/copy-button.ts index bf6abc29..4d7e40c1 100644 --- a/src/copy-button/copy-button.ts +++ b/src/copy-button/copy-button.ts @@ -2,6 +2,7 @@ import { bindable } from 'aurelia-framework'; export class CopyButton { @bindable public element: HTMLElement; + @bindable public clipboardTitle = 'Kopiëren'; public showCheckIcon: boolean = false; public copy() { diff --git a/src/zoneerder/components/ol-map.html b/src/zoneerder/components/ol-map.html index 3f22b1a3..74c33020 100644 --- a/src/zoneerder/components/ol-map.html +++ b/src/zoneerder/components/ol-map.html @@ -58,7 +58,7 @@

Toegevoegde zones

${geometryObject.wktString} - +