This commit is contained in:
Willem Dantuma 2021-01-13 17:33:01 +01:00
parent 80fec7ccaa
commit ac8815e8f1
3 changed files with 11 additions and 13 deletions

16
package-lock.json generated
View File

@ -1767,25 +1767,23 @@
} }
}, },
"@farmmaps/common": { "@farmmaps/common": {
"version": "0.0.1-prerelease.454", "version": "0.0.1-prerelease.467",
"resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common/-/common-0.0.1-prerelease.454.tgz", "resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common/-/common-0.0.1-prerelease.467.tgz",
"integrity": "sha512-qG4p/+7nHkqDU0ZtaBoNFoTWuVimyVEcDKAy9G0fQ+grDw/btos5jDzB0ON7ufituGrSwe5D5NT/1m4BTLu9PQ==", "integrity": "sha512-Gg+tWz/3jFnPbXr66tdOf7HJ0vFwLO8MWDIIMN8PYaHUP1Xu23w9uuyZSLvQxKFPcPwf7ehKNXFxBzMV1e6kpw==",
"requires": { "requires": {
"tslib": "^2.0.0" "tslib": "^2.0.0"
} }
}, },
"@farmmaps/common-map": { "@farmmaps/common-map": {
"version": "0.0.1-prerelease.454", "version": "file:dist/common-map",
"resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common-map/-/common-map-0.0.1-prerelease.454.tgz",
"integrity": "sha512-wn1bNxlUCPMEwUZrs72hL/2+W33iwzSXCZY5+MmeQRH76XhvtHUj4dNyHAPday88BB9ttkYItRCMDFnRLCvnrA==",
"requires": { "requires": {
"tslib": "^2.0.0" "tslib": "^2.0.0"
} }
}, },
"@farmmaps/common-map3d": { "@farmmaps/common-map3d": {
"version": "0.0.1-prerelease.454", "version": "0.0.1-prerelease.467",
"resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common-map3d/-/common-map3d-0.0.1-prerelease.454.tgz", "resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common-map3d/-/common-map3d-0.0.1-prerelease.467.tgz",
"integrity": "sha512-W9wSW6Rmot0ij9U/Id5Dzbnua96hK6jp4Hw0yzLJtwrC3nxxexqnZsgYhS7UN9y1U6DsTOmqFISpLe3JG3N+ZQ==", "integrity": "sha512-H1ICGeuyLbSYN85I1lpDQrD1HL3zf3yxmpNs2Jzog2N8jLpRByWaonsOoEeZ5E3fF3xWejhIOEJDIYd+/7AGyg==",
"requires": { "requires": {
"tslib": "^2.0.0" "tslib": "^2.0.0"
} }

View File

@ -19,9 +19,9 @@
"@angular/platform-browser": "~10.1.3", "@angular/platform-browser": "~10.1.3",
"@angular/platform-browser-dynamic": "~10.1.3", "@angular/platform-browser-dynamic": "~10.1.3",
"@angular/router": "~10.1.3", "@angular/router": "~10.1.3",
"@farmmaps/common": ">=0.0.1-prerelease.454 <0.0.1", "@farmmaps/common": ">=0.0.1-prerelease.467 <0.0.1",
"@farmmaps/common-map": ">=0.0.1-prerelease.454 <0.0.1", "@farmmaps/common-map": "file:dist/common-map",
"@farmmaps/common-map3d": ">=0.0.1-prerelease.454 <0.0.1", "@farmmaps/common-map3d": ">=0.0.1-prerelease.467 <0.0.1",
"@microsoft/signalr": "^3.1.3", "@microsoft/signalr": "^3.1.3",
"@ng-bootstrap/ng-bootstrap": "^7.0", "@ng-bootstrap/ng-bootstrap": "^7.0",
"@ngrx/effects": "^10.0", "@ngrx/effects": "^10.0",

View File

@ -386,6 +386,7 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
} }
mapEventHandler = (event) => { mapEventHandler = (event) => {
return;
//if(event.type === 'click' && !this.onFeatureSelected.observers.length) return; //if(event.type === 'click' && !this.onFeatureSelected.observers.length) return;
//if(event.type === 'pointermode' && !this.onFeatureHover.observers.length) return; //if(event.type === 'pointermode' && !this.onFeatureHover.observers.length) return;
if(this.itemLayer && this.itemLayer.layer) { if(this.itemLayer && this.itemLayer.layer) {
@ -394,7 +395,6 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
if(!features.length) return; if(!features.length) return;
let fid = features[0].getId(); let fid = features[0].getId();
this.selectedFeatures[fid] = features[0]; this.selectedFeatures[fid] = features[0];
console.debug(features[0]);
}) })
if(this.selectionLayer) this.selectionLayer.changed(); if(this.selectionLayer) this.selectionLayer.changed();
} }