Compare commits
	
		
			16 Commits
		
	
	
		
			e6a637b866
			...
			9e3f6010c3
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 9e3f6010c3 | |||
| 
						 | 
					ccf77805a0 | ||
| 2b2e1bfafa | |||
| 3fd4ac2f94 | |||
| 9849eaf1e7 | |||
| b516cc07e2 | |||
| c9c9a2ddbf | |||
| 1d0f3b958d | |||
| 45537cb2e9 | |||
| 652ddc0cdc | |||
| fd3b331cc0 | |||
| 9facbe76c8 | |||
| 20dff38cf7 | |||
| e374bb8a73 | |||
| 294b9c6dd3 | |||
| d92bf54c8d | 
							
								
								
									
										246
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										246
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -1,12 +1,12 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "farmmaps-lib-app",
 | 
					  "name": "farmmaps-lib-app",
 | 
				
			||||||
  "version": "3.4.1",
 | 
					  "version": "3.5.0",
 | 
				
			||||||
  "lockfileVersion": 2,
 | 
					  "lockfileVersion": 2,
 | 
				
			||||||
  "requires": true,
 | 
					  "requires": true,
 | 
				
			||||||
  "packages": {
 | 
					  "packages": {
 | 
				
			||||||
    "": {
 | 
					    "": {
 | 
				
			||||||
      "name": "farmmaps-lib-app",
 | 
					      "name": "farmmaps-lib-app",
 | 
				
			||||||
      "version": "3.4.1",
 | 
					      "version": "3.5.0",
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "@angular-eslint/eslint-plugin": "^15.2.1",
 | 
					        "@angular-eslint/eslint-plugin": "^15.2.1",
 | 
				
			||||||
        "@angular/animations": "^14.1.3",
 | 
					        "@angular/animations": "^14.1.3",
 | 
				
			||||||
@@ -44,7 +44,7 @@
 | 
				
			|||||||
        "ol": "6.14.1",
 | 
					        "ol": "6.14.1",
 | 
				
			||||||
        "olcs": "^2.13.1",
 | 
					        "olcs": "^2.13.1",
 | 
				
			||||||
        "resumablejs": "^1.1.0",
 | 
					        "resumablejs": "^1.1.0",
 | 
				
			||||||
        "rxjs": "^6.6.7",
 | 
					        "rxjs": "^7.8.1",
 | 
				
			||||||
        "stream": "^0.0.2",
 | 
					        "stream": "^0.0.2",
 | 
				
			||||||
        "stream-http": "^3.2.0",
 | 
					        "stream-http": "^3.2.0",
 | 
				
			||||||
        "tassign": "^1.0.0",
 | 
					        "tassign": "^1.0.0",
 | 
				
			||||||
@@ -182,6 +182,24 @@
 | 
				
			|||||||
        "yarn": ">= 1.13.0"
 | 
					        "yarn": ">= 1.13.0"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular-devkit/architect/node_modules/rxjs": {
 | 
				
			||||||
 | 
					      "version": "6.6.7",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
 | 
				
			||||||
 | 
					      "dev": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^1.9.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "npm": ">=2.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular-devkit/architect/node_modules/tslib": {
 | 
				
			||||||
 | 
					      "version": "1.14.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
 | 
				
			||||||
 | 
					      "dev": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "node_modules/@angular-devkit/build-angular": {
 | 
					    "node_modules/@angular-devkit/build-angular": {
 | 
				
			||||||
      "version": "14.2.10",
 | 
					      "version": "14.2.10",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-14.2.10.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-14.2.10.tgz",
 | 
				
			||||||
@@ -331,6 +349,24 @@
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular-devkit/build-angular/node_modules/rxjs": {
 | 
				
			||||||
 | 
					      "version": "6.6.7",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
 | 
				
			||||||
 | 
					      "dev": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^1.9.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "npm": ">=2.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular-devkit/build-angular/node_modules/rxjs/node_modules/tslib": {
 | 
				
			||||||
 | 
					      "version": "1.14.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
 | 
				
			||||||
 | 
					      "dev": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "node_modules/@angular-devkit/build-webpack": {
 | 
					    "node_modules/@angular-devkit/build-webpack": {
 | 
				
			||||||
      "version": "0.1402.10",
 | 
					      "version": "0.1402.10",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1402.10.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1402.10.tgz",
 | 
				
			||||||
@@ -391,6 +427,24 @@
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular-devkit/build-webpack/node_modules/rxjs": {
 | 
				
			||||||
 | 
					      "version": "6.6.7",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
 | 
				
			||||||
 | 
					      "dev": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^1.9.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "npm": ">=2.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular-devkit/build-webpack/node_modules/tslib": {
 | 
				
			||||||
 | 
					      "version": "1.14.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
 | 
				
			||||||
 | 
					      "dev": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "node_modules/@angular-devkit/core": {
 | 
					    "node_modules/@angular-devkit/core": {
 | 
				
			||||||
      "version": "14.2.1",
 | 
					      "version": "14.2.1",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-14.2.1.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-14.2.1.tgz",
 | 
				
			||||||
@@ -417,6 +471,24 @@
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular-devkit/core/node_modules/rxjs": {
 | 
				
			||||||
 | 
					      "version": "6.6.7",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
 | 
				
			||||||
 | 
					      "dev": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^1.9.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "npm": ">=2.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular-devkit/core/node_modules/tslib": {
 | 
				
			||||||
 | 
					      "version": "1.14.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
 | 
				
			||||||
 | 
					      "dev": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "node_modules/@angular-devkit/schematics": {
 | 
					    "node_modules/@angular-devkit/schematics": {
 | 
				
			||||||
      "version": "14.2.1",
 | 
					      "version": "14.2.1",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-14.2.1.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-14.2.1.tgz",
 | 
				
			||||||
@@ -435,6 +507,24 @@
 | 
				
			|||||||
        "yarn": ">= 1.13.0"
 | 
					        "yarn": ">= 1.13.0"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular-devkit/schematics/node_modules/rxjs": {
 | 
				
			||||||
 | 
					      "version": "6.6.7",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
 | 
				
			||||||
 | 
					      "dev": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^1.9.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "npm": ">=2.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular-devkit/schematics/node_modules/tslib": {
 | 
				
			||||||
 | 
					      "version": "1.14.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
 | 
				
			||||||
 | 
					      "dev": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "node_modules/@angular-eslint/bundled-angular-compiler": {
 | 
					    "node_modules/@angular-eslint/bundled-angular-compiler": {
 | 
				
			||||||
      "version": "15.2.1",
 | 
					      "version": "15.2.1",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-15.2.1.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-15.2.1.tgz",
 | 
				
			||||||
@@ -9491,15 +9581,6 @@
 | 
				
			|||||||
        "node": ">=8"
 | 
					        "node": ">=8"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/inquirer/node_modules/rxjs": {
 | 
					 | 
				
			||||||
      "version": "7.5.6",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==",
 | 
					 | 
				
			||||||
      "dev": true,
 | 
					 | 
				
			||||||
      "dependencies": {
 | 
					 | 
				
			||||||
        "tslib": "^2.1.0"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/inquirer/node_modules/supports-color": {
 | 
					    "node_modules/inquirer/node_modules/supports-color": {
 | 
				
			||||||
      "version": "7.2.0",
 | 
					      "version": "7.2.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
 | 
				
			||||||
@@ -11627,15 +11708,6 @@
 | 
				
			|||||||
        "node": "^12.20.0 || >=14"
 | 
					        "node": "^12.20.0 || >=14"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/ng-packagr/node_modules/rxjs": {
 | 
					 | 
				
			||||||
      "version": "7.5.6",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==",
 | 
					 | 
				
			||||||
      "dev": true,
 | 
					 | 
				
			||||||
      "dependencies": {
 | 
					 | 
				
			||||||
        "tslib": "^2.1.0"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/ngrx-store-localstorage": {
 | 
					    "node_modules/ngrx-store-localstorage": {
 | 
				
			||||||
      "version": "14.0.0",
 | 
					      "version": "14.0.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/ngrx-store-localstorage/-/ngrx-store-localstorage-14.0.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/ngrx-store-localstorage/-/ngrx-store-localstorage-14.0.0.tgz",
 | 
				
			||||||
@@ -14488,21 +14560,13 @@
 | 
				
			|||||||
      "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ=="
 | 
					      "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ=="
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/rxjs": {
 | 
					    "node_modules/rxjs": {
 | 
				
			||||||
      "version": "6.6.7",
 | 
					      "version": "7.8.1",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",
 | 
				
			||||||
      "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
 | 
					      "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "tslib": "^1.9.0"
 | 
					        "tslib": "^2.1.0"
 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "engines": {
 | 
					 | 
				
			||||||
        "npm": ">=2.0.0"
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/rxjs/node_modules/tslib": {
 | 
					 | 
				
			||||||
      "version": "1.14.1",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/safe-buffer": {
 | 
					    "node_modules/safe-buffer": {
 | 
				
			||||||
      "version": "5.1.2",
 | 
					      "version": "5.1.2",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
 | 
				
			||||||
@@ -17133,6 +17197,23 @@
 | 
				
			|||||||
      "requires": {
 | 
					      "requires": {
 | 
				
			||||||
        "@angular-devkit/core": "14.2.1",
 | 
					        "@angular-devkit/core": "14.2.1",
 | 
				
			||||||
        "rxjs": "6.6.7"
 | 
					        "rxjs": "6.6.7"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "rxjs": {
 | 
				
			||||||
 | 
					          "version": "6.6.7",
 | 
				
			||||||
 | 
					          "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
 | 
				
			||||||
 | 
					          "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
 | 
				
			||||||
 | 
					          "dev": true,
 | 
				
			||||||
 | 
					          "requires": {
 | 
				
			||||||
 | 
					            "tslib": "^1.9.0"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "tslib": {
 | 
				
			||||||
 | 
					          "version": "1.14.1",
 | 
				
			||||||
 | 
					          "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
 | 
				
			||||||
 | 
					          "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
 | 
				
			||||||
 | 
					          "dev": true
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "@angular-devkit/build-angular": {
 | 
					    "@angular-devkit/build-angular": {
 | 
				
			||||||
@@ -17228,6 +17309,23 @@
 | 
				
			|||||||
            "rxjs": "6.6.7",
 | 
					            "rxjs": "6.6.7",
 | 
				
			||||||
            "source-map": "0.7.4"
 | 
					            "source-map": "0.7.4"
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "rxjs": {
 | 
				
			||||||
 | 
					          "version": "6.6.7",
 | 
				
			||||||
 | 
					          "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
 | 
				
			||||||
 | 
					          "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
 | 
				
			||||||
 | 
					          "dev": true,
 | 
				
			||||||
 | 
					          "requires": {
 | 
				
			||||||
 | 
					            "tslib": "^1.9.0"
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					          "dependencies": {
 | 
				
			||||||
 | 
					            "tslib": {
 | 
				
			||||||
 | 
					              "version": "1.14.1",
 | 
				
			||||||
 | 
					              "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
 | 
				
			||||||
 | 
					              "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
 | 
				
			||||||
 | 
					              "dev": true
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -17263,6 +17361,21 @@
 | 
				
			|||||||
            "rxjs": "6.6.7",
 | 
					            "rxjs": "6.6.7",
 | 
				
			||||||
            "source-map": "0.7.4"
 | 
					            "source-map": "0.7.4"
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "rxjs": {
 | 
				
			||||||
 | 
					          "version": "6.6.7",
 | 
				
			||||||
 | 
					          "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
 | 
				
			||||||
 | 
					          "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
 | 
				
			||||||
 | 
					          "dev": true,
 | 
				
			||||||
 | 
					          "requires": {
 | 
				
			||||||
 | 
					            "tslib": "^1.9.0"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "tslib": {
 | 
				
			||||||
 | 
					          "version": "1.14.1",
 | 
				
			||||||
 | 
					          "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
 | 
				
			||||||
 | 
					          "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
 | 
				
			||||||
 | 
					          "dev": true
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -17277,6 +17390,23 @@
 | 
				
			|||||||
        "jsonc-parser": "3.1.0",
 | 
					        "jsonc-parser": "3.1.0",
 | 
				
			||||||
        "rxjs": "6.6.7",
 | 
					        "rxjs": "6.6.7",
 | 
				
			||||||
        "source-map": "0.7.4"
 | 
					        "source-map": "0.7.4"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "rxjs": {
 | 
				
			||||||
 | 
					          "version": "6.6.7",
 | 
				
			||||||
 | 
					          "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
 | 
				
			||||||
 | 
					          "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
 | 
				
			||||||
 | 
					          "dev": true,
 | 
				
			||||||
 | 
					          "requires": {
 | 
				
			||||||
 | 
					            "tslib": "^1.9.0"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "tslib": {
 | 
				
			||||||
 | 
					          "version": "1.14.1",
 | 
				
			||||||
 | 
					          "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
 | 
				
			||||||
 | 
					          "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
 | 
				
			||||||
 | 
					          "dev": true
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "@angular-devkit/schematics": {
 | 
					    "@angular-devkit/schematics": {
 | 
				
			||||||
@@ -17290,6 +17420,23 @@
 | 
				
			|||||||
        "magic-string": "0.26.2",
 | 
					        "magic-string": "0.26.2",
 | 
				
			||||||
        "ora": "5.4.1",
 | 
					        "ora": "5.4.1",
 | 
				
			||||||
        "rxjs": "6.6.7"
 | 
					        "rxjs": "6.6.7"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "rxjs": {
 | 
				
			||||||
 | 
					          "version": "6.6.7",
 | 
				
			||||||
 | 
					          "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
 | 
				
			||||||
 | 
					          "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
 | 
				
			||||||
 | 
					          "dev": true,
 | 
				
			||||||
 | 
					          "requires": {
 | 
				
			||||||
 | 
					            "tslib": "^1.9.0"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "tslib": {
 | 
				
			||||||
 | 
					          "version": "1.14.1",
 | 
				
			||||||
 | 
					          "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
 | 
				
			||||||
 | 
					          "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
 | 
				
			||||||
 | 
					          "dev": true
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "@angular-eslint/bundled-angular-compiler": {
 | 
					    "@angular-eslint/bundled-angular-compiler": {
 | 
				
			||||||
@@ -23816,15 +23963,6 @@
 | 
				
			|||||||
          "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
 | 
					          "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
 | 
				
			||||||
          "dev": true
 | 
					          "dev": true
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        "rxjs": {
 | 
					 | 
				
			||||||
          "version": "7.5.6",
 | 
					 | 
				
			||||||
          "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz",
 | 
					 | 
				
			||||||
          "integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==",
 | 
					 | 
				
			||||||
          "dev": true,
 | 
					 | 
				
			||||||
          "requires": {
 | 
					 | 
				
			||||||
            "tslib": "^2.1.0"
 | 
					 | 
				
			||||||
          }
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        "supports-color": {
 | 
					        "supports-color": {
 | 
				
			||||||
          "version": "7.2.0",
 | 
					          "version": "7.2.0",
 | 
				
			||||||
          "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
 | 
					          "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
 | 
				
			||||||
@@ -25424,15 +25562,6 @@
 | 
				
			|||||||
          "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.0.tgz",
 | 
					          "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.0.tgz",
 | 
				
			||||||
          "integrity": "sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==",
 | 
					          "integrity": "sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==",
 | 
				
			||||||
          "dev": true
 | 
					          "dev": true
 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        "rxjs": {
 | 
					 | 
				
			||||||
          "version": "7.5.6",
 | 
					 | 
				
			||||||
          "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz",
 | 
					 | 
				
			||||||
          "integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==",
 | 
					 | 
				
			||||||
          "dev": true,
 | 
					 | 
				
			||||||
          "requires": {
 | 
					 | 
				
			||||||
            "tslib": "^2.1.0"
 | 
					 | 
				
			||||||
          }
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -27452,18 +27581,11 @@
 | 
				
			|||||||
      "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ=="
 | 
					      "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ=="
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "rxjs": {
 | 
					    "rxjs": {
 | 
				
			||||||
      "version": "6.6.7",
 | 
					      "version": "7.8.1",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",
 | 
				
			||||||
      "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
 | 
					      "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",
 | 
				
			||||||
      "requires": {
 | 
					      "requires": {
 | 
				
			||||||
        "tslib": "^1.9.0"
 | 
					        "tslib": "^2.1.0"
 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "dependencies": {
 | 
					 | 
				
			||||||
        "tslib": {
 | 
					 | 
				
			||||||
          "version": "1.14.1",
 | 
					 | 
				
			||||||
          "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
 | 
					 | 
				
			||||||
          "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "safe-buffer": {
 | 
					    "safe-buffer": {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "farmmaps-lib-app",
 | 
					  "name": "farmmaps-lib-app",
 | 
				
			||||||
  "version": "3.4.1",
 | 
					  "version": "3.5.0",
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "ng": "ng",
 | 
					    "ng": "ng",
 | 
				
			||||||
    "start": "ng serve",
 | 
					    "start": "ng serve",
 | 
				
			||||||
@@ -47,7 +47,7 @@
 | 
				
			|||||||
    "ol": "6.14.1",
 | 
					    "ol": "6.14.1",
 | 
				
			||||||
    "olcs": "^2.13.1",
 | 
					    "olcs": "^2.13.1",
 | 
				
			||||||
    "resumablejs": "^1.1.0",
 | 
					    "resumablejs": "^1.1.0",
 | 
				
			||||||
    "rxjs": "^6.6.7",
 | 
					    "rxjs": "^7.8.1",
 | 
				
			||||||
    "stream": "^0.0.2",
 | 
					    "stream": "^0.0.2",
 | 
				
			||||||
    "stream-http": "^3.2.0",
 | 
					    "stream-http": "^3.2.0",
 | 
				
			||||||
    "tassign": "^1.0.0",
 | 
					    "tassign": "^1.0.0",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ import { IItemLayer } from '../models/item.layer';
 | 
				
			|||||||
import { ILayervalue } from '../models/layer.value';
 | 
					import { ILayervalue } from '../models/layer.value';
 | 
				
			||||||
import { IQueryState } from '@farmmaps/common';
 | 
					import { IQueryState } from '@farmmaps/common';
 | 
				
			||||||
import { IItem } from '@farmmaps/common';
 | 
					import { IItem } from '@farmmaps/common';
 | 
				
			||||||
import { Feature, Observable } from 'ol';
 | 
					import { Feature } from 'ol';
 | 
				
			||||||
import { Style } from 'ol/style';
 | 
					import { Style } from 'ol/style';
 | 
				
			||||||
import { Geometry } from 'ol/geom';
 | 
					import { Geometry } from 'ol/geom';
 | 
				
			||||||
import { IPeriodState } from '../models/period.state';
 | 
					import { IPeriodState } from '../models/period.state';
 | 
				
			||||||
@@ -56,7 +56,7 @@ export const GETLAYERVALUE = '[Map] GetLayerValue'
 | 
				
			|||||||
export const GETLAYERVALUESUCCESS = '[Map] GetLayerValueSuccess'
 | 
					export const GETLAYERVALUESUCCESS = '[Map] GetLayerValueSuccess'
 | 
				
			||||||
export const TOGGLESHOWDATALAYERSLIDE = '[Map] ToggleShowDataLayerSlide'
 | 
					export const TOGGLESHOWDATALAYERSLIDE = '[Map] ToggleShowDataLayerSlide'
 | 
				
			||||||
export const SETVIEWSTATE = '[Map] SetViewState'
 | 
					export const SETVIEWSTATE = '[Map] SetViewState'
 | 
				
			||||||
export const SETCODELIST = '[Map] SetCodeList'
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export class Clear implements Action {
 | 
					export class Clear implements Action {
 | 
				
			||||||
  readonly type = CLEAR;
 | 
					  readonly type = CLEAR;
 | 
				
			||||||
@@ -329,12 +329,6 @@ export class SetViewState implements Action {
 | 
				
			|||||||
  constructor(public enabled:boolean) {}
 | 
					  constructor(public enabled:boolean) {}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export class SetCodeList implements Action {
 | 
					 | 
				
			||||||
  readonly type = SETCODELIST;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  constructor(public itemType:string, public values: IItem[]) { }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export type Actions = SetMapState
 | 
					export type Actions = SetMapState
 | 
				
			||||||
  | Init
 | 
					  | Init
 | 
				
			||||||
  | Clear
 | 
					  | Clear
 | 
				
			||||||
@@ -380,6 +374,5 @@ export type Actions = SetMapState
 | 
				
			|||||||
  | GetLayerValue
 | 
					  | GetLayerValue
 | 
				
			||||||
  | SetPeriod
 | 
					  | SetPeriod
 | 
				
			||||||
  | ToggleShowDataLayerSlide
 | 
					  | ToggleShowDataLayerSlide
 | 
				
			||||||
  | SetViewState
 | 
					  | SetViewState;
 | 
				
			||||||
  | SetCodeList;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
import { Component, Host, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges, forwardRef, Inject, InjectionToken } from '@angular/core';
 | 
					import { Component, Host, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges, forwardRef, Inject, InjectionToken, OnDestroy, LOCALE_ID } from '@angular/core';
 | 
				
			||||||
import { LayerVectorComponent, SourceVectorComponent, MapComponent } from 'ngx-openlayers';
 | 
					import { LayerVectorComponent, SourceVectorComponent, MapComponent } from 'ngx-openlayers';
 | 
				
			||||||
import { ItemService, ItemTypeService, IItem, IItemType } from '@farmmaps/common';
 | 
					import { ItemService, ItemTypeService, IItem, IItemType, FolderService } from '@farmmaps/common';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { Feature } from 'ol';
 | 
					import { Feature } from 'ol';
 | 
				
			||||||
import { Point, Geometry } from 'ol/geom';
 | 
					import { Point, Geometry } from 'ol/geom';
 | 
				
			||||||
@@ -17,6 +17,9 @@ import { GeoJSON } from 'ol/format';
 | 
				
			|||||||
import { Select } from 'ol/interaction';
 | 
					import { Select } from 'ol/interaction';
 | 
				
			||||||
import { IStyles } from '../../../models/style.cache';
 | 
					import { IStyles } from '../../../models/style.cache';
 | 
				
			||||||
import { FeatureIconService } from '../../../services/feature-icon.service';
 | 
					import { FeatureIconService } from '../../../services/feature-icon.service';
 | 
				
			||||||
 | 
					import { Subscription } from 'rxjs';
 | 
				
			||||||
 | 
					import { getCenter } from 'ol/extent';
 | 
				
			||||||
 | 
					import { formatNumber } from '@angular/common';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Component({
 | 
					@Component({
 | 
				
			||||||
  selector: 'fm-map-item-source-vector',
 | 
					  selector: 'fm-map-item-source-vector',
 | 
				
			||||||
@@ -25,7 +28,7 @@ import { FeatureIconService } from '../../../services/feature-icon.service';
 | 
				
			|||||||
    { provide: SourceVectorComponent, useExisting: forwardRef(() => ItemVectorSourceComponent) }
 | 
					    { provide: SourceVectorComponent, useExisting: forwardRef(() => ItemVectorSourceComponent) }
 | 
				
			||||||
  ]
 | 
					  ]
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
export class ItemVectorSourceComponent extends SourceVectorComponent implements OnInit, OnChanges {
 | 
					export class ItemVectorSourceComponent extends SourceVectorComponent implements OnInit, OnDestroy, OnChanges {
 | 
				
			||||||
  instance: Vector<Geometry>;
 | 
					  instance: Vector<Geometry>;
 | 
				
			||||||
  private _format: GeoJSON;
 | 
					  private _format: GeoJSON;
 | 
				
			||||||
  private _select: Select;
 | 
					  private _select: Select;
 | 
				
			||||||
@@ -38,8 +41,10 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
 | 
				
			|||||||
  @Output() onFeatureSelected: EventEmitter<Feature<Geometry>> = new EventEmitter<Feature<Geometry>>();
 | 
					  @Output() onFeatureSelected: EventEmitter<Feature<Geometry>> = new EventEmitter<Feature<Geometry>>();
 | 
				
			||||||
  @Output() onFeatureHover: EventEmitter<Feature<Geometry>> = new EventEmitter<Feature<Geometry>>();
 | 
					  @Output() onFeatureHover: EventEmitter<Feature<Geometry>> = new EventEmitter<Feature<Geometry>>();
 | 
				
			||||||
  private stylesCache: IStyles = {};
 | 
					  private stylesCache: IStyles = {};
 | 
				
			||||||
 | 
					  private sub: Subscription;
 | 
				
			||||||
 | 
					  private displayMapFeatureSettings: { [code: string]: string[] } = defaultDisplayMapFeatureSettings();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(@Host() private layer: LayerVectorComponent, private itemService: ItemService, private map: MapComponent, private itemTypeService: ItemTypeService, private featureIconService$: FeatureIconService) {
 | 
					  constructor(@Host() private layer: LayerVectorComponent, private itemService: ItemService, private map: MapComponent, private itemTypeService: ItemTypeService, private featureIconService$: FeatureIconService, private folderService: FolderService, @Inject(LOCALE_ID) private locale: string) {
 | 
				
			||||||
    super(layer);
 | 
					    super(layer);
 | 
				
			||||||
    this._format = new GeoJSON();
 | 
					    this._format = new GeoJSON();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
@@ -76,6 +81,17 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  ngOnInit() {
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.sub = this.folderService.getFolder('my_settings').subscribe(
 | 
				
			||||||
 | 
					      userSettingsRoot => {
 | 
				
			||||||
 | 
					        this.itemService.getChildItemList(userSettingsRoot.code, 'vnd.farmmaps.itemtype.settings.general').subscribe(
 | 
				
			||||||
 | 
					          items => {
 | 
				
			||||||
 | 
					            if (items && items.length > 0 && items[0].data?.displayMapFeatureSettings) {
 | 
				
			||||||
 | 
					              this.displayMapFeatureSettings = items[0].data?.displayMapFeatureSettings;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        )
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
    this.strategy = loadingstrategy.bbox;
 | 
					    this.strategy = loadingstrategy.bbox;
 | 
				
			||||||
    this.format = new GeoJSON();
 | 
					    this.format = new GeoJSON();
 | 
				
			||||||
    this._select = new Select({
 | 
					    this._select = new Select({
 | 
				
			||||||
@@ -133,7 +149,8 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
 | 
				
			|||||||
            fill: new style.Fill({
 | 
					            fill: new style.Fill({
 | 
				
			||||||
              color: fillColor
 | 
					              color: fillColor
 | 
				
			||||||
            }),
 | 
					            }),
 | 
				
			||||||
            geometry: (feature: Feature<Geometry>) => this.geometry(feature)
 | 
					            geometry: (feature: Feature<Geometry>) => this.geometry(feature),
 | 
				
			||||||
 | 
					            text: this.getDisplayTextForFeature(feature, this.map.instance.getView().getZoom())
 | 
				
			||||||
          });
 | 
					          });
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          key = 'file';
 | 
					          key = 'file';
 | 
				
			||||||
@@ -153,6 +170,10 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy(): void {
 | 
				
			||||||
 | 
					    if (this.sub) this.sub.unsubscribe();
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  ngOnChanges(changes: SimpleChanges) {
 | 
					  ngOnChanges(changes: SimpleChanges) {
 | 
				
			||||||
    if (changes["features"] && this.instance) {
 | 
					    if (changes["features"] && this.instance) {
 | 
				
			||||||
      this.instance.clear(true);
 | 
					      this.instance.clear(true);
 | 
				
			||||||
@@ -188,4 +209,51 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  getDisplayTextForFeature(feature: Feature<Geometry>, zoom: number, overrule?: style.Text) {
 | 
				
			||||||
 | 
					    if (!feature) return null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const propertiesToShow: string[] = this.displayMapFeatureSettings[feature.get('itemType')];
 | 
				
			||||||
 | 
					    if (!propertiesToShow) return null;
 | 
				
			||||||
 | 
					    if (propertiesToShow.length <= 0) return null;
 | 
				
			||||||
 | 
					    if (zoom < 14) return null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    let displayText = '';
 | 
				
			||||||
 | 
					    for (let i = 0; i < propertiesToShow.length; i++) {
 | 
				
			||||||
 | 
					      let value = feature.get(propertiesToShow[i]);
 | 
				
			||||||
 | 
					      switch (propertiesToShow[i]) {
 | 
				
			||||||
 | 
					        case "area": value = formatNumber(value, this.locale, '0.1-2') + ' ha'; break;
 | 
				
			||||||
 | 
					        case "centroid": {
 | 
				
			||||||
 | 
					          if (feature.getGeometry()) {
 | 
				
			||||||
 | 
					            const centroid = getCenter(feature.getGeometry().getExtent());
 | 
				
			||||||
 | 
					            value = Math.round(centroid[0]) + ',' + Math.round(centroid[1]);
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					          if (value) {
 | 
				
			||||||
 | 
					            displayText += value + (i < propertiesToShow.length ? '\n' : '');
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					      const styleText = new style.Text({
 | 
				
			||||||
 | 
					        font: '13px Calibri,sans-serif',
 | 
				
			||||||
 | 
					        fill: new style.Fill({ color: '#ffffff' }),
 | 
				
			||||||
 | 
					        stroke: new style.Stroke({ color: '#000000', width: 2 }),
 | 
				
			||||||
 | 
					        text: displayText
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      if (overrule) {
 | 
				
			||||||
 | 
					        if (overrule.getFont()) styleText.setFont(overrule.getFont());
 | 
				
			||||||
 | 
					        if (overrule.getFill()) styleText.setFill(overrule.getFill());
 | 
				
			||||||
 | 
					        if (overrule.getStroke()) styleText.setStroke(overrule.getStroke());
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      return styleText;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function defaultDisplayMapFeatureSettings() {
 | 
				
			||||||
 | 
					  return {
 | 
				
			||||||
 | 
					    'vnd.farmmaps.itemtype.cropfield': ['name', 'cropTypeName', 'area']
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -36,7 +36,6 @@ import {Extent,createEmpty,extend } from 'ol/extent';
 | 
				
			|||||||
import {transform} from 'ol/proj';
 | 
					import {transform} from 'ol/proj';
 | 
				
			||||||
import { tassign } from 'tassign';
 | 
					import { tassign } from 'tassign';
 | 
				
			||||||
import * as style from 'ol/style';
 | 
					import * as style from 'ol/style';
 | 
				
			||||||
import { ICodeLists } from '../../models/codelist.cache';
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Component({
 | 
					@Component({
 | 
				
			||||||
@@ -86,8 +85,6 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
  public overlayLayersCollapsed = true;
 | 
					  public overlayLayersCollapsed = true;
 | 
				
			||||||
  public extent$: Observable<Extent> = this.store.select(mapReducers.selectGetExtent);
 | 
					  public extent$: Observable<Extent> = this.store.select(mapReducers.selectGetExtent);
 | 
				
			||||||
  public styles$:Observable<IStyles> = this.store.select(mapReducers.selectGetStyles);
 | 
					  public styles$:Observable<IStyles> = this.store.select(mapReducers.selectGetStyles);
 | 
				
			||||||
  public codeLists$: Observable<ICodeLists> = this.store.select(mapReducers.selectGetCodeLists);
 | 
					 | 
				
			||||||
  public codeList$ = (id: string) => this.store.select(mapReducers.selectGetCodeList(id));
 | 
					 | 
				
			||||||
  public fullscreen$: Observable<boolean> = this.store.select(commonReducers.selectGetFullScreen);
 | 
					  public fullscreen$: Observable<boolean> = this.store.select(commonReducers.selectGetFullScreen);
 | 
				
			||||||
  private lastUrl = "";
 | 
					  private lastUrl = "";
 | 
				
			||||||
  private initialized = false;
 | 
					  private initialized = false;
 | 
				
			||||||
@@ -368,7 +365,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
      else {
 | 
					      else {
 | 
				
			||||||
        return of(null);
 | 
					        return of(null);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      })).subscribe((newUrlState) =>{
 | 
					    })).subscribe((newUrlState: any) => {
 | 
				
			||||||
        if(newUrlState) {
 | 
					        if(newUrlState) {
 | 
				
			||||||
          //console.debug(`State to url`);
 | 
					          //console.debug(`State to url`);
 | 
				
			||||||
          this.replaceUrl(newUrlState.mapState,newUrlState.queryState,newUrlState.replaceUrl);
 | 
					          this.replaceUrl(newUrlState.mapState,newUrlState.queryState,newUrlState.replaceUrl);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,6 +25,7 @@
 | 
				
			|||||||
            <li *ngIf="!getItemLayer(item,itemLayer.layerIndex)"><a   href="#" (click)="handleAddAsLayer(item,itemLayer.layerIndex)"><i class="fas fa-layer-plus" aria-hidden="true" i18n-title title="Add as layer"></i> <span i18n>Add as overlay</span></a></li>
 | 
					            <li *ngIf="!getItemLayer(item,itemLayer.layerIndex)"><a   href="#" (click)="handleAddAsLayer(item,itemLayer.layerIndex)"><i class="fas fa-layer-plus" aria-hidden="true" i18n-title title="Add as layer"></i> <span i18n>Add as overlay</span></a></li>
 | 
				
			||||||
            <li *ngIf="getItemLayer(item,itemLayer.layerIndex)"><a  href="#" (click)="handleRemoveLayer(item,itemLayer.layerIndex)"><i class="fas fa-layer-minus" aria-hidden="true" i18n-title title="Remove overlay"></i> <span i18n>Remove overlay</span></a></li>
 | 
					            <li *ngIf="getItemLayer(item,itemLayer.layerIndex)"><a  href="#" (click)="handleRemoveLayer(item,itemLayer.layerIndex)"><i class="fas fa-layer-minus" aria-hidden="true" i18n-title title="Remove overlay"></i> <span i18n>Remove overlay</span></a></li>
 | 
				
			||||||
          </ng-container>
 | 
					          </ng-container>
 | 
				
			||||||
 | 
					          <li><fm-item-link class="text-primary p-0" [itemCode]="item.code" pathSuffix="data" [showText]="true"></fm-item-link></li>
 | 
				
			||||||
        </ul>
 | 
					        </ul>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <fm-map-zoom-to-show-alert [layer]="itemLayer?.layer"></fm-map-zoom-to-show-alert>
 | 
					      <fm-map-zoom-to-show-alert [layer]="itemLayer?.layer"></fm-map-zoom-to-show-alert>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ import { ROUTER_NAVIGATED, RouterReducerState } from '@ngrx/router-store';
 | 
				
			|||||||
import * as fromRouter from '@ngrx/router-store';
 | 
					import * as fromRouter from '@ngrx/router-store';
 | 
				
			||||||
import { createEffect, Actions, ofType } from '@ngrx/effects';
 | 
					import { createEffect, Actions, ofType } from '@ngrx/effects';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { EMPTY, Observable, of, forkJoin } from 'rxjs';
 | 
					import { EMPTY, Observable, of } from 'rxjs';
 | 
				
			||||||
import { withLatestFrom, switchMap, map, catchError, mergeMap } from 'rxjs/operators';
 | 
					import { withLatestFrom, switchMap, map, catchError, mergeMap } from 'rxjs/operators';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { GeoJSON, WKT } from 'ol/format';
 | 
					import { GeoJSON, WKT } from 'ol/format';
 | 
				
			||||||
@@ -99,65 +99,6 @@ export class MapEffects {
 | 
				
			|||||||
          color: 'rgba(0, 0, 0, 0)'
 | 
					          color: 'rgba(0, 0, 0, 0)'
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
      })));
 | 
					      })));
 | 
				
			||||||
      // cache code lists
 | 
					 | 
				
			||||||
      forkJoin([
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl017'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl018'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl020'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl022'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl104'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl127'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl232'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl251'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl256'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl259'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl263'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl264'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl290'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl291'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl293'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl405'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl411'),
 | 
					 | 
				
			||||||
        this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl421'),
 | 
					 | 
				
			||||||
      ]).subscribe(([
 | 
					 | 
				
			||||||
        cl017,
 | 
					 | 
				
			||||||
        cl018,
 | 
					 | 
				
			||||||
        cl020,
 | 
					 | 
				
			||||||
        cl022,
 | 
					 | 
				
			||||||
        cl104,
 | 
					 | 
				
			||||||
        cl127,
 | 
					 | 
				
			||||||
        cl232,
 | 
					 | 
				
			||||||
        cl251,
 | 
					 | 
				
			||||||
        cl256,
 | 
					 | 
				
			||||||
        cl259,
 | 
					 | 
				
			||||||
        cl263,
 | 
					 | 
				
			||||||
        cl264,
 | 
					 | 
				
			||||||
        cl290,
 | 
					 | 
				
			||||||
        cl291,
 | 
					 | 
				
			||||||
        cl293,
 | 
					 | 
				
			||||||
        cl405,
 | 
					 | 
				
			||||||
        cl411,
 | 
					 | 
				
			||||||
        cl421,
 | 
					 | 
				
			||||||
      ]) => {
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl017', cl017));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl018', cl018));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl020', cl020));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl020', cl020));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl104', cl104));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl127', cl127));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl232', cl232));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl251', cl251));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl256', cl256));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl259', cl259));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl263', cl263));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl264', cl264));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl290', cl290));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl291', cl291));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl293', cl293));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl405', cl405));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl411', cl411));
 | 
					 | 
				
			||||||
        actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl421', cl421));
 | 
					 | 
				
			||||||
      });
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
      return actions;
 | 
					      return actions;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +0,0 @@
 | 
				
			|||||||
import { IItem } from '@farmmaps/common';
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export interface ICodeLists {
 | 
					 | 
				
			||||||
  [id: string]: IItem[];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
import { tassign } from 'tassign';
 | 
					import { tassign } from 'tassign';
 | 
				
			||||||
import { IItem } from '@farmmaps/common';
 | 
					import { IItem,Item } from '@farmmaps/common';
 | 
				
			||||||
import { IItemLayer,ItemLayer,ITemporalItemLayer,TemporalItemLayer} from '../models/item.layer';
 | 
					import { IItemLayer,ItemLayer,ITemporalItemLayer,TemporalItemLayer} from '../models/item.layer';
 | 
				
			||||||
import { IMapState} from '../models/map.state';
 | 
					import { IMapState} from '../models/map.state';
 | 
				
			||||||
import { IQueryState} from '@farmmaps/common';
 | 
					import { IQueryState} from '@farmmaps/common';
 | 
				
			||||||
@@ -17,7 +17,6 @@ import {Geometry} from 'ol/geom';
 | 
				
			|||||||
import { ROUTER_NAVIGATION, RouterNavigationAction } from '@ngrx/router-store';
 | 
					import { ROUTER_NAVIGATION, RouterNavigationAction } from '@ngrx/router-store';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { MODULE_NAME } from '../module-name';
 | 
					import { MODULE_NAME } from '../module-name';
 | 
				
			||||||
import { ICodeLists } from '../models/codelist.cache';
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
const startDate:Date = new Date(new Date(Date.now()).getFullYear(), new Date(Date.now()).getMonth() - 3, 1);
 | 
					const startDate:Date = new Date(new Date(Date.now()).getFullYear(), new Date(Date.now()).getMonth() - 3, 1);
 | 
				
			||||||
const endDate:Date = new Date(Date.now());
 | 
					const endDate:Date = new Date(Date.now());
 | 
				
			||||||
@@ -73,8 +72,7 @@ export interface State {
 | 
				
			|||||||
  layerValuesEnabled:boolean,
 | 
					  layerValuesEnabled:boolean,
 | 
				
			||||||
  layerValues: Array<ILayervalue>
 | 
					  layerValues: Array<ILayervalue>
 | 
				
			||||||
  showDataLayerSlide:boolean,
 | 
					  showDataLayerSlide:boolean,
 | 
				
			||||||
  viewEnabled: boolean,
 | 
					  viewEnabled:boolean
 | 
				
			||||||
  codeLists:ICodeLists,
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const initialState: State = {
 | 
					export const initialState: State = {
 | 
				
			||||||
@@ -119,8 +117,7 @@ export const initialState: State = {
 | 
				
			|||||||
  layerValuesEnabled:false,
 | 
					  layerValuesEnabled:false,
 | 
				
			||||||
  layerValues:[],
 | 
					  layerValues:[],
 | 
				
			||||||
  showDataLayerSlide:false,
 | 
					  showDataLayerSlide:false,
 | 
				
			||||||
  viewEnabled: true,
 | 
					  viewEnabled:true
 | 
				
			||||||
  codeLists: {}
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function reducer(state = initialState, action: mapActions.Actions | commonActions.Actions | RouterNavigationAction): State {
 | 
					export function reducer(state = initialState, action: mapActions.Actions | commonActions.Actions | RouterNavigationAction): State {
 | 
				
			||||||
@@ -572,12 +569,6 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
      return state;
 | 
					      return state;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case mapActions.SETCODELIST:{
 | 
					 | 
				
			||||||
      const a = action as mapActions.SetCodeList;
 | 
					 | 
				
			||||||
      const codeLists = tassign(state.codeLists);
 | 
					 | 
				
			||||||
      codeLists[a.itemType] = a.values;
 | 
					 | 
				
			||||||
      return tassign(state,{codeLists:codeLists});
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    default: {
 | 
					    default: {
 | 
				
			||||||
      return state;
 | 
					      return state;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -616,7 +607,7 @@ export const getLayerValues = (state:State) => state.layerValues;
 | 
				
			|||||||
export const getLayerValuesX = (state:State) => state.layerValuesX;
 | 
					export const getLayerValuesX = (state:State) => state.layerValuesX;
 | 
				
			||||||
export const getLayerValuesY = (state:State) => state.layerValuesY;
 | 
					export const getLayerValuesY = (state:State) => state.layerValuesY;
 | 
				
			||||||
export const getViewEnabled = (state:State) => state.viewEnabled;
 | 
					export const getViewEnabled = (state:State) => state.viewEnabled;
 | 
				
			||||||
export const getCodeLists = (state:State) => state.codeLists;
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const selectMapState = createFeatureSelector<State>(MODULE_NAME);
 | 
					export const selectMapState = createFeatureSelector<State>(MODULE_NAME);
 | 
				
			||||||
export const selectGetMapState= createSelector(selectMapState, getMapState);
 | 
					export const selectGetMapState= createSelector(selectMapState, getMapState);
 | 
				
			||||||
@@ -651,5 +642,5 @@ export const selectGetLayerValues = createSelector(selectMapState,getLayerValues
 | 
				
			|||||||
export const selectGetLayerValuesX = createSelector(selectMapState,getLayerValuesX);
 | 
					export const selectGetLayerValuesX = createSelector(selectMapState,getLayerValuesX);
 | 
				
			||||||
export const selectGetLayerValuesY = createSelector(selectMapState,getLayerValuesY);
 | 
					export const selectGetLayerValuesY = createSelector(selectMapState,getLayerValuesY);
 | 
				
			||||||
export const selectGetViewEnabled = createSelector(selectMapState,getViewEnabled);
 | 
					export const selectGetViewEnabled = createSelector(selectMapState,getViewEnabled);
 | 
				
			||||||
export const selectGetCodeLists = createSelector(selectMapState, getCodeLists);
 | 
					
 | 
				
			||||||
export const selectGetCodeList = (id: string) => createSelector(selectGetCodeLists, (codeLists) => codeLists[id]);
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,6 +42,8 @@ import { IEventMessage } from './models/event.message';
 | 
				
			|||||||
import { IItem, Item } from './models/item';
 | 
					import { IItem, Item } from './models/item';
 | 
				
			||||||
import { WeatherCurrentObservation } from './models/weatherCurrentObservation';
 | 
					import { WeatherCurrentObservation } from './models/weatherCurrentObservation';
 | 
				
			||||||
import { IItemType } from './models/item.type';
 | 
					import { IItemType } from './models/item.type';
 | 
				
			||||||
 | 
					import { IItemLinkType} from './models/itemlink.type';
 | 
				
			||||||
 | 
					import {IUrlType} from './models/url.type';
 | 
				
			||||||
import { IItemTypes } from './models/item.types';
 | 
					import { IItemTypes } from './models/item.types';
 | 
				
			||||||
import { IItemTask, ItemTask } from './models/itemTask';
 | 
					import { IItemTask, ItemTask } from './models/itemTask';
 | 
				
			||||||
import { IListItem } from './models/list.item';
 | 
					import { IListItem } from './models/list.item';
 | 
				
			||||||
@@ -65,6 +67,7 @@ import { HelpMenuComponent} from './components/help-menu/help-menu.component';
 | 
				
			|||||||
import { BackButtonComponent } from './components/back-button/back-button.component';
 | 
					import { BackButtonComponent } from './components/back-button/back-button.component';
 | 
				
			||||||
import { EditImageModalComponent } from './components/edit-image-modal/edit-image-modal.component';
 | 
					import { EditImageModalComponent } from './components/edit-image-modal/edit-image-modal.component';
 | 
				
			||||||
import { AvatarComponent } from './components/avatar/avatar.component';
 | 
					import { AvatarComponent } from './components/avatar/avatar.component';
 | 
				
			||||||
 | 
					import { ItemLinkComponent } from './components/item-link/item-link.component';
 | 
				
			||||||
import { AvatarModule } from 'ngx-avatar';
 | 
					import { AvatarModule } from 'ngx-avatar';
 | 
				
			||||||
import { ImageCropperModule } from 'ngx-image-cropper';
 | 
					import { ImageCropperModule } from 'ngx-image-cropper';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -92,6 +95,8 @@ export {
 | 
				
			|||||||
  IItem,
 | 
					  IItem,
 | 
				
			||||||
  Item,
 | 
					  Item,
 | 
				
			||||||
  IItemType,
 | 
					  IItemType,
 | 
				
			||||||
 | 
					  IItemLinkType,
 | 
				
			||||||
 | 
					  IUrlType,
 | 
				
			||||||
  IItemTypes,
 | 
					  IItemTypes,
 | 
				
			||||||
  IItemTask,
 | 
					  IItemTask,
 | 
				
			||||||
  ItemTask,
 | 
					  ItemTask,
 | 
				
			||||||
@@ -115,6 +120,7 @@ export {
 | 
				
			|||||||
  IGradientstop,
 | 
					  IGradientstop,
 | 
				
			||||||
  BackButtonComponent,
 | 
					  BackButtonComponent,
 | 
				
			||||||
  AvatarComponent,
 | 
					  AvatarComponent,
 | 
				
			||||||
 | 
					  ItemLinkComponent,
 | 
				
			||||||
  EditImageModalComponent,
 | 
					  EditImageModalComponent,
 | 
				
			||||||
  GradientComponent,
 | 
					  GradientComponent,
 | 
				
			||||||
  GradientSelectComponent
 | 
					  GradientSelectComponent
 | 
				
			||||||
@@ -160,7 +166,8 @@ export {
 | 
				
			|||||||
    BackButtonComponent,
 | 
					    BackButtonComponent,
 | 
				
			||||||
    ThumbnailComponent,
 | 
					    ThumbnailComponent,
 | 
				
			||||||
    EditImageModalComponent,
 | 
					    EditImageModalComponent,
 | 
				
			||||||
    AvatarComponent
 | 
					    AvatarComponent,
 | 
				
			||||||
 | 
					    ItemLinkComponent
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
  exports: [
 | 
					  exports: [
 | 
				
			||||||
    NgbModule,
 | 
					    NgbModule,
 | 
				
			||||||
@@ -189,6 +196,7 @@ export {
 | 
				
			|||||||
    BackButtonComponent,
 | 
					    BackButtonComponent,
 | 
				
			||||||
    ThumbnailComponent,
 | 
					    ThumbnailComponent,
 | 
				
			||||||
    AvatarComponent,
 | 
					    AvatarComponent,
 | 
				
			||||||
 | 
					    ItemLinkComponent,
 | 
				
			||||||
    EditImageModalComponent
 | 
					    EditImageModalComponent
 | 
				
			||||||
  ]
 | 
					  ]
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					<span class="item-link" (click)="copylink(copiedtt)" 	triggers="manual"	ngbTooltip="Link copied" #copiedtt="ngbTooltip" ><i ngbTooltip='Copy link' class="fa-solid fa-link"></i> <span *ngIf="showText" i18n>Copy link</span></span>
 | 
				
			||||||
@@ -0,0 +1,44 @@
 | 
				
			|||||||
 | 
					import { Component, Input, OnDestroy} from '@angular/core';
 | 
				
			||||||
 | 
					import { IItemLinkType} from '../../models/itemlink.type'
 | 
				
			||||||
 | 
					import { IUrlType } from '../../models/url.type';
 | 
				
			||||||
 | 
					import { ItemService } from '../../common-service.module';
 | 
				
			||||||
 | 
					import { Subscription } from 'rxjs';
 | 
				
			||||||
 | 
					import { ClipboardService } from 'ngx-clipboard'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'fm-item-link',
 | 
				
			||||||
 | 
					  templateUrl: './item-link.component.html'
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class ItemLinkComponent implements OnDestroy {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  @Input() itemCode:string;
 | 
				
			||||||
 | 
					  @Input() pathSuffix:string;
 | 
				
			||||||
 | 
					  @Input() query:string;
 | 
				
			||||||
 | 
					  @Input() validMinutes:number;
 | 
				
			||||||
 | 
					  @Input() showText:boolean;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  private sub : Subscription = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(private itemService:ItemService,private clipboardService$: ClipboardService) { }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  copylink(tooltip) {
 | 
				
			||||||
 | 
					    if(this.sub)  {
 | 
				
			||||||
 | 
					        this.sub.unsubscribe();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    let link: IItemLinkType = {itemcode:this.itemCode,pathsuffix:this.pathSuffix,query:this.query,validminutes:this.validMinutes}
 | 
				
			||||||
 | 
					    this.sub = this.itemService.getItemLink(link).subscribe((url:IUrlType) => { 
 | 
				
			||||||
 | 
					        this.clipboardService$.copy(url.url);
 | 
				
			||||||
 | 
					        tooltip.open();
 | 
				
			||||||
 | 
					        setTimeout(() => {
 | 
				
			||||||
 | 
					            tooltip.close();
 | 
				
			||||||
 | 
					        }, 2000);
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy(): void {
 | 
				
			||||||
 | 
					    if(this.sub) {
 | 
				
			||||||
 | 
					        this.sub.unsubscribe();
 | 
				
			||||||
 | 
					    }      
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										6
									
								
								projects/common/src/fm/models/itemlink.type.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								projects/common/src/fm/models/itemlink.type.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					export interface IItemLinkType {
 | 
				
			||||||
 | 
					  itemcode: string;
 | 
				
			||||||
 | 
					  pathsuffix?: string;
 | 
				
			||||||
 | 
					  query?: string;
 | 
				
			||||||
 | 
					  validminutes?: number;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										3
									
								
								projects/common/src/fm/models/url.type.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								projects/common/src/fm/models/url.type.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					export interface IUrlType {
 | 
				
			||||||
 | 
					  url: string;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -2,6 +2,8 @@ import { Injectable } from '@angular/core';
 | 
				
			|||||||
import { Observable } from 'rxjs';
 | 
					import { Observable } from 'rxjs';
 | 
				
			||||||
import { map } from 'rxjs/operators';
 | 
					import { map } from 'rxjs/operators';
 | 
				
			||||||
import { IItemType } from '../models/item.type';
 | 
					import { IItemType } from '../models/item.type';
 | 
				
			||||||
 | 
					import { IItemLinkType } from '../models/itemlink.type';
 | 
				
			||||||
 | 
					import { IUrlType } from '../models/url.type';
 | 
				
			||||||
import { IItem } from '../models/item';
 | 
					import { IItem } from '../models/item';
 | 
				
			||||||
import { IJsonline } from '../models/json-line';
 | 
					import { IJsonline } from '../models/json-line';
 | 
				
			||||||
import { IItemTask } from '../models/itemTask';
 | 
					import { IItemTask } from '../models/itemTask';
 | 
				
			||||||
@@ -63,6 +65,10 @@ export class ItemService {
 | 
				
			|||||||
    return this.httpClient.get<IItem>(`${this.ApiEndpoint()}/api/v1/items/${code}`);
 | 
					    return this.httpClient.get<IItem>(`${this.ApiEndpoint()}/api/v1/items/${code}`);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  getItemLink(itemLink: IItemLinkType): Observable<any> {
 | 
				
			||||||
 | 
					    return this.httpClient.post<IItemLinkType>(`${this.ApiEndpoint()}/api/v1/itemlink`,itemLink);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  getItemData(code: string,start?:number,size?:number): Observable<ArrayBuffer> {
 | 
					  getItemData(code: string,start?:number,size?:number): Observable<ArrayBuffer> {
 | 
				
			||||||
    let headers = new HttpHeaders();
 | 
					    let headers = new HttpHeaders();
 | 
				
			||||||
    if(start !== undefined && size !== undefined) headers=headers.set("Range",`bytes=${start}-${size-1}`);
 | 
					    if(start !== undefined && size !== undefined) headers=headers.set("Range",`bytes=${start}-${size-1}`);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user