Compare commits
	
		
			199 Commits
		
	
	
		
			1274d96f1d
			...
			develop
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					9b86927e2c | ||
| 
						 | 
					e224b80995 | ||
| 
						 | 
					88f3d9ef1a | ||
| 6737029a61 | |||
| 
						 | 
					d4786564bd | ||
| 6fd69d7999 | |||
| 
						 | 
					4ec75b3d5a | ||
| 04e3f1e71f | |||
| 
						 | 
					df77631299 | ||
| a8d0f05c81 | |||
| 
						 | 
					c79637be77 | ||
| 
						 | 
					b5e11da9a8 | ||
| 
						 | 
					9d45c25a95 | ||
| 
						 | 
					2ffce50c47 | ||
| 
						 | 
					f50ff878e0 | ||
| 09c74448a8 | |||
| 205b73b30e | |||
| 
						 | 
					313cc59fe7 | ||
| c3fb42c65f | |||
| 
						 | 
					6b73fb0d55 | ||
| ea641caf38 | |||
| ac15b2018d | |||
| 
						 | 
					fe73f615ad | ||
| 
						 | 
					3e1b3ee78e | ||
| 
						 | 
					58391b7828 | ||
| 
						 | 
					b2b2a1e8be | ||
| 
						 | 
					0d96a1be4f | ||
| d599430cb0 | |||
| 
						 | 
					e17911b339 | ||
| 
						 | 
					9d6cbffb3d | ||
| 
						 | 
					a11eb81e73 | ||
| 
						 | 
					4fc3ad933c | ||
| 
						 | 
					e6d90c9e61 | ||
| 250b3841fe | |||
| 51291cd86f | |||
| 
						 | 
					e9e3b719a4 | ||
| 
						 | 
					1c0ad57b0a | ||
| 
						 | 
					8684ba25c8 | ||
| 78ca3044cf | |||
| 2e55b5a70e | |||
| 
						 | 
					af0a3dca2d | ||
| f039898c26 | |||
| 
						 | 
					ab19b1c2ce | ||
| a2641f8ea5 | |||
| 
						 | 
					d6841c8f83 | ||
| 187b24ab97 | |||
| b80ddf7854 | |||
| 
						 | 
					79bc3d9082 | ||
| 1c92ad4c28 | |||
| 
						 | 
					61e6de0052 | ||
| fb25b92349 | |||
| 
						 | 
					e78f2893ae | ||
| 51170b45e9 | |||
| 
						 | 
					7365bea145 | ||
| dc096065b4 | |||
| 
						 | 
					b9850311ea | ||
| ee9c050db3 | |||
| 
						 | 
					95200d9920 | ||
| 
						 | 
					ee1ce21cca | ||
| 
						 | 
					467f7447bf | ||
| 
						 | 
					1df4496058 | ||
| 
						 | 
					2137f3f07e | ||
| a46e8040b2 | |||
| 
						 | 
					2ca9730735 | ||
| 3d2ca8fb9f | |||
| 6810da8b79 | |||
| 
						 | 
					4866a6f22d | ||
| 84a1004977 | |||
| 39c619a837 | |||
| 
						 | 
					758613aa12 | ||
| 6914a61bc4 | |||
| 9f43287433 | |||
| 
						 | 
					10df983ae3 | ||
| 78249811ab | |||
| df14427d60 | |||
| 
						 | 
					c7c131d437 | ||
| b2fe8f3bd7 | |||
| 
						 | 
					3027c69fa8 | ||
| 5995d205a4 | |||
| 
						 | 
					fd479c92d8 | ||
| e9880d6eb2 | |||
| 
						 | 
					a4438d8a90 | ||
| 89061774de | |||
| 
						 | 
					362e6c8534 | ||
| 64a0e58238 | |||
| 
						 | 
					a3d4dfbd59 | ||
| 4c106ebff3 | |||
| 
						 | 
					5c8fd64521 | ||
| 72ba8eca81 | |||
| 
						 | 
					f89f741265 | ||
| 50af55acb2 | |||
| 
						 | 
					cc879b85e5 | ||
| b4a0a4584d | |||
| 8ab1611f39 | |||
| 
						 | 
					475c522039 | ||
| 068396ac9a | |||
| 
						 | 
					4a30707ec6 | ||
| 852b1db895 | |||
| 
						 | 
					fcbd68eca0 | ||
| 3a42f9114e | |||
| 3f664b472c | |||
| 
						 | 
					57811f3f2e | ||
| 5e1bc6d705 | |||
| d4a230f96d | |||
| 
						 | 
					ed1e1478b2 | ||
| afe013a59a | |||
| db3734f8a3 | |||
| 
						 | 
					86f75c7f78 | ||
| a7abb4072b | |||
| 
						 | 
					61d6446d75 | ||
| 392008ae4b | |||
| 093c26c7f3 | |||
| 
						 | 
					a8e1ba6c02 | ||
| e64fbfd014 | |||
| 8cd7b85de2 | |||
| 
						 | 
					ddc7f97e27 | ||
| 24e3765c28 | |||
| 
						 | 
					86f3ddb34b | ||
| d6c55ef82b | |||
| d977ddfb7b | |||
| 
						 | 
					0e8bd5343d | ||
| ceeaa89ba3 | |||
| 
						 | 
					c3dbf85eb6 | ||
| ad5fe95b55 | |||
| 
						 | 
					6b95fb7f77 | ||
| da7e193219 | |||
| 31f9b48bd7 | |||
| 
						 | 
					1d6b30edff | ||
| 349a76395b | |||
| 
						 | 
					32b3b98f76 | ||
| 010ed6e010 | |||
| a8675f5c49 | |||
| 
						 | 
					f76ef44dee | ||
| 2387a0e39e | |||
| 98980fc857 | |||
| 
						 | 
					6f7d8fe248 | ||
| 03a1ccd597 | |||
| 
						 | 
					9c866e500f | ||
| 3b692359c6 | |||
| 3d4042e8c6 | |||
| 
						 | 
					3db760dd96 | ||
| b5828cd0fa | |||
| af4e6f45d1 | |||
| 
						 | 
					79def90bc7 | ||
| 53c60427f1 | |||
| 
						 | 
					7d7e5bcd37 | ||
| 72a172ccb2 | |||
| 2728a91ab4 | |||
| 
						 | 
					28d2b5d4a3 | ||
| b70e385097 | |||
| 7392c6170c | |||
| 367348088a | |||
| 
						 | 
					5efd5b78c9 | ||
| 0498d64c36 | |||
| 
						 | 
					e17ac435b5 | ||
| 
						 | 
					3e11c7cefd | ||
| 
						 | 
					b3dcd1e58b | ||
| 
						 | 
					681fc819a6 | ||
| 2a62d2df48 | |||
| 
						 | 
					004bcea0b6 | ||
| 8efa46fa66 | |||
| cefa788295 | |||
| 2da783d6be | |||
| 749be159f1 | |||
| 
						 | 
					4e24527950 | ||
| 45263a59f4 | |||
| 
						 | 
					5cdef30c71 | ||
| cdba2af921 | |||
| 658c2c84cd | |||
| 3f9b4dcdaa | |||
| 
						 | 
					a63159367f | ||
| b9d1c8f61f | |||
| 
						 | 
					eb34de193c | ||
| 5612bb3d66 | |||
| 0e42efac75 | |||
| 3247880b7c | |||
| a250ecdcc1 | |||
| 93e497ec3f | |||
| 10a1f07622 | |||
| 07d6c1bc10 | |||
| 
						 | 
					1bddc28767 | ||
| a999c05631 | |||
| 
						 | 
					f3252a378d | ||
| 4ab1e43d40 | |||
| 
						 | 
					2719f2fcf4 | ||
| 55914bf7d2 | |||
| 26ca9be4e7 | |||
| 0ed342404e | |||
| 
						 | 
					26ae1c7f06 | ||
| f71d0fe256 | |||
| 
						 | 
					7544203202 | ||
| 41a30e0b64 | |||
| f14fc1a4fc | |||
| 
						 | 
					21ebda4753 | ||
| 3a80a6f7f3 | |||
| 71a2ef44e6 | |||
| 
						 | 
					1610391d56 | ||
| b778e5726c | |||
| fc4abf9a5b | 
@@ -2,7 +2,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
This is a sample FarmMaps client in Angular 7.x.
 | 
					This is a sample FarmMaps client in Angular 7.x.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
## Quick start
 | 
					## Quick start
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Use one of the two options below to get started.
 | 
					Use one of the two options below to get started.
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										41
									
								
								angular.json
									
									
									
									
									
								
							
							
						
						
									
										41
									
								
								angular.json
									
									
									
									
									
								
							@@ -209,8 +209,8 @@
 | 
				
			|||||||
          "options": {
 | 
					          "options": {
 | 
				
			||||||
            "tsConfig": "projects/common-map/tsconfig.lib.json",
 | 
					            "tsConfig": "projects/common-map/tsconfig.lib.json",
 | 
				
			||||||
            "project": "projects/common-map/ng-package.json"
 | 
					            "project": "projects/common-map/ng-package.json"
 | 
				
			||||||
          }
 | 
					          },
 | 
				
			||||||
        ,          "configurations": {
 | 
					          "configurations": {
 | 
				
			||||||
              "production": {
 | 
					              "production": {
 | 
				
			||||||
                "tsConfig": "projects/common-map/tsconfig.lib.prod.json"
 | 
					                "tsConfig": "projects/common-map/tsconfig.lib.prod.json"
 | 
				
			||||||
              }
 | 
					              }
 | 
				
			||||||
@@ -253,6 +253,43 @@
 | 
				
			|||||||
          }
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "ng-openlayers": {
 | 
				
			||||||
 | 
					      "projectType": "library",
 | 
				
			||||||
 | 
					      "root": "projects/ng-openlayers",
 | 
				
			||||||
 | 
					      "sourceRoot": "projects/ng-openlayers/src",
 | 
				
			||||||
 | 
					      "prefix": "ng-openlayers",
 | 
				
			||||||
 | 
					      "architect": {
 | 
				
			||||||
 | 
					        "build": {
 | 
				
			||||||
 | 
					          "builder": "@angular-devkit/build-angular:ng-packagr",
 | 
				
			||||||
 | 
					          "options": {
 | 
				
			||||||
 | 
					            "tsConfig": "projects/ng-openlayers/tsconfig.lib.json",
 | 
				
			||||||
 | 
					            "project": "projects/ng-openlayers/ng-package.json"
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					          "configurations": {
 | 
				
			||||||
 | 
					            "production": {
 | 
				
			||||||
 | 
					              "tsConfig": "projects/ng-openlayers/tsconfig.lib.prod.json"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "test": {
 | 
				
			||||||
 | 
					          "builder": "@angular-devkit/build-angular:karma",
 | 
				
			||||||
 | 
					          "options": {
 | 
				
			||||||
 | 
					            "main": "projects/ng-openlayers/src/test.ts",
 | 
				
			||||||
 | 
					            "tsConfig": "projects/ng-openlayers/tsconfig.spec.json",
 | 
				
			||||||
 | 
					            "karmaConfig": "projects/ng-openlayers/karma.conf.js"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "lint": {
 | 
				
			||||||
 | 
					          "builder": "@angular-eslint/builder:lint",
 | 
				
			||||||
 | 
					          "options": {
 | 
				
			||||||
 | 
					            "lintFilePatterns": [
 | 
				
			||||||
 | 
					              "projects/ng-openlayers/**/*.ts",
 | 
				
			||||||
 | 
					              "projects/ng-openlayers/**/*.html"
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "cli": {
 | 
					  "cli": {
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										21567
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										21567
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										68
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										68
									
								
								package.json
									
									
									
									
									
								
							@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "farmmaps-lib-app",
 | 
					  "name": "farmmaps-lib-app",
 | 
				
			||||||
  "version": "4.5.1",
 | 
					  "version": "4.19.0",
 | 
				
			||||||
  "scripts":   {
 | 
					  "scripts":   {
 | 
				
			||||||
    "ng": "ng",
 | 
					    "ng": "ng",
 | 
				
			||||||
    "start": "ng serve",
 | 
					    "start": "ng serve",
 | 
				
			||||||
@@ -11,38 +11,38 @@
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  "private": true,
 | 
					  "private": true,
 | 
				
			||||||
  "dependencies":   {
 | 
					  "dependencies":   {
 | 
				
			||||||
    "@angular/animations": "^17.3.3",
 | 
					    "@angular-eslint/eslint-plugin": "^18.2.0",
 | 
				
			||||||
    "@angular/common": "^17.3.3",
 | 
					    "@angular/animations": "18.2.3",
 | 
				
			||||||
    "@angular/compiler": "^17.3.3",
 | 
					    "@angular/common": "18.2.3",
 | 
				
			||||||
    "@angular/core": "^17.3.3",
 | 
					    "@angular/compiler": "18.2.3",
 | 
				
			||||||
    "@angular-eslint/eslint-plugin": "^15.2.1",
 | 
					    "@angular/core": "18.2.3",
 | 
				
			||||||
    "@angular/forms": "^17.3.3",
 | 
					    "@angular/forms": "18.2.3",
 | 
				
			||||||
    "@angular/platform-browser": "^17.3.3",
 | 
					    "@angular/platform-browser": "18.2.3",
 | 
				
			||||||
    "@angular/platform-browser-dynamic": "^17.3.3",
 | 
					    "@angular/platform-browser-dynamic": "18.2.3",
 | 
				
			||||||
    "@angular/router": "^17.3.3",
 | 
					    "@angular/router": "18.2.3",
 | 
				
			||||||
    "@farmmaps/common": "file:dist/common",
 | 
					    "@farmmaps/common": "file:dist/common",
 | 
				
			||||||
    "@farmmaps/common-map": "file:dist/common-map",
 | 
					    "@farmmaps/common-map": "file:dist/common-map",
 | 
				
			||||||
    "@farmmaps/common-map3d": "file:dist/common-map3d",
 | 
					    "@farmmaps/common-map3d": "file:dist/common-map3d",
 | 
				
			||||||
    "ng-openlayers": "17.1.3",
 | 
					    "@farmmaps/ng-openlayers": "file:dist/ng-openlayers",
 | 
				
			||||||
    "@microsoft/signalr": "^3.1.16",
 | 
					    "@microsoft/signalr": "^3.1.16",
 | 
				
			||||||
    "@ng-bootstrap/ng-bootstrap": "^16.0.0",
 | 
					    "@ng-bootstrap/ng-bootstrap": "^17.0.1",
 | 
				
			||||||
    "@ngrx/effects": "^17",
 | 
					    "@ngrx/effects": "^18.0.2",
 | 
				
			||||||
    "@ngrx/router-store": "^17",
 | 
					    "@ngrx/router-store": "^18.0.2",
 | 
				
			||||||
    "@ngrx/store": "^17",
 | 
					    "@ngrx/store": "^18.0.2",
 | 
				
			||||||
    "@popperjs/core": "^2.11.6",
 | 
					    "@popperjs/core": "^2.11.8",
 | 
				
			||||||
    "angular-oauth2-oidc": "^13",
 | 
					    "angular-oauth2-oidc": "^17.0.2",
 | 
				
			||||||
    "assert": "^2.0.0",
 | 
					    "assert": "^2.0.0",
 | 
				
			||||||
    "bootstrap": "^5.2.0",
 | 
					    "bootstrap": "^5.3.3",
 | 
				
			||||||
    "browserify-zlib": "^0.2.0",
 | 
					    "browserify-zlib": "^0.2.0",
 | 
				
			||||||
    "buffer": "^6.0.3",
 | 
					    "buffer": "^6.0.3",
 | 
				
			||||||
    "cesium": "^1.97.0",
 | 
					    "cesium": "^1.97.0",
 | 
				
			||||||
    "core-js": "^2.6.12",
 | 
					    "core-js": "^2.6.12",
 | 
				
			||||||
    "https-browserify": "^1.0.0",
 | 
					    "https-browserify": "^1.0.0",
 | 
				
			||||||
    "moment": "^2.29.4",
 | 
					    "moment": "^2.29.4",
 | 
				
			||||||
    "ngrx-store-localstorage": "17.0.0",
 | 
					    "ngrx-store-localstorage": "^18.0.0",
 | 
				
			||||||
    "ngx-avatars": "1.7.0",
 | 
					    "ngx-avatars": "^1.8.0",
 | 
				
			||||||
    "ngx-clipboard": "16.0.0",
 | 
					    "ngx-clipboard": "^16.0.0",
 | 
				
			||||||
    "ngx-image-cropper": "^7.2.1",
 | 
					    "ngx-image-cropper": "^7.0.0",
 | 
				
			||||||
    "ngx-uploadx": "^6.2.0",
 | 
					    "ngx-uploadx": "^6.2.0",
 | 
				
			||||||
    "ol": "^8.2.0",
 | 
					    "ol": "^8.2.0",
 | 
				
			||||||
    "olcs": "^2.13.1",
 | 
					    "olcs": "^2.13.1",
 | 
				
			||||||
@@ -54,23 +54,27 @@
 | 
				
			|||||||
    "tslib": "^2.4.0",
 | 
					    "tslib": "^2.4.0",
 | 
				
			||||||
    "url": "^0.11.0",
 | 
					    "url": "^0.11.0",
 | 
				
			||||||
    "util": "^0.12.4",
 | 
					    "util": "^0.12.4",
 | 
				
			||||||
    "zone.js": "~0.14.4"
 | 
					    "zone.js": "~0.14.10"
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "optionalDependencies":   {
 | 
				
			||||||
 | 
					    "@lmdb/lmdb-linux-x64": "^3.1.0",
 | 
				
			||||||
 | 
					    "@rollup/rollup-linux-x64-gnu": "^4.21.2"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "devDependencies":   {
 | 
					  "devDependencies":   {
 | 
				
			||||||
    "@angular-builders/custom-webpack": "^17",
 | 
					    "@angular-builders/custom-webpack": "^18.0.0",
 | 
				
			||||||
    "@angular-devkit/build-angular": "^17.3.3",
 | 
					    "@angular-devkit/build-angular": "18.2.3",
 | 
				
			||||||
    "@angular/cli": "^17.3.3",
 | 
					    "@angular/cli": "18.2.3",
 | 
				
			||||||
    "@angular/compiler-cli": "^17.3.3",
 | 
					    "@angular/compiler-cli": "18.2.3",
 | 
				
			||||||
    "@angular/language-service": "^17.3.3",
 | 
					    "@angular/language-service": "18.2.3",
 | 
				
			||||||
    "@angular/localize": "^17.3.3",
 | 
					    "@angular/localize": "18.2.3",
 | 
				
			||||||
    "@types/arcgis-rest-api": "^10.4.5",
 | 
					    "@types/arcgis-rest-api": "^10.4.5",
 | 
				
			||||||
    "@types/jasmine": "~2.8.8",
 | 
					    "@types/jasmine": "~2.8.8",
 | 
				
			||||||
    "@types/jasminewd2": "^2.0.9",
 | 
					    "@types/jasminewd2": "^2.0.9",
 | 
				
			||||||
    "@types/node": "^12.20.15",
 | 
					    "@types/node": "^22.5.4",
 | 
				
			||||||
    "@typescript-eslint/eslint-plugin": "^6.18.0",
 | 
					    "@typescript-eslint/eslint-plugin": "^6.18.0",
 | 
				
			||||||
    "@typescript-eslint/eslint-plugin-tslint": "^6.18.0",
 | 
					    "@typescript-eslint/eslint-plugin-tslint": "^6.18.0",
 | 
				
			||||||
    "@typescript-eslint/parser": "^6.18.0",
 | 
					    "@typescript-eslint/parser": "^6.18.0",
 | 
				
			||||||
    "codelyzer": "^0.0.28",
 | 
					    "codelyzer": "^6.0.2",
 | 
				
			||||||
    "eslint": "^8.35.0",
 | 
					    "eslint": "^8.35.0",
 | 
				
			||||||
    "eslint-config-prettier": "^8.6.0",
 | 
					    "eslint-config-prettier": "^8.6.0",
 | 
				
			||||||
    "eslint-plugin-import": "^2.27.5",
 | 
					    "eslint-plugin-import": "^2.27.5",
 | 
				
			||||||
@@ -81,7 +85,7 @@
 | 
				
			|||||||
    "karma-coverage-istanbul-reporter": "^3.0.3",
 | 
					    "karma-coverage-istanbul-reporter": "^3.0.3",
 | 
				
			||||||
    "karma-jasmine": "^5.1.0",
 | 
					    "karma-jasmine": "^5.1.0",
 | 
				
			||||||
    "karma-jasmine-html-reporter": "^2.0.0",
 | 
					    "karma-jasmine-html-reporter": "^2.0.0",
 | 
				
			||||||
    "ng-packagr": "^17.3.0",
 | 
					    "ng-packagr": "^18.2.1",
 | 
				
			||||||
    "protractor": "~7.0.0",
 | 
					    "protractor": "~7.0.0",
 | 
				
			||||||
    "ts-node": "^8.8.1",
 | 
					    "ts-node": "^8.8.1",
 | 
				
			||||||
    "typescript": "~5.4.4"
 | 
					    "typescript": "~5.4.4"
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										207
									
								
								projects/common-map/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										207
									
								
								projects/common-map/package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -11,20 +11,207 @@
 | 
				
			|||||||
        "tslib": "^2.0.0"
 | 
					        "tslib": "^2.0.0"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "peerDependencies": {
 | 
					      "peerDependencies": {
 | 
				
			||||||
        "@angular/core": "^17.3.3",
 | 
					        "@angular/core": "^18.2.3",
 | 
				
			||||||
        "@ngrx/effects": "^17",
 | 
					        "@ngrx/effects": "^18.0.2",
 | 
				
			||||||
        "@ngrx/router-store": "^17",
 | 
					        "@ngrx/router-store": "^18.0.2",
 | 
				
			||||||
        "@ngrx/store": "^17",
 | 
					        "@ngrx/store": "^18.0.2",
 | 
				
			||||||
        "ng-openlayers": "17.1.3",
 | 
					        "ngrx-store-localstorage": "^18",
 | 
				
			||||||
        "ngrx-store-localstorage": "^17",
 | 
					 | 
				
			||||||
        "ol": "^8.2.0",
 | 
					 | 
				
			||||||
        "tassign": "^1.0.0"
 | 
					        "tassign": "^1.0.0"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    "../../dist/libs/ng-openlayers": {
 | 
				
			||||||
 | 
					      "version": "18.0.0",
 | 
				
			||||||
 | 
					      "extraneous": true,
 | 
				
			||||||
 | 
					      "license": "MPL-2.0",
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "@angular/common": "^18.2.3",
 | 
				
			||||||
 | 
					        "@angular/core": "^18.2.3",
 | 
				
			||||||
 | 
					        "ol": "^8.2.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "dist/ng-openlayers": {
 | 
				
			||||||
 | 
					      "extraneous": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular/common": {
 | 
				
			||||||
 | 
					      "version": "18.2.3",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@angular/common/-/common-18.2.3.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-NFL4yXXImSCH7i1xnHykUjHa9vl9827fGiwSV2mnf7LjSUsyDzFD8/54dNuYN9OY8AUD+PnK0YdNro6cczVyIA==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": "^18.19.1 || ^20.11.1 || >=22.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "@angular/core": "18.2.3",
 | 
				
			||||||
 | 
					        "rxjs": "^6.5.3 || ^7.4.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular/core": {
 | 
				
			||||||
 | 
					      "version": "18.2.3",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@angular/core/-/core-18.2.3.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-VGhMJxj7d0rYpqVfQrcGRB7EE/BCziotft/I/YPl6bOMPSAvMukG7DXQuJdYpNrr62ks78mlzHlZX/cdmB9Prw==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": "^18.19.1 || ^20.11.1 || >=22.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "rxjs": "^6.5.3 || ^7.4.0",
 | 
				
			||||||
 | 
					        "zone.js": "~0.14.10"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular/platform-browser": {
 | 
				
			||||||
 | 
					      "version": "18.2.3",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-18.2.3.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-M2ob4zN7tAcL2mx7U6KnZNqNFPFl9MlPBE0FrjQjIzAjU0wSYPIJXmaPu9aMUp9niyo+He5iX98I+URi2Yc99g==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": "^18.19.1 || ^20.11.1 || >=22.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "@angular/animations": "18.2.3",
 | 
				
			||||||
 | 
					        "@angular/common": "18.2.3",
 | 
				
			||||||
 | 
					        "@angular/core": "18.2.3"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependenciesMeta": {
 | 
				
			||||||
 | 
					        "@angular/animations": {
 | 
				
			||||||
 | 
					          "optional": true
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular/router": {
 | 
				
			||||||
 | 
					      "version": "18.2.3",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@angular/router/-/router-18.2.3.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-fvD9eSDIiIbeYoUokoWkXzu7/ZaxlzKPUHFqX1JuKuH5ciQDeT/d7lp4mj31Bxammhohzi3+z12THJYsCkj/iQ==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": "^18.19.1 || ^20.11.1 || >=22.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "@angular/common": "18.2.3",
 | 
				
			||||||
 | 
					        "@angular/core": "18.2.3",
 | 
				
			||||||
 | 
					        "@angular/platform-browser": "18.2.3",
 | 
				
			||||||
 | 
					        "rxjs": "^6.5.3 || ^7.4.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@ngrx/effects": {
 | 
				
			||||||
 | 
					      "version": "18.0.2",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@ngrx/effects/-/effects-18.0.2.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-YojXcOD9Lsq4kl2HCjENccyUM/mOlgBdtddsg9j/ojzSUgu3ZuBVKLN3atrL2TJYkbMX1MN0RzafSkL3TPGFIA==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "@ngrx/operators": "18.0.1",
 | 
				
			||||||
 | 
					        "tslib": "^2.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "@angular/core": "^18.0.0",
 | 
				
			||||||
 | 
					        "@ngrx/store": "18.0.2",
 | 
				
			||||||
 | 
					        "rxjs": "^6.5.3 || ^7.5.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@ngrx/operators": {
 | 
				
			||||||
 | 
					      "version": "18.0.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@ngrx/operators/-/operators-18.0.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-M+QMrHNKgcuiLaRGZxJ4aQi5/OCRfKC4+T/63dsHyLFZ53/FFpF6a/ytSO1Q+tzOplZ5o99S+i8FVaZqNQ3LmQ==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "rxjs": "^6.5.3 || ^7.4.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@ngrx/router-store": {
 | 
				
			||||||
 | 
					      "version": "18.0.2",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@ngrx/router-store/-/router-store-18.0.2.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-jUrQ/uJJ53x8O1XbN2YxH2GpRREZlwS5gRxlCoc4fWL4Us/uS1/K6+QfRmKBPtpTKBIixqsOb+dIUV5iwBrivA==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "@angular/common": "^18.0.0",
 | 
				
			||||||
 | 
					        "@angular/core": "^18.0.0",
 | 
				
			||||||
 | 
					        "@angular/router": "^18.0.0",
 | 
				
			||||||
 | 
					        "@ngrx/store": "18.0.2",
 | 
				
			||||||
 | 
					        "rxjs": "^6.5.3 || ^7.5.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@ngrx/store": {
 | 
				
			||||||
 | 
					      "version": "18.0.2",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@ngrx/store/-/store-18.0.2.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-ajwv0+njsO4vzArp9esnFvs1wyUb1U1W8E8LSCKrcW2hWWo9o1Pezj+JRsdQwatxHfrrPFuTDyajsl6GQM/JSA==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "@angular/core": "^18.0.0",
 | 
				
			||||||
 | 
					        "rxjs": "^6.5.3 || ^7.5.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/deepmerge": {
 | 
				
			||||||
 | 
					      "version": "4.3.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": ">=0.10.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/ngrx-store-localstorage": {
 | 
				
			||||||
 | 
					      "version": "18.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/ngrx-store-localstorage/-/ngrx-store-localstorage-18.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-WoDePvMWiWF9LQHe+dTqbpm8lxoKCPoIvA0/1enIPTmdLQsOpdDKhMSD5YgwuqDusNfEik3QslProTFGyXZwtw==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "deepmerge": "^4.2.2",
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "@angular/common": "^18.0.1",
 | 
				
			||||||
 | 
					        "@angular/core": "^18.0.1",
 | 
				
			||||||
 | 
					        "@ngrx/store": "^18.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/rxjs": {
 | 
				
			||||||
 | 
					      "version": "7.8.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.1.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/tassign": {
 | 
				
			||||||
 | 
					      "version": "1.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/tassign/-/tassign-1.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-k0Ti9f+A1R0BRdArEbiUHldd+A40kZ5qsiNSNk4czx61wkAoSZYjqkaQs0jC63AfgPdCXVPstDq2ZW5ZLRTCgw==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "node_modules/tslib": {
 | 
					    "node_modules/tslib": {
 | 
				
			||||||
      "version": "2.0.1",
 | 
					      "version": "2.7.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.1.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-SgIkNheinmEBgx1IUNirK0TUD4X9yjjBRTqqjggWCU3pUEqIk3/Uwl3yRixYKT6WjQuGiwDv4NomL3wqRCj+CQ=="
 | 
					      "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA=="
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/zone.js": {
 | 
				
			||||||
 | 
					      "version": "0.14.10",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.14.10.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-YGAhaO7J5ywOXW6InXNlLmfU194F8lVgu7bRntUF3TiG8Y3nBK0x1UJJuHUP/e8IyihkjCYqhCScpSwnlaSRkQ==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,13 +8,11 @@
 | 
				
			|||||||
    "tslib": "^2.0.0"
 | 
					    "tslib": "^2.0.0"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "peerDependencies": {
 | 
					  "peerDependencies": {
 | 
				
			||||||
    "@angular/core": "^17.3.3",
 | 
					    "@angular/core": "18.2.3",
 | 
				
			||||||
    "ngrx-store-localstorage": "^17",
 | 
					    "ngrx-store-localstorage": "^18.0.0",
 | 
				
			||||||
    "@ngrx/effects": "^17",
 | 
					    "@ngrx/effects": "^18.0.2",
 | 
				
			||||||
    "@ngrx/router-store": "^17",
 | 
					    "@ngrx/router-store": "^18.0.2",
 | 
				
			||||||
    "@ngrx/store": "^17",
 | 
					    "@ngrx/store": "^18.0.2",
 | 
				
			||||||
    "tassign": "^1.0.0",
 | 
					    "tassign": "^1.0.0"
 | 
				
			||||||
    "ng-openlayers": "17.1.3",
 | 
					 | 
				
			||||||
    "ol": "^8.2.0"
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -59,6 +59,8 @@ export const TOGGLESHOWDATALAYERSLIDE = '[Map] ToggleShowDataLayerSlide'
 | 
				
			|||||||
export const SETVIEWSTATE = '[Map] SetViewState'
 | 
					export const SETVIEWSTATE = '[Map] SetViewState'
 | 
				
			||||||
export const CLEARFEATURES = '[Map] ClearFeatures';
 | 
					export const CLEARFEATURES = '[Map] ClearFeatures';
 | 
				
			||||||
export const SETPANELEXTRAWIDE = '[Map] SetPanelExtraWide';
 | 
					export const SETPANELEXTRAWIDE = '[Map] SetPanelExtraWide';
 | 
				
			||||||
 | 
					export const BACKUPFEATURES = '[Map] BackupFeatures';
 | 
				
			||||||
 | 
					export const RESTOREFEATURES = '[Map] RestoreFeatures';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export class Clear implements Action {
 | 
					export class Clear implements Action {
 | 
				
			||||||
  readonly type = CLEAR;
 | 
					  readonly type = CLEAR;
 | 
				
			||||||
@@ -347,6 +349,16 @@ export class SetPanelExtraWide implements Action {
 | 
				
			|||||||
  constructor(public panelExtraWide:boolean) {}
 | 
					  constructor(public panelExtraWide:boolean) {}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export class BackupFeatures implements Action {
 | 
				
			||||||
 | 
					  readonly type = BACKUPFEATURES;
 | 
				
			||||||
 | 
					  constructor() {}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export class RestoreFeatures implements Action {
 | 
				
			||||||
 | 
					  readonly type = RESTOREFEATURES;
 | 
				
			||||||
 | 
					  constructor() {}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export type Actions = SetMapState
 | 
					export type Actions = SetMapState
 | 
				
			||||||
  | Init
 | 
					  | Init
 | 
				
			||||||
  | Clear
 | 
					  | Clear
 | 
				
			||||||
@@ -395,5 +407,7 @@ export type Actions = SetMapState
 | 
				
			|||||||
  | ToggleShowDataLayerSlide
 | 
					  | ToggleShowDataLayerSlide
 | 
				
			||||||
  | SetViewState
 | 
					  | SetViewState
 | 
				
			||||||
  | ClearFeatures
 | 
					  | ClearFeatures
 | 
				
			||||||
  | SetPanelExtraWide;
 | 
					  | SetPanelExtraWide
 | 
				
			||||||
 | 
					  | BackupFeatures
 | 
				
			||||||
 | 
					  | RestoreFeatures;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,78 +1,79 @@
 | 
				
			|||||||
import { NgModule ,ModuleWithProviders} from '@angular/core';
 | 
					 | 
				
			||||||
import { CommonModule } from '@angular/common';
 | 
					import { CommonModule } from '@angular/common';
 | 
				
			||||||
 | 
					import { NgModule } from '@angular/core';
 | 
				
			||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
 | 
					import { FormsModule, ReactiveFormsModule } from '@angular/forms';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//external modules
 | 
					//external modules
 | 
				
			||||||
import { AngularOpenlayersModule } from 'ng-openlayers';
 | 
					 | 
				
			||||||
import { StoreModule, ActionReducer, MetaReducer } from '@ngrx/store';
 | 
					 | 
				
			||||||
import { EffectsModule } from '@ngrx/effects';
 | 
					 | 
				
			||||||
import { NgbModule } from "@ng-bootstrap/ng-bootstrap";
 | 
					import { NgbModule } from "@ng-bootstrap/ng-bootstrap";
 | 
				
			||||||
 | 
					import { EffectsModule } from '@ngrx/effects';
 | 
				
			||||||
 | 
					import { ActionReducer, MetaReducer, StoreModule } from '@ngrx/store';
 | 
				
			||||||
 | 
					import { AngularOpenlayersModule } from '@farmmaps/ng-openlayers';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//common modules
 | 
					//common modules
 | 
				
			||||||
import { AppCommonModule } from '@farmmaps/common';
 | 
					import { AppCommonModule } from '@farmmaps/common';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { MODULE_NAME } from './module-name';
 | 
					 | 
				
			||||||
import * as mapReducers from './reducers/map.reducer';
 | 
					 | 
				
			||||||
import * as mapActions from './actions/map.actions';
 | 
					import * as mapActions from './actions/map.actions';
 | 
				
			||||||
import * as mapEffects from './effects/map.effects';
 | 
					import * as mapEffects from './effects/map.effects';
 | 
				
			||||||
 | 
					import { MODULE_NAME } from './module-name';
 | 
				
			||||||
 | 
					import * as mapReducers from './reducers/map.reducer';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { IMapState} from './models/map.state';
 | 
					 | 
				
			||||||
import { ISelectedFeatures } from './models/selected.features';
 | 
					 | 
				
			||||||
import { IItemLayer,ItemLayer,ITemporalItemLayer,TemporalItemLayer } from './models/item.layer';
 | 
					 | 
				
			||||||
import { IClickedFeature } from './models/clicked.feature';
 | 
					import { IClickedFeature } from './models/clicked.feature';
 | 
				
			||||||
 | 
					import { IItemLayer, ItemLayer, ITemporalItemLayer, TemporalItemLayer } from './models/item.layer';
 | 
				
			||||||
 | 
					import { IMapState } from './models/map.state';
 | 
				
			||||||
import { IPeriodState } from './models/period.state';
 | 
					import { IPeriodState } from './models/period.state';
 | 
				
			||||||
 | 
					import { ISelectedFeatures } from './models/selected.features';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// components
 | 
					// components
 | 
				
			||||||
import { GpsLocation} from './components/aol/gps-location/gps-location.component';
 | 
					import { MapRoutingModule } from './common-map-routing.module';
 | 
				
			||||||
import {FeatureListFeatureCropfieldComponent } from './components/feature-list-feature-cropfield/feature-list-feature-cropfield.component';
 | 
					 | 
				
			||||||
import { FeatureListFeatureCroppingschemeComponent} from './components/feature-list-feature-croppingscheme/feature-list-feature-croppingscheme.component';
 | 
					 | 
				
			||||||
import { ItemWidgetListComponent} from './components/item-widget-list/item-widget-list.component';
 | 
					 | 
				
			||||||
import { AbstractItemListItemComponent, ItemListItemComponent, AbstractItemWidgetComponent } from './components/item-list-item/item-list-item.component';
 | 
					 | 
				
			||||||
import { ItemListItemContainerComponent } from './components/item-list-item-container/item-list-item-container.component';
 | 
					 | 
				
			||||||
import { AbstractItemListComponent,ItemListComponent} from './components/item-list/item-list.component';
 | 
					 | 
				
			||||||
import { AbstractSelectedItemComponent, SelectedItemComponent } from './components/selected-item/selected-item.component';
 | 
					 | 
				
			||||||
import { SelectedItemCropfieldComponent } from './components/selected-item-cropfield/selected-item-cropfield.component';
 | 
					 | 
				
			||||||
import { SelectedItemGeotiffComponent } from './components/selected-item-geotiff/selected-item-geotiff.component';
 | 
					 | 
				
			||||||
import { SelectedItemTemporalComponent} from './components/selected-item-temporal/selected-item-temporal.component';
 | 
					 | 
				
			||||||
import {SelectedItemShapeComponent } from './components/selected-item-shape/selected-item-shape.component';
 | 
					 | 
				
			||||||
import { SelectedItemContainerComponent } from './components/selected-item-container/selected-item-container.component';
 | 
					 | 
				
			||||||
import { AbstractFeatureListFeatureComponent, FeatureListFeatureComponent } from './components/feature-list-feature/feature-list-feature.component';
 | 
					 | 
				
			||||||
import {FeatureListFeatureContainerComponent } from './components/feature-list-feature-container/feature-list-feature-container.component';
 | 
					 | 
				
			||||||
import { FeatureListCroppingschemeComponent } from './components/feature-list-croppingscheme/feature-list-croppingscheme.component';
 | 
					 | 
				
			||||||
import {FeatureListCropfieldComponent  } from './components/feature-list-cropfield/feature-list-cropfield.component';
 | 
					 | 
				
			||||||
import {FeatureListContainerComponent } from './components/feature-list-container/feature-list-container.component';
 | 
					 | 
				
			||||||
import { WidgetHostDirective} from './components/widget-host/widget-host.directive';
 | 
					 | 
				
			||||||
import { FeatureListComponent,AbstractFeatureListComponent} from './components/feature-list/feature-list.component';
 | 
					 | 
				
			||||||
import { FileDropTargetComponent } from './components/aol/file-drop-target/file-drop-target.component';
 | 
					import { FileDropTargetComponent } from './components/aol/file-drop-target/file-drop-target.component';
 | 
				
			||||||
import { ItemVectorSourceComponent } from './components/aol/item-vector-source/item-vector-source.component';
 | 
					import { GpsLocation } from './components/aol/gps-location/gps-location.component';
 | 
				
			||||||
import { ItemLayersComponent } from './components/aol/item-layers/item-layers.component';
 | 
					import { ItemLayersComponent } from './components/aol/item-layers/item-layers.component';
 | 
				
			||||||
import { ZoomToExtentComponent } from './components/aol/zoom-to-extent/zoom-to-extent.component';
 | 
					import { ItemVectorSourceComponent } from './components/aol/item-vector-source/item-vector-source.component';
 | 
				
			||||||
import { RotationResetComponent } from './components/aol/rotation-reset/rotation-reset.component';
 | 
					 | 
				
			||||||
import { LayerListComponent } from './components/aol/layer-list/layer-list.component';
 | 
					import { LayerListComponent } from './components/aol/layer-list/layer-list.component';
 | 
				
			||||||
 | 
					import { LayerValuesComponent } from './components/aol/layer-values/layer-values.component';
 | 
				
			||||||
 | 
					import { LayerVectorImageComponent } from './components/aol/layer-vector-image/layer-vector-image.component';
 | 
				
			||||||
 | 
					import { PanToLocation } from './components/aol/pan-to-location/pan-to-location.component';
 | 
				
			||||||
 | 
					import { RotationResetComponent } from './components/aol/rotation-reset/rotation-reset.component';
 | 
				
			||||||
 | 
					import { ZoomToExtentComponent } from './components/aol/zoom-to-extent/zoom-to-extent.component';
 | 
				
			||||||
 | 
					import { FeatureListContainerComponent } from './components/feature-list-container/feature-list-container.component';
 | 
				
			||||||
 | 
					import { FeatureListCropfieldComponent } from './components/feature-list-cropfield/feature-list-cropfield.component';
 | 
				
			||||||
 | 
					import { FeatureListObservationComponent } from './components/feature-list-observation/feature-list-observation.component';
 | 
				
			||||||
 | 
					import { FeatureListCroppingschemeComponent } from './components/feature-list-croppingscheme/feature-list-croppingscheme.component';
 | 
				
			||||||
 | 
					import { FeatureListFeatureContainerComponent } from './components/feature-list-feature-container/feature-list-feature-container.component';
 | 
				
			||||||
 | 
					import { FeatureListFeatureCropfieldComponent } from './components/feature-list-feature-cropfield/feature-list-feature-cropfield.component';
 | 
				
			||||||
 | 
					import { FeatureListFeatureCroppingschemeComponent } from './components/feature-list-feature-croppingscheme/feature-list-feature-croppingscheme.component';
 | 
				
			||||||
 | 
					import { AbstractFeatureListFeatureComponent, FeatureListFeatureComponent } from './components/feature-list-feature/feature-list-feature.component';
 | 
				
			||||||
 | 
					import { AbstractFeatureListComponent, FeatureListComponent } from './components/feature-list/feature-list.component';
 | 
				
			||||||
 | 
					import { GeometryThumbnailComponent } from './components/feature-thumbnail/feature-thumbnail.component';
 | 
				
			||||||
 | 
					import { ForChild } from './components/for-item/for-child.decorator';
 | 
				
			||||||
 | 
					import { ForItemType } from './components/for-item/for-itemtype.decorator';
 | 
				
			||||||
 | 
					import { ForPackage } from './components/for-item/for-package.decorator';
 | 
				
			||||||
 | 
					import { ForSourceTask } from './components/for-item/for-sourcetask.decorator';
 | 
				
			||||||
 | 
					import { ifZoomToShowDirective } from './components/if-zoom-to-show/if-zoom-to-show.directive';
 | 
				
			||||||
 | 
					import { ItemListItemContainerComponent } from './components/item-list-item-container/item-list-item-container.component';
 | 
				
			||||||
 | 
					import { AbstractItemListItemComponent, AbstractItemWidgetComponent, ItemListItemComponent } from './components/item-list-item/item-list-item.component';
 | 
				
			||||||
 | 
					import { AbstractItemListComponent, ItemListComponent } from './components/item-list/item-list.component';
 | 
				
			||||||
 | 
					import { ItemWidgetListComponent } from './components/item-widget-list/item-widget-list.component';
 | 
				
			||||||
 | 
					import { LayerSwitcher } from './components/layer-switcher/layer-switcher.component';
 | 
				
			||||||
 | 
					import { HistogramDetailsComponent } from './components/legend/histogram-details/histogram-details.component';
 | 
				
			||||||
 | 
					import { LegendComponent } from './components/legend/legend.component';
 | 
				
			||||||
 | 
					import { StatisticsDetailsComponent } from './components/legend/statistics-details/statistics-details.component';
 | 
				
			||||||
 | 
					import { MapSearchComponent } from './components/map-search/map-search.component';
 | 
				
			||||||
 | 
					import { MapComponent } from './components/map/map.component';
 | 
				
			||||||
import { MetaDataModalComponent } from './components/meta-data-modal/meta-data-modal.component';
 | 
					import { MetaDataModalComponent } from './components/meta-data-modal/meta-data-modal.component';
 | 
				
			||||||
import { SelectPeriodModalComponent } from './components/select-period-modal/select-period-modal.component';
 | 
					import { SelectPeriodModalComponent } from './components/select-period-modal/select-period-modal.component';
 | 
				
			||||||
import { MapComponent } from './components/map/map.component';
 | 
					import { SelectedItemContainerComponent } from './components/selected-item-container/selected-item-container.component';
 | 
				
			||||||
import { MapSearchComponent } from './components/map-search/map-search.component';
 | 
					import { SelectedItemCropfieldComponent } from './components/selected-item-cropfield/selected-item-cropfield.component';
 | 
				
			||||||
import { MapRoutingModule } from './common-map-routing.module';
 | 
					import { SelectedItemGeotiffComponent } from './components/selected-item-geotiff/selected-item-geotiff.component';
 | 
				
			||||||
import { LegendComponent } from './components/legend/legend.component';
 | 
					import { SelectedItemShapeComponent } from './components/selected-item-shape/selected-item-shape.component';
 | 
				
			||||||
import { LayerVectorImageComponent } from './components/aol/layer-vector-image/layer-vector-image.component';
 | 
					import { SelectedItemTemporalComponent } from './components/selected-item-temporal/selected-item-temporal.component';
 | 
				
			||||||
import {FeatureIconService} from './services/feature-icon.service';
 | 
					import { AbstractSelectedItemComponent, SelectedItemComponent } from './components/selected-item/selected-item.component';
 | 
				
			||||||
import { GeolocationService } from './services/geolocation.service';
 | 
					import { WidgetHostDirective } from './components/widget-host/widget-host.directive';
 | 
				
			||||||
import {DeviceOrientationService} from './services/device-orientation.service';
 | 
					 | 
				
			||||||
import { TemporalService} from './services/temporal.service';
 | 
					 | 
				
			||||||
import { WidgetStatusComponent } from './components/widget-status/widget-status.component';
 | 
					import { WidgetStatusComponent } from './components/widget-status/widget-status.component';
 | 
				
			||||||
import { ForChild} from './components/for-item/for-child.decorator';
 | 
					import { ZoomToShowAlert } from './components/zoom-to-show-alert/zoom-to-show-alert.component';
 | 
				
			||||||
import {ForItemType } from './components/for-item/for-itemtype.decorator';
 | 
					import { DeviceOrientationService } from './services/device-orientation.service';
 | 
				
			||||||
import { ForSourceTask} from './components/for-item/for-sourcetask.decorator';
 | 
					import { FeatureIconService } from './services/feature-icon.service';
 | 
				
			||||||
import { ForPackage } from './components/for-item/for-package.decorator';
 | 
					import { GeolocationService } from './services/geolocation.service';
 | 
				
			||||||
import { PanToLocation} from './components/aol/pan-to-location/pan-to-location.component';
 | 
					import { TemporalService } from './services/temporal.service';
 | 
				
			||||||
import {LayerSwitcher} from './components/layer-switcher/layer-switcher.component';
 | 
					 | 
				
			||||||
import {HistogramDetailsComponent} from './components/legend/histogram-details/histogram-details.component';
 | 
					 | 
				
			||||||
import {StatisticsDetailsComponent} from './components/legend/statistics-details/statistics-details.component';
 | 
					 | 
				
			||||||
import { ifZoomToShowDirective} from './components/if-zoom-to-show/if-zoom-to-show.directive';
 | 
					 | 
				
			||||||
import { ZoomToShowAlert} from './components/zoom-to-show-alert/zoom-to-show-alert.component';
 | 
					 | 
				
			||||||
import { LayerValuesComponent } from './components/aol/layer-values/layer-values.component';
 | 
					 | 
				
			||||||
import { GeometryThumbnailComponent } from './components/feature-thumbnail/feature-thumbnail.component';
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function LocalStorageSync(reducer: ActionReducer<any>): ActionReducer<any> {
 | 
					export function LocalStorageSync(reducer: ActionReducer<any>): ActionReducer<any> {
 | 
				
			||||||
  const r = function(state, action) {
 | 
					  const r = function(state, action) {
 | 
				
			||||||
@@ -104,70 +105,13 @@ export function LocalStorageSync(reducer: ActionReducer<any>): ActionReducer<any
 | 
				
			|||||||
const metaReducers: Array<MetaReducer<any, any>> = [LocalStorageSync];
 | 
					const metaReducers: Array<MetaReducer<any, any>> = [LocalStorageSync];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export {
 | 
					export {
 | 
				
			||||||
  mapEffects,
 | 
					 | 
				
			||||||
  mapReducers,
 | 
					 | 
				
			||||||
  mapActions,
 | 
					 | 
				
			||||||
  ZoomToExtentComponent,
 | 
					 | 
				
			||||||
  ItemVectorSourceComponent,
 | 
					 | 
				
			||||||
  ItemLayersComponent,
 | 
					 | 
				
			||||||
  FileDropTargetComponent,
 | 
					 | 
				
			||||||
  MapComponent,
 | 
					 | 
				
			||||||
  MetaDataModalComponent,
 | 
					 | 
				
			||||||
  RotationResetComponent,
 | 
					 | 
				
			||||||
  MapSearchComponent,
 | 
					 | 
				
			||||||
  SelectPeriodModalComponent,
 | 
					 | 
				
			||||||
  LayerListComponent,
 | 
					 | 
				
			||||||
  LegendComponent,
 | 
					 | 
				
			||||||
  LayerVectorImageComponent,
 | 
					 | 
				
			||||||
  FeatureListComponent,
 | 
					 | 
				
			||||||
  WidgetHostDirective,
 | 
					 | 
				
			||||||
  FeatureListContainerComponent,
 | 
					 | 
				
			||||||
  FeatureListCroppingschemeComponent,
 | 
					 | 
				
			||||||
  FeatureListCropfieldComponent,
 | 
					 | 
				
			||||||
  FeatureListFeatureContainerComponent,
 | 
					 | 
				
			||||||
  FeatureListFeatureComponent,
 | 
					 | 
				
			||||||
  FeatureListFeatureCroppingschemeComponent,
 | 
					 | 
				
			||||||
  FeatureListFeatureCropfieldComponent,
 | 
					 | 
				
			||||||
  SelectedItemContainerComponent,
 | 
					 | 
				
			||||||
  SelectedItemComponent,
 | 
					 | 
				
			||||||
  SelectedItemCropfieldComponent,
 | 
					 | 
				
			||||||
  SelectedItemGeotiffComponent,
 | 
					 | 
				
			||||||
  SelectedItemTemporalComponent,
 | 
					 | 
				
			||||||
  SelectedItemShapeComponent,
 | 
					 | 
				
			||||||
  ItemListItemComponent,
 | 
					 | 
				
			||||||
  ItemListItemContainerComponent,
 | 
					 | 
				
			||||||
  ItemListComponent,
 | 
					 | 
				
			||||||
  ItemWidgetListComponent,
 | 
					 | 
				
			||||||
  WidgetStatusComponent,
 | 
					 | 
				
			||||||
  GpsLocation,
 | 
					 | 
				
			||||||
  PanToLocation,
 | 
					 | 
				
			||||||
  LayerSwitcher,
 | 
					 | 
				
			||||||
  AbstractFeatureListComponent,
 | 
					  AbstractFeatureListComponent,
 | 
				
			||||||
  AbstractFeatureListFeatureComponent,
 | 
					  AbstractFeatureListFeatureComponent, AbstractItemListComponent, AbstractItemListItemComponent, AbstractItemWidgetComponent, AbstractSelectedItemComponent, DeviceOrientationService, FeatureIconService, FeatureListComponent, FeatureListContainerComponent, FeatureListCropfieldComponent, FeatureListObservationComponent, FeatureListCroppingschemeComponent, FeatureListFeatureComponent, FeatureListFeatureContainerComponent, FeatureListFeatureCropfieldComponent, FeatureListFeatureCroppingschemeComponent, FileDropTargetComponent, ForChild,
 | 
				
			||||||
  AbstractSelectedItemComponent,
 | 
					  ForItemType, ForPackage, ForSourceTask, GeolocationService, GeometryThumbnailComponent, GpsLocation, IClickedFeature, ifZoomToShowDirective, IItemLayer, IMapState, IPeriodState, ISelectedFeatures, ItemLayer, ItemLayersComponent, ItemListComponent, ItemListItemComponent,
 | 
				
			||||||
  AbstractItemWidgetComponent,
 | 
					  ItemListItemContainerComponent, ITemporalItemLayer, ItemVectorSourceComponent, ItemWidgetListComponent, LayerListComponent, LayerSwitcher, LayerVectorImageComponent, LegendComponent, mapActions, MapComponent, mapEffects,
 | 
				
			||||||
  AbstractItemListItemComponent,
 | 
					  mapReducers, MapSearchComponent, MetaDataModalComponent, PanToLocation, RotationResetComponent, SelectedItemComponent, SelectedItemContainerComponent, SelectedItemCropfieldComponent,
 | 
				
			||||||
  AbstractItemListComponent,
 | 
					  SelectedItemGeotiffComponent, SelectedItemShapeComponent, SelectedItemTemporalComponent, SelectPeriodModalComponent, TemporalItemLayer, TemporalService, WidgetHostDirective, WidgetStatusComponent, ZoomToExtentComponent, ZoomToShowAlert
 | 
				
			||||||
  FeatureIconService,
 | 
					};
 | 
				
			||||||
  GeolocationService,
 | 
					 | 
				
			||||||
  DeviceOrientationService,
 | 
					 | 
				
			||||||
  TemporalService,
 | 
					 | 
				
			||||||
  IMapState,
 | 
					 | 
				
			||||||
  ISelectedFeatures,
 | 
					 | 
				
			||||||
  IItemLayer,
 | 
					 | 
				
			||||||
  ItemLayer,
 | 
					 | 
				
			||||||
  IPeriodState,
 | 
					 | 
				
			||||||
  ForChild,
 | 
					 | 
				
			||||||
  ForItemType,
 | 
					 | 
				
			||||||
  ForSourceTask,
 | 
					 | 
				
			||||||
  ForPackage ,
 | 
					 | 
				
			||||||
  ITemporalItemLayer,
 | 
					 | 
				
			||||||
  TemporalItemLayer,
 | 
					 | 
				
			||||||
  ifZoomToShowDirective,
 | 
					 | 
				
			||||||
  ZoomToShowAlert,
 | 
					 | 
				
			||||||
  IClickedFeature,
 | 
					 | 
				
			||||||
  GeometryThumbnailComponent
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
@NgModule({
 | 
					@NgModule({
 | 
				
			||||||
    imports: [
 | 
					    imports: [
 | 
				
			||||||
@@ -199,6 +143,7 @@ export {
 | 
				
			|||||||
        FeatureListContainerComponent,
 | 
					        FeatureListContainerComponent,
 | 
				
			||||||
        FeatureListCroppingschemeComponent,
 | 
					        FeatureListCroppingschemeComponent,
 | 
				
			||||||
        FeatureListCropfieldComponent,
 | 
					        FeatureListCropfieldComponent,
 | 
				
			||||||
 | 
					        FeatureListObservationComponent,
 | 
				
			||||||
        FeatureListFeatureContainerComponent,
 | 
					        FeatureListFeatureContainerComponent,
 | 
				
			||||||
        FeatureListFeatureComponent,
 | 
					        FeatureListFeatureComponent,
 | 
				
			||||||
        FeatureListFeatureCroppingschemeComponent,
 | 
					        FeatureListFeatureCroppingschemeComponent,
 | 
				
			||||||
@@ -258,6 +203,7 @@ export {
 | 
				
			|||||||
        FeatureListContainerComponent,
 | 
					        FeatureListContainerComponent,
 | 
				
			||||||
        FeatureListCroppingschemeComponent,
 | 
					        FeatureListCroppingschemeComponent,
 | 
				
			||||||
        FeatureListCropfieldComponent,
 | 
					        FeatureListCropfieldComponent,
 | 
				
			||||||
 | 
					        FeatureListObservationComponent,
 | 
				
			||||||
        FeatureListFeatureContainerComponent,
 | 
					        FeatureListFeatureContainerComponent,
 | 
				
			||||||
        ZoomToExtentComponent,
 | 
					        ZoomToExtentComponent,
 | 
				
			||||||
        ifZoomToShowDirective,
 | 
					        ifZoomToShowDirective,
 | 
				
			||||||
@@ -271,6 +217,7 @@ export {
 | 
				
			|||||||
        TemporalService,
 | 
					        TemporalService,
 | 
				
			||||||
        { provide: AbstractFeatureListComponent, useClass: FeatureListCroppingschemeComponent, multi: true },
 | 
					        { provide: AbstractFeatureListComponent, useClass: FeatureListCroppingschemeComponent, multi: true },
 | 
				
			||||||
        { provide: AbstractFeatureListComponent, useClass: FeatureListCropfieldComponent, multi: true },
 | 
					        { provide: AbstractFeatureListComponent, useClass: FeatureListCropfieldComponent, multi: true },
 | 
				
			||||||
 | 
					        { provide: AbstractFeatureListComponent, useClass: FeatureListObservationComponent, multi: true },        
 | 
				
			||||||
        { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureComponent, multi: true },
 | 
					        { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureComponent, multi: true },
 | 
				
			||||||
        { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureCroppingschemeComponent, multi: true },
 | 
					        { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureCroppingschemeComponent, multi: true },
 | 
				
			||||||
        { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureCropfieldComponent, multi: true },       
 | 
					        { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureCropfieldComponent, multi: true },       
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
import { Component, Input, OnDestroy, OnInit, EventEmitter, Output, Inject } from '@angular/core';
 | 
					import { Component, Input, OnDestroy, OnInit, EventEmitter, Output, Inject } from '@angular/core';
 | 
				
			||||||
import { MapComponent } from 'ng-openlayers';
 | 
					import { MapComponent } from '@farmmaps/ng-openlayers';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import * as proj  from 'ol/proj';
 | 
					import * as proj  from 'ol/proj';
 | 
				
			||||||
import {Point,Geometry} from 'ol/geom';
 | 
					import {Point,Geometry} from 'ol/geom';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
import { Component, OnInit, Input, ViewChild, ElementRef, OnChanges, SimpleChanges ,Host} from '@angular/core';
 | 
					import { Component, OnInit, Input, ViewChild, ElementRef, OnChanges, SimpleChanges ,Host} from '@angular/core';
 | 
				
			||||||
import { MapComponent } from 'ng-openlayers';
 | 
					import { MapComponent } from '@farmmaps/ng-openlayers';
 | 
				
			||||||
import  Overlay  from 'ol/Overlay';
 | 
					import  Overlay  from 'ol/Overlay';
 | 
				
			||||||
import { fromLonLat, toLonLat } from 'ol/proj';
 | 
					import { fromLonLat, toLonLat } from 'ol/proj';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
import { Component, Host, Input, Output, EventEmitter,OnDestroy, OnInit, OnChanges, SimpleChanges, forwardRef } from '@angular/core';
 | 
					import { Component, Host, Input, Output, EventEmitter,OnDestroy, OnInit, OnChanges, SimpleChanges, forwardRef } from '@angular/core';
 | 
				
			||||||
import { LayerGroupComponent, MapComponent } from 'ng-openlayers';
 | 
					import { LayerGroupComponent, MapComponent } from '@farmmaps/ng-openlayers';
 | 
				
			||||||
import { ItemService,IItem,AppConfig } from '@farmmaps/common';
 | 
					import { ItemService,IItem,AppConfig } from '@farmmaps/common';
 | 
				
			||||||
import { IItemLayer, ITemporalItemLayer} from '../../../models/item.layer';
 | 
					import { IItemLayer, ITemporalItemLayer} from '../../../models/item.layer';
 | 
				
			||||||
import { ILayerData} from '../../../models/layer.data';
 | 
					import { ILayerData} from '../../../models/layer.data';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
import { Component, Host, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges, forwardRef, Inject, InjectionToken, OnDestroy, LOCALE_ID } 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 'ng-openlayers';
 | 
					import { LayerVectorComponent, SourceVectorComponent, MapComponent } from '@farmmaps/ng-openlayers';
 | 
				
			||||||
import { ItemService, ItemTypeService, IItem, IItemType, FolderService } from '@farmmaps/common';
 | 
					import { ItemService, ItemTypeService, IItem, IItemType, FolderService } from '@farmmaps/common';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { Feature } from 'ol';
 | 
					import { Feature } from 'ol';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ import { IItemLayer } from '../../../models/item.layer';
 | 
				
			|||||||
import { Store } from '@ngrx/store';
 | 
					import { Store } from '@ngrx/store';
 | 
				
			||||||
import * as mapReducers from '../../../reducers/map.reducer';
 | 
					import * as mapReducers from '../../../reducers/map.reducer';
 | 
				
			||||||
import * as mapActions from '../../../actions/map.actions';
 | 
					import * as mapActions from '../../../actions/map.actions';
 | 
				
			||||||
import { MapComponent } from 'ng-openlayers';
 | 
					import { MapComponent } from '@farmmaps/ng-openlayers';
 | 
				
			||||||
import { ILayervalue } from '../../../models/layer.value';
 | 
					import { ILayervalue } from '../../../models/layer.value';
 | 
				
			||||||
import { Observable, interval, Subject } from 'rxjs';
 | 
					import { Observable, interval, Subject } from 'rxjs';
 | 
				
			||||||
import { debounce, throttle } from 'rxjs/operators';
 | 
					import { debounce, throttle } from 'rxjs/operators';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
import { Component, OnDestroy, OnInit, Input, OnChanges, SimpleChanges } from '@angular/core';
 | 
					import { Component, OnDestroy, OnInit, Input, OnChanges, SimpleChanges } from '@angular/core';
 | 
				
			||||||
import { LayerVectorComponent, MapComponent } from 'ng-openlayers';
 | 
					import { LayerVectorComponent, MapComponent } from '@farmmaps/ng-openlayers';
 | 
				
			||||||
import  RenderType  from 'ol/layer/Vector';
 | 
					import  RenderType  from 'ol/layer/Vector';
 | 
				
			||||||
import { Vector as VectorSource } from 'ol/source';
 | 
					import { Vector as VectorSource } from 'ol/source';
 | 
				
			||||||
import { Geometry } from 'ol/geom';
 | 
					import { Geometry } from 'ol/geom';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
import { Component, OnInit, Input, Host, OnChanges, SimpleChanges,ChangeDetectorRef } from '@angular/core';
 | 
					import { Component, OnInit, Input, Host, OnChanges, SimpleChanges,ChangeDetectorRef } from '@angular/core';
 | 
				
			||||||
import { MapComponent } from 'ng-openlayers';
 | 
					import { MapComponent } from '@farmmaps/ng-openlayers';
 | 
				
			||||||
import {IMapState} from '../../../models/map.state'
 | 
					import {IMapState} from '../../../models/map.state'
 | 
				
			||||||
import {View} from 'ol';
 | 
					import {View} from 'ol';
 | 
				
			||||||
import { fromLonLat } from 'ol/proj';
 | 
					import { fromLonLat } from 'ol/proj';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
import { Component, Host, Input, OnInit, ChangeDetectorRef  } from '@angular/core';
 | 
					import { Component, Host, Input, OnInit, ChangeDetectorRef  } from '@angular/core';
 | 
				
			||||||
import { ViewComponent, MapComponent } from 'ng-openlayers';
 | 
					import { ViewComponent, MapComponent } from '@farmmaps/ng-openlayers';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import {View} from 'ol';
 | 
					import {View} from 'ol';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
import { Component, Host, Input, OnInit, OnChanges, SimpleChanges, forwardRef } from '@angular/core';
 | 
					import { Component, Host, Input, OnInit, OnChanges, SimpleChanges, forwardRef } from '@angular/core';
 | 
				
			||||||
import { ActivatedRoute  } from '@angular/router';
 | 
					import { ActivatedRoute  } from '@angular/router';
 | 
				
			||||||
import { ViewComponent, MapComponent } from 'ng-openlayers';
 | 
					import { ViewComponent, MapComponent } from '@farmmaps/ng-openlayers';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
@Component({
 | 
					@Component({
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1,14 @@
 | 
				
			|||||||
 | 
					<div class="card border-0">
 | 
				
			||||||
 | 
					  <div class="card-body" *ngIf="(schemeItem|async);let schemeItem">
 | 
				
			||||||
 | 
					    <fm-back-button></fm-back-button>
 | 
				
			||||||
 | 
					    <h4 i18n>Farm</h4>
 | 
				
			||||||
 | 
					    <h3>{{schemeItem.name}}</h3>
 | 
				
			||||||
 | 
					    <div *ngIf="features;let features">
 | 
				
			||||||
 | 
					        <div class="cropfields">
 | 
				
			||||||
 | 
					          <div class="row m-0 ps-3 pe-3" *ngFor="let feature of features" [ngClass]="{'selected':isFeatureSelected(feature)}" (click)="handleFeatureClick(feature)" (mouseenter)="handleFeatureMouseEnter(feature)" (mouseleave)="handleFeatureMouseLeave(feature)">
 | 
				
			||||||
 | 
					          <fm-map-feature-list-feature-container [feature]="feature"></fm-map-feature-list-feature-container>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					  </div>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					fm-map-feature-list-feature-container {
 | 
				
			||||||
 | 
					  width:100%;
 | 
				
			||||||
 | 
					  pointer-events:none;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.row {
 | 
				
			||||||
 | 
					  border-bottom: 1px solid var(--bs-gray-500);
 | 
				
			||||||
 | 
					  user-select: none;
 | 
				
			||||||
 | 
					  padding-left:1.5rem;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.row.selected {
 | 
				
			||||||
 | 
					  background-color: var(--bs-gray-100);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.cropfields {
 | 
				
			||||||
 | 
					  border-top: 1px solid var(--bs-gray-500);
 | 
				
			||||||
 | 
					  margin-left: -1.25rem;
 | 
				
			||||||
 | 
					  margin-right: -1.25rem;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,30 @@
 | 
				
			|||||||
 | 
					import { Component, Injectable,AfterViewInit, OnInit,SimpleChanges, ChangeDetectorRef} from '@angular/core';
 | 
				
			||||||
 | 
					import { Location } from '@angular/common';
 | 
				
			||||||
 | 
					import { AbstractFeatureListComponent } from '../feature-list/feature-list.component';
 | 
				
			||||||
 | 
					import {ForItemType } from '../for-item/for-itemtype.decorator';
 | 
				
			||||||
 | 
					import {ForChild } from '../for-item/for-child.decorator';
 | 
				
			||||||
 | 
					import { Store } from '@ngrx/store';
 | 
				
			||||||
 | 
					import * as mapReducers from '../../reducers/map.reducer';
 | 
				
			||||||
 | 
					import { commonReducers, ItemTypeService, IItem,ItemService } from '@farmmaps/common';
 | 
				
			||||||
 | 
					import { Observable } from 'rxjs';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@ForChild()
 | 
				
			||||||
 | 
					@ForItemType("vnd.farmmaps.itemtype.observation")
 | 
				
			||||||
 | 
					@Injectable()
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'fm-map-feature-list-observation',
 | 
				
			||||||
 | 
					    templateUrl: './feature-list-observation.component.html',
 | 
				
			||||||
 | 
					    styleUrls: ['./feature-list-observation.component.scss']
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class FeatureListObservationComponent extends AbstractFeatureListComponent implements OnInit {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService, location: Location, private itemService: ItemService) {
 | 
				
			||||||
 | 
					    super(store, itemTypeService,location);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  public schemeItem: Observable<IItem>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.schemeItem = this.itemService.getItem(this.queryState.parentCode);
 | 
				
			||||||
 | 
					  } 
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
import { Directive, ViewContainerRef,TemplateRef,OnInit,Input, OnChanges } from '@angular/core';
 | 
					import { Directive, ViewContainerRef,TemplateRef,OnInit,Input, OnChanges } from '@angular/core';
 | 
				
			||||||
import { Layer } from 'ol/layer';
 | 
					import { Layer } from 'ol/layer';
 | 
				
			||||||
import { Source } from 'ol/source';
 | 
					import { Source } from 'ol/source';
 | 
				
			||||||
import { MapComponent } from 'ng-openlayers';
 | 
					import { MapComponent } from '@farmmaps/ng-openlayers';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Directive({
 | 
					@Directive({
 | 
				
			||||||
  selector: '[fmMapIfZoomToShow]',
 | 
					  selector: '[fmMapIfZoomToShow]',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,7 +10,7 @@
 | 
				
			|||||||
        <li class="nav-item py-0">
 | 
					        <li class="nav-item py-0">
 | 
				
			||||||
          <span><i class="fal fa-layer-group" aria-hidden="true"></i> <span i18n>Base maps</span></span>
 | 
					          <span><i class="fal fa-layer-group" aria-hidden="true"></i> <span i18n>Base maps</span></span>
 | 
				
			||||||
          <div  class="mb-4">
 | 
					          <div  class="mb-4">
 | 
				
			||||||
            <fm-map-layer-list [baseLayers]="true" [itemLayers]="baseLayers|async" [selectedLayer]="selectedBaseLayer|async" (onSelectLayer)="handleSelectBaseLayer($event)"></fm-map-layer-list>
 | 
					            <fm-map-layer-list [baseLayers]="true" [itemLayers]="baseMaps|async" [selectedLayer]="selectedBaseLayer|async" (onSelectLayer)="handleSelectBaseLayer($event)"></fm-map-layer-list>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
        </li>
 | 
					        </li>
 | 
				
			||||||
        <li class="nav-item py-0">
 | 
					        <li class="nav-item py-0">
 | 
				
			||||||
@@ -20,12 +20,17 @@
 | 
				
			|||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
        </li>
 | 
					        </li>
 | 
				
			||||||
        <li class="nav-item py-0" *ngIf="selectedItemLayer$ | async as selectedItemLayer">
 | 
					        <li class="nav-item py-0" *ngIf="selectedItemLayer$ | async as selectedItemLayer">
 | 
				
			||||||
          <span><i class="fal fa-layer-group" aria-hidden="true"></i> <span i18n>Data</span><span class="slideButton"><a href="#" title="Compare" class="btn btn-light btn-sm" (click)="handleToggleShowDatalayerSlide($event)"><i class="fal fa-sliders-h-square"></i></a></span></span>
 | 
					          <span><i class="fal fa-layer-group" aria-hidden="true"></i> <span i18n>Overlay slider</span><span class="slideButton"><a href="#" title="Compare" class="btn btn-light btn-sm" (click)="handleToggleShowDatalayerSlide($event)"><i class="fal fa-sliders-h-square"></i></a></span></span>
 | 
				
			||||||
          <div class="mb-4">
 | 
					          <div class="mb-4">
 | 
				
			||||||
            <fm-map-layer-list [dataLayers]="true" [itemLayers]="[selectedItemLayer]" [selectedLayer]="selectedItemLayer" (onToggleVisibility)="handleOnToggleVisibility($event)" (onSetOpacity)="handleOnSetOpacity($event)" (onZoomToExtent)="handleZoomToExtent($event)" (onSelectLayer)="handleSelectOverlayLayer($event)"></fm-map-layer-list>
 | 
					            <fm-map-layer-list [dataLayers]="true" [itemLayers]="[selectedItemLayer]" [selectedLayer]="selectedItemLayer" (onToggleVisibility)="handleOnToggleVisibility($event)" (onSetOpacity)="handleOnSetOpacity($event)" (onZoomToExtent)="handleZoomToExtent($event)" (onSelectLayer)="handleSelectOverlayLayer($event)"></fm-map-layer-list>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
        </li>
 | 
					        </li>
 | 
				
			||||||
 | 
					        <li class="nav-item py-0">
 | 
				
			||||||
 | 
					          <span><i class="fal fa-layer-group" aria-hidden="true"></i> <span i18n>Aerial photos</span></span>
 | 
				
			||||||
 | 
					          <div  class="mb-4">
 | 
				
			||||||
 | 
					            <fm-map-layer-list [baseLayers]="true" [itemLayers]="aerialMaps|async" [selectedLayer]="selectedBaseLayer|async" (onSelectLayer)="handleSelectBaseLayer($event)"></fm-map-layer-list>
 | 
				
			||||||
 | 
					          </div>
 | 
				
			||||||
 | 
					        </li>
 | 
				
			||||||
      </ul>
 | 
					      </ul>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@ import { Store } from '@ngrx/store';
 | 
				
			|||||||
import * as mapReducers from '../../reducers/map.reducer';
 | 
					import * as mapReducers from '../../reducers/map.reducer';
 | 
				
			||||||
import * as mapActions from '../../actions/map.actions';
 | 
					import * as mapActions from '../../actions/map.actions';
 | 
				
			||||||
import {createEmpty,extend } from 'ol/extent';
 | 
					import {createEmpty,extend } from 'ol/extent';
 | 
				
			||||||
import { Observable } from 'rxjs';
 | 
					import { filter, map, Observable } from 'rxjs';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Component({
 | 
					@Component({
 | 
				
			||||||
  selector: 'fm-map-layer-switcher',
 | 
					  selector: 'fm-map-layer-switcher',
 | 
				
			||||||
@@ -17,7 +17,8 @@ export class LayerSwitcher  implements OnInit,OnChanges{
 | 
				
			|||||||
  public overlayLayers: Observable<Array<IItemLayer>>;
 | 
					  public overlayLayers: Observable<Array<IItemLayer>>;
 | 
				
			||||||
  public selectedOverlayLayer: Observable<IItemLayer>;
 | 
					  public selectedOverlayLayer: Observable<IItemLayer>;
 | 
				
			||||||
  public selectedItemLayer$: Observable<IItemLayer>;
 | 
					  public selectedItemLayer$: Observable<IItemLayer>;
 | 
				
			||||||
  public baseLayers: Observable<Array<IItemLayer>>;
 | 
					  public baseMaps: Observable<Array<IItemLayer>>;
 | 
				
			||||||
 | 
					  public aerialMaps: Observable<Array<IItemLayer>>;
 | 
				
			||||||
  public selectedBaseLayer: Observable<IItemLayer>;
 | 
					  public selectedBaseLayer: Observable<IItemLayer>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor( private store: Store<mapReducers.State>) {
 | 
					  constructor( private store: Store<mapReducers.State>) {
 | 
				
			||||||
@@ -26,7 +27,8 @@ export class LayerSwitcher  implements OnInit,OnChanges{
 | 
				
			|||||||
  ngOnInit() { 
 | 
					  ngOnInit() { 
 | 
				
			||||||
    this.overlayLayers = this.store.select(mapReducers.selectGetOverlayLayers);
 | 
					    this.overlayLayers = this.store.select(mapReducers.selectGetOverlayLayers);
 | 
				
			||||||
    this.selectedOverlayLayer = this.store.select(mapReducers.selectGetSelectedOverlayLayer);
 | 
					    this.selectedOverlayLayer = this.store.select(mapReducers.selectGetSelectedOverlayLayer);
 | 
				
			||||||
    this.baseLayers = this.store.select(mapReducers.selectGetBaseLayers);
 | 
					    this.baseMaps = this.store.select(mapReducers.selectGetBaseMaps);
 | 
				
			||||||
 | 
					    this.aerialMaps = this.store.select(mapReducers.selectGetArealMaps);
 | 
				
			||||||
    this.selectedBaseLayer = this.store.select(mapReducers.selectGetSelectedBaseLayer);
 | 
					    this.selectedBaseLayer = this.store.select(mapReducers.selectGetSelectedBaseLayer);
 | 
				
			||||||
    this.selectedItemLayer$ = this.store.select(mapReducers.selectGetSelectedItemLayer)
 | 
					    this.selectedItemLayer$ = this.store.select(mapReducers.selectGetSelectedItemLayer)
 | 
				
			||||||
    this.showLayerSwitcher = this.store.select(mapReducers.selectGetShowLayerSwitcher);
 | 
					    this.showLayerSwitcher = this.store.select(mapReducers.selectGetShowLayerSwitcher);
 | 
				
			||||||
@@ -83,3 +85,4 @@ export class LayerSwitcher  implements OnInit,OnChanges{
 | 
				
			|||||||
    event.preventDefault();
 | 
					    event.preventDefault();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
@@ -52,11 +52,20 @@ aol-map { position:absolute;width:100%;height:calc( 100vh );}
 | 
				
			|||||||
  pointer-events: none;
 | 
					  pointer-events: none;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@media screen and (max-width: 768px) {
 | 
				
			||||||
.control-container {
 | 
					  .control-container {
 | 
				
			||||||
  float:right;
 | 
					    margin-left: 1em;
 | 
				
			||||||
    margin-right: 1em;
 | 
					    margin-right: 1em;
 | 
				
			||||||
    pointer-events: all;
 | 
					    pointer-events: all;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@media screen and (min-width: 768px) {
 | 
				
			||||||
 | 
					  .control-container {    
 | 
				
			||||||
 | 
					    float: right;
 | 
				
			||||||
 | 
					    margin-right: 1em;
 | 
				
			||||||
 | 
					    pointer-events: all;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.fullscreen .viewport-container {
 | 
					.fullscreen .viewport-container {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,39 +1,39 @@
 | 
				
			|||||||
import { Component, OnInit, OnDestroy, HostListener, ViewChild, AfterViewInit,NgZone,ElementRef } from '@angular/core';
 | 
					import { Component, OnInit, OnDestroy, HostListener, ViewChild, AfterViewInit, NgZone, ElementRef } from '@angular/core';
 | 
				
			||||||
import { Location } from '@angular/common';
 | 
					import { Location } from '@angular/common';
 | 
				
			||||||
import { Observable, Subject, Subscription, from,of ,EMPTY } from 'rxjs';
 | 
					import { Observable, Subject, Subscription, from, of, EMPTY } from 'rxjs';
 | 
				
			||||||
import { withLatestFrom, switchMap,skip  } from 'rxjs/operators';
 | 
					import { withLatestFrom, switchMap, skip } from 'rxjs/operators';
 | 
				
			||||||
import { Router, ActivatedRoute, ParamMap } from '@angular/router';
 | 
					import { Router, ActivatedRoute, ParamMap } from '@angular/router';
 | 
				
			||||||
import { Store } from '@ngrx/store';
 | 
					import { Store } from '@ngrx/store';
 | 
				
			||||||
import { DeviceService } from '@farmmaps/common';
 | 
					import { DeviceService } from '@farmmaps/common';
 | 
				
			||||||
import {getRenderPixel} from 'ol/render';
 | 
					import { getRenderPixel } from 'ol/render';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Map
 | 
					// Map
 | 
				
			||||||
import * as mapReducers from '../../reducers/map.reducer';
 | 
					import * as mapReducers from '../../reducers/map.reducer';
 | 
				
			||||||
import * as mapActions from '../../actions/map.actions';
 | 
					import * as mapActions from '../../actions/map.actions';
 | 
				
			||||||
import { IMapState} from '../../models/map.state';
 | 
					import { IMapState } from '../../models/map.state';
 | 
				
			||||||
import { IClickedFeature} from '../../models/clicked.feature';
 | 
					import { IClickedFeature } from '../../models/clicked.feature';
 | 
				
			||||||
import { IQuery } from '../../reducers/map.reducer'
 | 
					import { IQuery } from '../../reducers/map.reducer'
 | 
				
			||||||
import { ISelectedFeatures } from '../../models/selected.features';
 | 
					import { ISelectedFeatures } from '../../models/selected.features';
 | 
				
			||||||
import { IItemLayer } from '../../models/item.layer';
 | 
					import { IItemLayer } from '../../models/item.layer';
 | 
				
			||||||
import { IListItem, IQueryState } from '@farmmaps/common';
 | 
					import { IListItem, IQueryState } from '@farmmaps/common';
 | 
				
			||||||
import { IPeriodState } from '../../models/period.state';
 | 
					import { IPeriodState } from '../../models/period.state';
 | 
				
			||||||
import {IStyles} from '../../models/style.cache';
 | 
					import { IStyles } from '../../models/style.cache';
 | 
				
			||||||
import { IDroppedFile } from '../aol/file-drop-target/file-drop-target.component';
 | 
					import { IDroppedFile } from '../aol/file-drop-target/file-drop-target.component';
 | 
				
			||||||
import { StateSerializerService } from '@farmmaps/common';
 | 
					import { StateSerializerService } from '@farmmaps/common';
 | 
				
			||||||
import { GeolocationService} from '../../services/geolocation.service';
 | 
					import { GeolocationService } from '../../services/geolocation.service';
 | 
				
			||||||
import { GeolocatorService } from '@farmmaps/common';
 | 
					import { GeolocatorService } from '@farmmaps/common';
 | 
				
			||||||
import {DeviceOrientationService} from '../../services/device-orientation.service';
 | 
					import { DeviceOrientationService } from '../../services/device-orientation.service';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// AppCommon
 | 
					// AppCommon
 | 
				
			||||||
import { ResumableFileUploadService, ItemTypeService } from '@farmmaps/common';
 | 
					import { ResumableFileUploadService, ItemTypeService } from '@farmmaps/common';
 | 
				
			||||||
import { IItemType, IItem } from '@farmmaps/common';
 | 
					import { IItemType, IItem } from '@farmmaps/common';
 | 
				
			||||||
import {commonReducers} from '@farmmaps/common';
 | 
					import { commonReducers } from '@farmmaps/common';
 | 
				
			||||||
import {commonActions} from '@farmmaps/common';
 | 
					import { commonActions } from '@farmmaps/common';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import {Feature} from 'ol';
 | 
					import { Feature } from 'ol';
 | 
				
			||||||
import {Geometry,Point,Circle} from 'ol/geom';
 | 
					import { Geometry, Point, Circle } from 'ol/geom';
 | 
				
			||||||
import {Extent,createEmpty,extend } from 'ol/extent';
 | 
					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';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -44,7 +44,7 @@ import * as style from 'ol/style';
 | 
				
			|||||||
  styleUrls: ['./map.component.scss']
 | 
					  styleUrls: ['./map.component.scss']
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
					export class MapComponent implements OnInit, OnDestroy, AfterViewInit {
 | 
				
			||||||
  title = 'Map';
 | 
					  title = 'Map';
 | 
				
			||||||
  public openedModalName$: Observable<string> = this.store.select(commonReducers.selectOpenedModalName);
 | 
					  public openedModalName$: Observable<string> = this.store.select(commonReducers.selectOpenedModalName);
 | 
				
			||||||
  public itemTypes$: Observable<{ [id: string]: IItemType }>;
 | 
					  public itemTypes$: Observable<{ [id: string]: IItemType }>;
 | 
				
			||||||
@@ -63,16 +63,16 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
  private stateSub: Subscription;
 | 
					  private stateSub: Subscription;
 | 
				
			||||||
  private queryStateSub: Subscription;
 | 
					  private queryStateSub: Subscription;
 | 
				
			||||||
  private querySub: Subscription;
 | 
					  private querySub: Subscription;
 | 
				
			||||||
  public parentCode$: Observable<string> =this.store.select(mapReducers.selectGetParentCode);
 | 
					  public parentCode$: Observable<string> = this.store.select(mapReducers.selectGetParentCode);
 | 
				
			||||||
  public panelVisible$: Observable<boolean> = this.store.select(mapReducers.selectGetPanelVisible);
 | 
					  public panelVisible$: Observable<boolean> = this.store.select(mapReducers.selectGetPanelVisible);
 | 
				
			||||||
  public panelCollapsed$: Observable<boolean> = this.store.select(mapReducers.selectGetPanelCollapsed);
 | 
					  public panelCollapsed$: Observable<boolean> = this.store.select(mapReducers.selectGetPanelCollapsed);
 | 
				
			||||||
  public panelExtraWide$: Observable<boolean> = this.store.select(mapReducers.selectGetPanelExtraWide);
 | 
					  public panelExtraWide$: Observable<boolean> = this.store.select(mapReducers.selectGetPanelExtraWide);
 | 
				
			||||||
  public selectedFeature$: Observable<Feature<Geometry>> = this.store.select(mapReducers.selectGetSelectedFeature);
 | 
					  public selectedFeature$: Observable<Feature<Geometry>> = this.store.select(mapReducers.selectGetSelectedFeature);
 | 
				
			||||||
  public clickedFeature: Subject<Feature<Geometry>> = new Subject<Feature<Geometry>>();
 | 
					  public clickedFeature: Subject<Feature<Geometry>> = new Subject<Feature<Geometry>>();
 | 
				
			||||||
  public selectedItem$: Observable<IItem> = this.store.select(mapReducers.selectGetSelectedItem);
 | 
					  public selectedItem$: Observable<IItem> = this.store.select(mapReducers.selectGetSelectedItem);
 | 
				
			||||||
  public parentItem$: Observable<IItem> =this.store.select(mapReducers.selectGetParentItem);
 | 
					  public parentItem$: Observable<IItem> = this.store.select(mapReducers.selectGetParentItem);
 | 
				
			||||||
  public queryState$: Observable<IQueryState> = this.store.select(mapReducers.selectGetQueryState);
 | 
					  public queryState$: Observable<IQueryState> = this.store.select(mapReducers.selectGetQueryState);
 | 
				
			||||||
  public state$:Observable<{mapState:IMapState,queryState:IQueryState}> = this.store.select(mapReducers.selectGetState);
 | 
					  public state$: Observable<{ mapState: IMapState, queryState: IQueryState }> = this.store.select(mapReducers.selectGetState);
 | 
				
			||||||
  public period$: Observable<IPeriodState> = this.store.select(mapReducers.selectGetPeriod);
 | 
					  public period$: Observable<IPeriodState> = this.store.select(mapReducers.selectGetPeriod);
 | 
				
			||||||
  public clearEnabled$: Observable<boolean> = this.store.select(mapReducers.selectGetClearEnabled);
 | 
					  public clearEnabled$: Observable<boolean> = this.store.select(mapReducers.selectGetClearEnabled);
 | 
				
			||||||
  public searchCollapsed$: Observable<boolean> = this.store.select(mapReducers.selectGetSearchCollapsed);
 | 
					  public searchCollapsed$: Observable<boolean> = this.store.select(mapReducers.selectGetSearchCollapsed);
 | 
				
			||||||
@@ -85,13 +85,15 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
  public baseLayersCollapsed = true;
 | 
					  public baseLayersCollapsed = true;
 | 
				
			||||||
  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 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;
 | 
				
			||||||
  public noContent = false;
 | 
					  public noContent = false;
 | 
				
			||||||
  public overrideSelectedItemLayer = false;
 | 
					  public overrideSelectedItemLayer = false;
 | 
				
			||||||
  public overrideOverlayLayers = false;
 | 
					  public overrideOverlayLayers = false;
 | 
				
			||||||
 | 
					  public hideShowLayerValues = false;
 | 
				
			||||||
 | 
					  public const
 | 
				
			||||||
  public dataLayerSlideValue = 50;
 | 
					  public dataLayerSlideValue = 50;
 | 
				
			||||||
  public dataLayerSlideEnabled = false;
 | 
					  public dataLayerSlideEnabled = false;
 | 
				
			||||||
  private visibleAreaBottom = 0;
 | 
					  private visibleAreaBottom = 0;
 | 
				
			||||||
@@ -110,20 +112,21 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
    private geolocationService: GeolocationService,
 | 
					    private geolocationService: GeolocationService,
 | 
				
			||||||
    private geolocaterService: GeolocatorService,
 | 
					    private geolocaterService: GeolocatorService,
 | 
				
			||||||
    private zone: NgZone,
 | 
					    private zone: NgZone,
 | 
				
			||||||
    private deviceorientationService:DeviceOrientationService,
 | 
					    private deviceorientationService: DeviceOrientationService,
 | 
				
			||||||
    public devicesService:DeviceService) {
 | 
					    public devicesService: DeviceService) {
 | 
				
			||||||
      if(route && route.snapshot && route.snapshot.data && route.snapshot.data["fm-map-map"]) {
 | 
					    if (route && route.snapshot && route.snapshot.data && route.snapshot.data["fm-map-map"]) {
 | 
				
			||||||
      const params = route.snapshot.data["fm-map-map"];
 | 
					      const params = route.snapshot.data["fm-map-map"];
 | 
				
			||||||
      this.overrideSelectedItemLayer = params["overrideSelectedItemlayer"] ? params["overrideSelectedItemlayer"] : false;
 | 
					      this.overrideSelectedItemLayer = params["overrideSelectedItemlayer"] ? params["overrideSelectedItemlayer"] : false;
 | 
				
			||||||
      this.overrideOverlayLayers = params["overrideOverlayLayers"] ? params["overrideOverlayLayers"] : false;
 | 
					      this.overrideOverlayLayers = params["overrideOverlayLayers"] ? params["overrideOverlayLayers"] : false;
 | 
				
			||||||
 | 
					      this.hideShowLayerValues = params["hideShowLayerValues"] ? params["hideShowLayerValues"] : false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
      this.querySub = this.query$.pipe(skip(1), withLatestFrom(this.mapState$)).subscribe(([query,mapState]) =>{
 | 
					    this.querySub = this.query$.pipe(skip(1), withLatestFrom(this.mapState$)).subscribe(([query, mapState]) => {
 | 
				
			||||||
        if(query && query.querystate) {
 | 
					      if (query && query.querystate) {
 | 
				
			||||||
        let newQueryState = tassign(mapReducers.initialQueryState);
 | 
					        let newQueryState = tassign(mapReducers.initialQueryState);
 | 
				
			||||||
        //console.debug(`Do Query`);
 | 
					        //console.debug(`Do Query`);
 | 
				
			||||||
          const urlparts=[];
 | 
					        const urlparts = [];
 | 
				
			||||||
        if (query.querystate.itemCode && query.querystate.itemCode != "") {
 | 
					        if (query.querystate.itemCode && query.querystate.itemCode != "") {
 | 
				
			||||||
            if(query.querystate.itemType && query.querystate.itemType!= "") {
 | 
					          if (query.querystate.itemType && query.querystate.itemType != "") {
 | 
				
			||||||
            const itemType = this.itemTypeService.itemTypes[query.querystate.itemType];
 | 
					            const itemType = this.itemTypeService.itemTypes[query.querystate.itemType];
 | 
				
			||||||
            if (itemType && itemType.viewer && itemType.viewer == "edit_in_editor" && itemType.editor) {
 | 
					            if (itemType && itemType.viewer && itemType.viewer == "edit_in_editor" && itemType.editor) {
 | 
				
			||||||
              urlparts.push('/editor');
 | 
					              urlparts.push('/editor');
 | 
				
			||||||
@@ -133,12 +136,12 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            newQueryState= query.querystate;
 | 
					          newQueryState = query.querystate;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
          if(urlparts.length==0 ) {
 | 
					        if (urlparts.length == 0) {
 | 
				
			||||||
          newQueryState.itemCode = query.querystate.itemCode;
 | 
					          newQueryState.itemCode = query.querystate.itemCode;
 | 
				
			||||||
          this.zone.run(() => {
 | 
					          this.zone.run(() => {
 | 
				
			||||||
              this.replaceUrl(mapState,newQueryState,query.replace);             
 | 
					            this.replaceUrl(mapState, newQueryState, query.replace);
 | 
				
			||||||
          })
 | 
					          })
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          this.router.navigate(urlparts);
 | 
					          this.router.navigate(urlparts);
 | 
				
			||||||
@@ -161,19 +164,19 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handlePanelResize(resizeTop:number) {
 | 
					  handlePanelResize(resizeTop: number) {
 | 
				
			||||||
    if(resizeTop==100 || !this.devicesService.IsMobile() ) {
 | 
					    if (resizeTop == 100 || !this.devicesService.IsMobile()) {
 | 
				
			||||||
      this.visibleAreaBottom=0;
 | 
					      this.visibleAreaBottom = 0;
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      this.visibleAreaBottom=100-resizeTop;
 | 
					      this.visibleAreaBottom = 100 - resizeTop;
 | 
				
			||||||
      if(this.visibleAreaBottom>60) {
 | 
					      if (this.visibleAreaBottom > 60) {
 | 
				
			||||||
        this.visibleAreaBottom=60;
 | 
					        this.visibleAreaBottom = 60;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  bottom(panelVisible:boolean) {
 | 
					  bottom(panelVisible: boolean) {
 | 
				
			||||||
    if(panelVisible) {
 | 
					    if (panelVisible) {
 | 
				
			||||||
      return this.visibleAreaBottom + '%';
 | 
					      return this.visibleAreaBottom + '%';
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      return "0%";
 | 
					      return "0%";
 | 
				
			||||||
@@ -189,7 +192,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleFileDropped(droppedFile: IDroppedFile) {
 | 
					  handleFileDropped(droppedFile: IDroppedFile) {
 | 
				
			||||||
    this.uploadService.addFiles(droppedFile.files, droppedFile.event, { parentCode:droppedFile.parentCode, geometry:droppedFile.geometry });
 | 
					    this.uploadService.addFiles(droppedFile.files, droppedFile.event, { parentCode: droppedFile.parentCode, geometry: droppedFile.geometry });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleFeatureClick(feature: Feature<Geometry>) {
 | 
					  handleFeatureClick(feature: Feature<Geometry>) {
 | 
				
			||||||
@@ -205,26 +208,26 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
    this.store.dispatch(new mapActions.DoQuery(queryState));
 | 
					    this.store.dispatch(new mapActions.DoQuery(queryState));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleSidepaneloutletActivate(component:any) {
 | 
					  handleSidepaneloutletActivate(component: any) {
 | 
				
			||||||
   if(component && component.hasOwnProperty('clickedFeature')) {
 | 
					    if (component && component.hasOwnProperty('clickedFeature')) {
 | 
				
			||||||
      (component as IClickedFeature).clickedFeature = this.clickedFeature;
 | 
					      (component as IClickedFeature).clickedFeature = this.clickedFeature;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
   if(component && component.hasOwnProperty('extrawide')) {
 | 
					    if (component && component.hasOwnProperty('extrawide')) {
 | 
				
			||||||
      this.store.dispatch(new mapActions.SetPanelExtraWide(true));
 | 
					      this.store.dispatch(new mapActions.SetPanelExtraWide(true));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleSidepaneloutletDeactivate(component:any) {
 | 
					  handleSidepaneloutletDeactivate(component: any) {
 | 
				
			||||||
    if(component && component.hasOwnProperty('clickedFeature')) {
 | 
					    if (component && component.hasOwnProperty('clickedFeature')) {
 | 
				
			||||||
      (component as IClickedFeature).clickedFeature = null;
 | 
					      (component as IClickedFeature).clickedFeature = null;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if(component && component.hasOwnProperty('extrawide')) {
 | 
					    if (component && component.hasOwnProperty('extrawide')) {
 | 
				
			||||||
      this.store.dispatch(new mapActions.SetPanelExtraWide(false));
 | 
					      this.store.dispatch(new mapActions.SetPanelExtraWide(false));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handlePrerender(event:any) {
 | 
					  handlePrerender(event: any) {
 | 
				
			||||||
    if(!this.dataLayerSlideEnabled) return;
 | 
					    if (!this.dataLayerSlideEnabled) return;
 | 
				
			||||||
    const ctx = event.context;
 | 
					    const ctx = event.context;
 | 
				
			||||||
    const mapSize = this.map.instance.getSize();
 | 
					    const mapSize = this.map.instance.getSize();
 | 
				
			||||||
    const width = mapSize[0] * (this.dataLayerSlideValue / 100);
 | 
					    const width = mapSize[0] * (this.dataLayerSlideValue / 100);
 | 
				
			||||||
@@ -243,7 +246,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
    ctx.clip();
 | 
					    ctx.clip();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleSlideChange(event:any) {
 | 
					  handleSlideChange(event: any) {
 | 
				
			||||||
    this.dataLayerSlideValue = event.target.value;
 | 
					    this.dataLayerSlideValue = event.target.value;
 | 
				
			||||||
    this.map.instance.render();
 | 
					    this.map.instance.render();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
@@ -252,63 +255,65 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
    this.initialized = false;
 | 
					    this.initialized = false;
 | 
				
			||||||
    //console.debug("Init");
 | 
					    //console.debug("Init");
 | 
				
			||||||
    this.store.dispatch(new mapActions.Clear());
 | 
					    this.store.dispatch(new mapActions.Clear());
 | 
				
			||||||
    this.selectedFeatures$.next({x:0,y:0,features:[]});
 | 
					    this.selectedFeatures$.next({ x: 0, y: 0, features: [] });
 | 
				
			||||||
    this.selectedFeatures$.next(null);
 | 
					    this.selectedFeatures$.next(null);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  initCustomStyles() {
 | 
					  initCustomStyles() {
 | 
				
			||||||
    this.store.dispatch(new mapActions.SetStyle('vnd.farmmaps.itemtype.layer',new style.Style({
 | 
					    this.store.dispatch(new mapActions.SetStyle('vnd.farmmaps.itemtype.layer', new style.Style({
 | 
				
			||||||
      stroke: new style.Stroke({
 | 
					      stroke: new style.Stroke({
 | 
				
			||||||
        color: 'red',
 | 
					        color: 'red',
 | 
				
			||||||
        lineDash: [ 5,5],
 | 
					        lineDash: [5, 5],
 | 
				
			||||||
        width: 1
 | 
					        width: 1
 | 
				
			||||||
      }),
 | 
					      }),
 | 
				
			||||||
      geometry:(feature) =>feature.getGeometry()
 | 
					      geometry: (feature) => feature.getGeometry()
 | 
				
			||||||
    })));
 | 
					    })));
 | 
				
			||||||
    this.store.dispatch(new mapActions.SetStyle('vnd.farmmaps.itemtype.layer_selected',new style.Style({
 | 
					    this.store.dispatch(new mapActions.SetStyle('vnd.farmmaps.itemtype.layer_selected', new style.Style({
 | 
				
			||||||
      stroke: new style.Stroke({
 | 
					      stroke: new style.Stroke({
 | 
				
			||||||
        color: 'red',
 | 
					        color: 'red',
 | 
				
			||||||
        lineDash: [ 5,5],
 | 
					        lineDash: [5, 5],
 | 
				
			||||||
        width: 3
 | 
					        width: 3
 | 
				
			||||||
      }),
 | 
					      }),
 | 
				
			||||||
      geometry:(feature) =>feature.getGeometry()
 | 
					      geometry: (feature) => feature.getGeometry()
 | 
				
			||||||
    })));
 | 
					    })));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  round(value:number,decimals:number):number {
 | 
					  round(value: number, decimals: number): number {
 | 
				
			||||||
    const d = Math.pow(10, decimals);
 | 
					    const d = Math.pow(10, decimals);
 | 
				
			||||||
    return Math.round((value + Number.EPSILON)*d)/d;
 | 
					    return Math.round((value + Number.EPSILON) * d) / d;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  getMapStateFromUrl(params:ParamMap):IMapState {
 | 
					  getMapStateFromUrl(params: ParamMap): IMapState {
 | 
				
			||||||
    const hasUrlmapState = params.has("xCenter") && params.has("yCenter");
 | 
					    const hasUrlmapState = params.has("xCenter") && params.has("yCenter");
 | 
				
			||||||
    if (hasUrlmapState) {
 | 
					    if (hasUrlmapState) {
 | 
				
			||||||
      const xCenter = parseFloat(params.get("xCenter"));
 | 
					      const xCenter = parseFloat(params.get("xCenter"));
 | 
				
			||||||
      const yCenter = parseFloat(params.get("yCenter"));
 | 
					      const yCenter = parseFloat(params.get("yCenter"));
 | 
				
			||||||
      const zoom = parseFloat(params.get("zoom"));
 | 
					      const zoom = parseFloat(params.get("zoom"));
 | 
				
			||||||
      const rotation = parseFloat(params.get("rotation"));
 | 
					      const rotation = parseFloat(params.get("rotation"));
 | 
				
			||||||
      const baseLayer = params.get("baseLayer")?params.get("baseLayer"):"";
 | 
					      const baseLayer = params.get("baseLayer") ? params.get("baseLayer") : "";
 | 
				
			||||||
      const newMapState = {zoom: zoom, rotation: rotation, xCenter: xCenter, yCenter: yCenter, baseLayerCode: baseLayer };
 | 
					      const newMapState = { zoom: zoom, rotation: rotation, xCenter: xCenter, yCenter: yCenter, baseLayerCode: baseLayer };
 | 
				
			||||||
      return newMapState;
 | 
					      return newMapState;
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      return null;
 | 
					      return null;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  normalizeMapState(mapState:IMapState):IMapState {
 | 
					  normalizeMapState(mapState: IMapState): IMapState {
 | 
				
			||||||
    if(!mapState) return null;
 | 
					    if (!mapState) return null;
 | 
				
			||||||
    return {zoom: this.round(mapState.zoom,0),
 | 
					    return {
 | 
				
			||||||
      rotation: this.round(mapState.rotation,2),
 | 
					      zoom: this.round(mapState.zoom, 0),
 | 
				
			||||||
      xCenter: this.round(mapState.xCenter,5),
 | 
					      rotation: this.round(mapState.rotation, 2),
 | 
				
			||||||
      yCenter: this.round(mapState.yCenter,5),
 | 
					      xCenter: this.round(mapState.xCenter, 5),
 | 
				
			||||||
      baseLayerCode: mapState.baseLayerCode };
 | 
					      yCenter: this.round(mapState.yCenter, 5),
 | 
				
			||||||
 | 
					      baseLayerCode: mapState.baseLayerCode
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  serializeMapState(mapState:IMapState):string {
 | 
					  serializeMapState(mapState: IMapState): string {
 | 
				
			||||||
    return JSON.stringify(this.normalizeMapState(mapState));
 | 
					    return JSON.stringify(this.normalizeMapState(mapState));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  getQueryStateFromUrl(params:ParamMap):IQueryState {
 | 
					  getQueryStateFromUrl(params: ParamMap): IQueryState {
 | 
				
			||||||
    if (params.has("queryState")) {
 | 
					    if (params.has("queryState")) {
 | 
				
			||||||
      const queryState = params.get("queryState");
 | 
					      const queryState = params.get("queryState");
 | 
				
			||||||
      let newQueryState = tassign(mapReducers.initialQueryState);
 | 
					      let newQueryState = tassign(mapReducers.initialQueryState);
 | 
				
			||||||
@@ -323,10 +328,10 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  ngAfterViewInit() {
 | 
					  ngAfterViewInit() {
 | 
				
			||||||
    //console.debug("View init");
 | 
					    //console.debug("View init");
 | 
				
			||||||
    this.noContent=true;
 | 
					    this.noContent = true;
 | 
				
			||||||
    this.route.children.forEach((entry) => {
 | 
					    this.route.children.forEach((entry) => {
 | 
				
			||||||
      if(entry.outlet=="primary") {
 | 
					      if (entry.outlet == "primary") {
 | 
				
			||||||
        this.noContent=false;
 | 
					        this.noContent = false;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -336,25 +341,25 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    const urlMapState = this.getMapStateFromUrl(this.route.snapshot.paramMap);
 | 
					    const urlMapState = this.getMapStateFromUrl(this.route.snapshot.paramMap);
 | 
				
			||||||
    const urlQueryState = this.getQueryStateFromUrl(this.route.snapshot.paramMap);
 | 
					    const urlQueryState = this.getQueryStateFromUrl(this.route.snapshot.paramMap);
 | 
				
			||||||
      if(urlQueryState && urlMapState && this.noContent) {
 | 
					    if (urlQueryState && urlMapState && this.noContent) {
 | 
				
			||||||
        this.store.dispatch(new mapActions.SetState(urlMapState,urlQueryState));
 | 
					      this.store.dispatch(new mapActions.SetState(urlMapState, urlQueryState));
 | 
				
			||||||
        window.localStorage.setItem("FarmMapsCommonMap_mapState",this.serializeMapState(urlMapState));
 | 
					      window.localStorage.setItem("FarmMapsCommonMap_mapState", this.serializeMapState(urlMapState));
 | 
				
			||||||
      } else if(urlQueryState && this.noContent) {
 | 
					    } else if (urlQueryState && this.noContent) {
 | 
				
			||||||
      this.store.dispatch(new mapActions.SetQueryState(urlQueryState));
 | 
					      this.store.dispatch(new mapActions.SetQueryState(urlQueryState));
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      this.store.dispatch(new mapActions.SetReplaceUrl(true));
 | 
					      this.store.dispatch(new mapActions.SetReplaceUrl(true));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      this.paramSub = this.route.paramMap.pipe(withLatestFrom(this.state$),switchMap(([params,state]) => {
 | 
					    this.paramSub = this.route.paramMap.pipe(withLatestFrom(this.state$), switchMap(([params, state]) => {
 | 
				
			||||||
         if(this.initialized && this.noContent) {
 | 
					      if (this.initialized && this.noContent) {
 | 
				
			||||||
        const urlQueryState = this.getQueryStateFromUrl(params);
 | 
					        const urlQueryState = this.getQueryStateFromUrl(params);
 | 
				
			||||||
          if( this.serializeService.serialize(state.queryState) != this.serializeService.serialize(urlQueryState)) {
 | 
					        if (this.serializeService.serialize(state.queryState) != this.serializeService.serialize(urlQueryState)) {
 | 
				
			||||||
            return of(new mapActions.SetState(state.mapState,urlQueryState));
 | 
					          return of(new mapActions.SetState(state.mapState, urlQueryState));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      return EMPTY;
 | 
					      return EMPTY;
 | 
				
			||||||
    })).subscribe((action) => {
 | 
					    })).subscribe((action) => {
 | 
				
			||||||
        if(action) {
 | 
					      if (action) {
 | 
				
			||||||
        this.zone.run(() => {
 | 
					        this.zone.run(() => {
 | 
				
			||||||
          //console.debug("Url to state");
 | 
					          //console.debug("Url to state");
 | 
				
			||||||
          this.store.dispatch(action);
 | 
					          this.store.dispatch(action);
 | 
				
			||||||
@@ -366,22 +371,22 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    this.stateSub = this.state$.pipe(switchMap((state) => {
 | 
					    this.stateSub = this.state$.pipe(switchMap((state) => {
 | 
				
			||||||
      const newUrl = this.serializeMapState(state.mapState) + "_" + this.serializeService.serialize(state.queryState);
 | 
					      const newUrl = this.serializeMapState(state.mapState) + "_" + this.serializeService.serialize(state.queryState);
 | 
				
			||||||
      if(this.lastUrl!=newUrl) {
 | 
					      if (this.lastUrl != newUrl) {
 | 
				
			||||||
        this.lastUrl=newUrl;
 | 
					        this.lastUrl = newUrl;
 | 
				
			||||||
        return of(state);
 | 
					        return of(state);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      else {
 | 
					      else {
 | 
				
			||||||
        return of(null);
 | 
					        return of(null);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    })).subscribe((newUrlState: any) => {
 | 
					    })).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);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    this.initialized = true;
 | 
					    this.initialized = true;
 | 
				
			||||||
    this.showDataLayerSlide$.subscribe((v) => {
 | 
					    this.showDataLayerSlide$.subscribe((v) => {
 | 
				
			||||||
      this.dataLayerSlideEnabled=v;
 | 
					      this.dataLayerSlideEnabled = v;
 | 
				
			||||||
      this.map.instance.render();
 | 
					      this.map.instance.render();
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    this.store.select(mapReducers.selectGetViewEnabled).subscribe((v) => {
 | 
					    this.store.select(mapReducers.selectGetViewEnabled).subscribe((v) => {
 | 
				
			||||||
@@ -401,7 +406,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
    this.store.dispatch(new commonActions.ToggleMenu());
 | 
					    this.store.dispatch(new commonActions.ToggleMenu());
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleToggleBaseLayers(event:MouseEvent) {
 | 
					  handleToggleBaseLayers(event: MouseEvent) {
 | 
				
			||||||
    this.baseLayersCollapsed = !this.baseLayersCollapsed;
 | 
					    this.baseLayersCollapsed = !this.baseLayersCollapsed;
 | 
				
			||||||
    event.preventDefault();
 | 
					    event.preventDefault();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
@@ -418,30 +423,30 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  replaceUrl(mapState: IMapState, queryState: IQueryState, replace = true) {
 | 
					  replaceUrl(mapState: IMapState, queryState: IQueryState, replace = true) {
 | 
				
			||||||
      if(this.noContent) {
 | 
					    if (this.noContent) {
 | 
				
			||||||
      const newMapState = this.serializeMapState(mapState);
 | 
					      const newMapState = this.serializeMapState(mapState);
 | 
				
			||||||
      const newQueryState = this.serializeService.serialize(queryState);
 | 
					      const newQueryState = this.serializeService.serialize(queryState);
 | 
				
			||||||
      const currentMapState = this.serializeMapState(this.getMapStateFromUrl(this.route.snapshot.paramMap));
 | 
					      const currentMapState = this.serializeMapState(this.getMapStateFromUrl(this.route.snapshot.paramMap));
 | 
				
			||||||
      const urlQueryState = this.getQueryStateFromUrl(this.route.snapshot.paramMap);
 | 
					      const urlQueryState = this.getQueryStateFromUrl(this.route.snapshot.paramMap);
 | 
				
			||||||
        const currentQueryState = urlQueryState==null?"":this.serializeService.serialize(urlQueryState);
 | 
					      const currentQueryState = urlQueryState == null ? "" : this.serializeService.serialize(urlQueryState);
 | 
				
			||||||
        if(mapState.baseLayerCode!="" && ((newMapState!= currentMapState)  || (newQueryState!=currentQueryState))) {
 | 
					      if (mapState.baseLayerCode != "" && ((newMapState != currentMapState) || (newQueryState != currentQueryState))) {
 | 
				
			||||||
          const parts =["."];
 | 
					        const parts = ["."];
 | 
				
			||||||
        parts.push(mapState.xCenter.toFixed(5));
 | 
					        parts.push(mapState.xCenter.toFixed(5));
 | 
				
			||||||
        parts.push(mapState.yCenter.toFixed(5));
 | 
					        parts.push(mapState.yCenter.toFixed(5));
 | 
				
			||||||
          parts.push( mapState.zoom.toFixed(0));
 | 
					        parts.push(mapState.zoom.toFixed(0));
 | 
				
			||||||
          parts.push( mapState.rotation.toFixed(2));        
 | 
					        parts.push(mapState.rotation.toFixed(2));
 | 
				
			||||||
        parts.push(mapState.baseLayerCode);
 | 
					        parts.push(mapState.baseLayerCode);
 | 
				
			||||||
          parts.push( this.serializeService.serialize(queryState));
 | 
					        parts.push(this.serializeService.serialize(queryState));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        //console.debug("Replace url",parts);
 | 
					        //console.debug("Replace url",parts);
 | 
				
			||||||
          this.router.navigate(parts, { replaceUrl: replace,relativeTo:this.route.parent });
 | 
					        this.router.navigate(parts, { replaceUrl: replace, relativeTo: this.route.parent });
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleOnMoveEnd(event) {
 | 
					  handleOnMoveEnd(event) {
 | 
				
			||||||
    if(this.initialized && this.viewEnabled) {
 | 
					    if (this.initialized && this.viewEnabled) {
 | 
				
			||||||
      this.zone.run(() =>{
 | 
					      this.zone.run(() => {
 | 
				
			||||||
        //console.debug("Move end");
 | 
					        //console.debug("Move end");
 | 
				
			||||||
        const map = event.map;
 | 
					        const map = event.map;
 | 
				
			||||||
        const view = map.getView();
 | 
					        const view = map.getView();
 | 
				
			||||||
@@ -466,17 +471,19 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  handleOnMouseDown(event: MouseEvent) {
 | 
					  handleOnMouseDown(event: MouseEvent) {
 | 
				
			||||||
    event.stopPropagation();
 | 
					    event.stopPropagation();
 | 
				
			||||||
    this.zone.run(() =>{
 | 
					    this.zone.run(() => {
 | 
				
			||||||
      this.store.dispatch(new commonActions.CloseAll());
 | 
					      this.store.dispatch(new commonActions.CloseAll());
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleShowLayerValues(event: MouseEvent) {
 | 
					  handleShowLayerValues(event: MouseEvent) {
 | 
				
			||||||
 | 
					    if (!this.hideShowLayerValues) {
 | 
				
			||||||
      event.stopPropagation();
 | 
					      event.stopPropagation();
 | 
				
			||||||
    this.zone.run(() =>{
 | 
					      this.zone.run(() => {
 | 
				
			||||||
        this.store.dispatch(new mapActions.ToggleLayerValuesEnabled());
 | 
					        this.store.dispatch(new mapActions.ToggleLayerValuesEnabled());
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleOnDownload(event) {
 | 
					  handleOnDownload(event) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -491,10 +498,10 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleOnToggleVisibility(itemLayer: IItemLayer) {
 | 
					  handleOnToggleVisibility(itemLayer: IItemLayer) {
 | 
				
			||||||
    this.store.dispatch(new mapActions.SetVisibility(itemLayer,!itemLayer.visible));
 | 
					    this.store.dispatch(new mapActions.SetVisibility(itemLayer, !itemLayer.visible));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleOnSetOpacity(event:{ layer: IItemLayer,opacity:number }) {
 | 
					  handleOnSetOpacity(event: { layer: IItemLayer, opacity: number }) {
 | 
				
			||||||
    this.store.dispatch(new mapActions.SetOpacity(event.layer, event.opacity));
 | 
					    this.store.dispatch(new mapActions.SetOpacity(event.layer, event.opacity));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -514,16 +521,16 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
 | 
				
			|||||||
    this.store.dispatch(new mapActions.SelectOverlayLayer(itemLayer));
 | 
					    this.store.dispatch(new mapActions.SelectOverlayLayer(itemLayer));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handlePeriodChange(period:IPeriodState) {
 | 
					  handlePeriodChange(period: IPeriodState) {
 | 
				
			||||||
    this.store.dispatch(new mapActions.SetPeriod(period));
 | 
					    this.store.dispatch(new mapActions.SetPeriod(period));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleCitySearch(location:string) {
 | 
					  handleCitySearch(location: string) {
 | 
				
			||||||
    this.geolocaterService.geocode(location).subscribe(locations => {
 | 
					    this.geolocaterService.geocode(location).subscribe(locations => {
 | 
				
			||||||
      if( locations.length > 0) {
 | 
					      if (locations.length > 0) {
 | 
				
			||||||
        const point = new  Point([locations[0].coordinates.lon,locations[0].coordinates.lat]);
 | 
					        const point = new Point([locations[0].coordinates.lon, locations[0].coordinates.lat]);
 | 
				
			||||||
        point.transform('EPSG:4326', 'EPSG:3857');
 | 
					        point.transform('EPSG:4326', 'EPSG:3857');
 | 
				
			||||||
        const circle = new Circle(point.getCoordinates(),5000);// 
 | 
					        const circle = new Circle(point.getCoordinates(), 5000);// 
 | 
				
			||||||
        const extent = createEmpty();
 | 
					        const extent = createEmpty();
 | 
				
			||||||
        extend(extent, circle.getExtent());
 | 
					        extend(extent, circle.getExtent());
 | 
				
			||||||
        this.store.dispatch(new mapActions.SetExtent(extent))
 | 
					        this.store.dispatch(new mapActions.SetExtent(extent))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,7 @@ export class SelectedItemCropfieldComponent extends AbstractSelectedItemComponen
 | 
				
			|||||||
  public items: Observable<IListItem[]>;
 | 
					  public items: Observable<IListItem[]>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService, location: Location, router: Router, private itemService$: ItemService,private folderService$: FolderService) {
 | 
					  constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService, location: Location, router: Router, private itemService$: ItemService,private folderService$: FolderService) {
 | 
				
			||||||
    super(store, itemTypeService,location,router);
 | 
					    super(store, itemTypeService, itemService$, location,router);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  areaInHa(item:IItem):number {
 | 
					  areaInHa(item:IItem):number {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,8 @@
 | 
				
			|||||||
        <h2 *ngIf="parentOfItemType('vnd.farmmaps.itemtype.cropfield')">{{parentItem.name}}</h2>
 | 
					        <h2 *ngIf="parentOfItemType('vnd.farmmaps.itemtype.cropfield')">{{parentItem.name}}</h2>
 | 
				
			||||||
        <h1>{{item.name}}</h1>
 | 
					        <h1>{{item.name}}</h1>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <div class="legend-container" *ngIf="item?.data.layers;let layers">
 | 
					      <ng-container *ngIf="item?.data.layers;let layers">
 | 
				
			||||||
 | 
					        <div class="legend-container">
 | 
				
			||||||
          <div class="card menu-card">
 | 
					          <div class="card menu-card">
 | 
				
			||||||
            <div *ngIf="layers.length>1">
 | 
					            <div *ngIf="layers.length>1">
 | 
				
			||||||
              <select (change)="onLayerChanged($event.target.value)">
 | 
					              <select (change)="onLayerChanged($event.target.value)">
 | 
				
			||||||
@@ -26,9 +27,11 @@
 | 
				
			|||||||
              <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>
 | 
					            <li><fm-item-link class="text-primary p-0" [itemCode]="item.code" pathSuffix="data" [showText]="true"></fm-item-link></li>
 | 
				
			||||||
 | 
					            <li><a href="#" (click)="download($event,item,layers,itemLayer.layerIndex)"><i class="fal fa-download" aria-hidden="true" i18n-title title="Download"></i> <span i18n>Download</span></a></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>
 | 
				
			||||||
 | 
					      </ng-container>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,13 @@
 | 
				
			|||||||
import { Component, Injectable } from '@angular/core';
 | 
					 | 
				
			||||||
import { Location } from '@angular/common';
 | 
					import { Location } from '@angular/common';
 | 
				
			||||||
import { Store } from '@ngrx/store';
 | 
					import { Component, Injectable, OnDestroy } from '@angular/core';
 | 
				
			||||||
import * as mapReducers from '../../reducers/map.reducer';
 | 
					 | 
				
			||||||
import { commonReducers, ItemTypeService, ItemService, FolderService } from '@farmmaps/common';
 | 
					 | 
				
			||||||
import { Router } from '@angular/router';
 | 
					import { Router } from '@angular/router';
 | 
				
			||||||
 | 
					import { commonReducers, FolderService, IItem, IItemLinkType, ItemService, ItemTypeService, IUrlType } from '@farmmaps/common';
 | 
				
			||||||
 | 
					import { Store } from '@ngrx/store';
 | 
				
			||||||
 | 
					import { Subscription } from 'rxjs';
 | 
				
			||||||
 | 
					import * as mapActions from '../../actions/map.actions';
 | 
				
			||||||
 | 
					import * as mapReducers from '../../reducers/map.reducer';
 | 
				
			||||||
import { ForItemType } from '../for-item/for-itemtype.decorator';
 | 
					import { ForItemType } from '../for-item/for-itemtype.decorator';
 | 
				
			||||||
import { AbstractSelectedItemComponent } from '../selected-item/selected-item.component';
 | 
					import { AbstractSelectedItemComponent } from '../selected-item/selected-item.component';
 | 
				
			||||||
import * as mapActions from '../../actions/map.actions';
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ForItemType("vnd.farmmaps.itemtype.geotiff.processed")
 | 
					@ForItemType("vnd.farmmaps.itemtype.geotiff.processed")
 | 
				
			||||||
@@ -16,10 +17,15 @@ import * as mapActions from '../../actions/map.actions';
 | 
				
			|||||||
  templateUrl: './selected-item-geotiff.component.html',
 | 
					  templateUrl: './selected-item-geotiff.component.html',
 | 
				
			||||||
  styleUrls: ['./selected-item-geotiff.component.scss']
 | 
					  styleUrls: ['./selected-item-geotiff.component.scss']
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
export class SelectedItemGeotiffComponent extends AbstractSelectedItemComponent {
 | 
					export class SelectedItemGeotiffComponent extends AbstractSelectedItemComponent implements OnDestroy {
 | 
				
			||||||
 | 
					  sub: Subscription;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService, location: Location, router: Router, private itemService$: ItemService,private folderService$: FolderService) {
 | 
					  constructor(store: Store<mapReducers.State | commonReducers.State>, public itemService: ItemService, itemTypeService: ItemTypeService, location: Location, router: Router, private itemService$: ItemService,private folderService$: FolderService) {
 | 
				
			||||||
    super(store, itemTypeService,location,router);
 | 
					    super(store, itemTypeService,itemService,location,router);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy(): void {
 | 
				
			||||||
 | 
					    if (this.sub) this.sub.unsubscribe();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  onLayerChanged(layerIndex: number) {
 | 
					  onLayerChanged(layerIndex: number) {
 | 
				
			||||||
@@ -29,4 +35,13 @@ export class SelectedItemGeotiffComponent extends AbstractSelectedItemComponent
 | 
				
			|||||||
  layer(layers:any,layerIndex:number) {
 | 
					  layer(layers:any,layerIndex:number) {
 | 
				
			||||||
    return layers.find(l => l.index == layerIndex);
 | 
					    return layers.find(l => l.index == layerIndex);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  download(event:MouseEvent,item:IItem,layers:any,layerIndex:number) {
 | 
				
			||||||
 | 
					    event.stopPropagation();
 | 
				
			||||||
 | 
					    event.preventDefault();
 | 
				
			||||||
 | 
					    const itemLink : IItemLinkType = {itemcode:item.code,query:`layer=${this.layer(layers,layerIndex).name}`,pathsuffix:"download", validminutes:10}
 | 
				
			||||||
 | 
					    this.sub = this.itemService.getItemLink(itemLink).subscribe((itemLinkUrl:IUrlType) => {  
 | 
				
			||||||
 | 
					        window.location.href = itemLinkUrl.url;     
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,8 @@
 | 
				
			|||||||
        <h2 *ngIf="parentOfItemType('vnd.farmmaps.itemtype.cropfield')">{{parentItem.name}}</h2>
 | 
					        <h2 *ngIf="parentOfItemType('vnd.farmmaps.itemtype.cropfield')">{{parentItem.name}}</h2>
 | 
				
			||||||
        <h1>{{item.name}}</h1>
 | 
					        <h1>{{item.name}}</h1>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <div class="legend-container" *ngIf="item?.data.layers;let layers">
 | 
					      <ng-container *ngIf="item?.data.layers;let layers">
 | 
				
			||||||
 | 
					        <div class="legend-container">
 | 
				
			||||||
          <div class="card menu-card">
 | 
					          <div class="card menu-card">
 | 
				
			||||||
            <div *ngIf="layers.length>1">
 | 
					            <div *ngIf="layers.length>1">
 | 
				
			||||||
              <select (change)="onLayerChanged($event.target.value)">
 | 
					              <select (change)="onLayerChanged($event.target.value)">
 | 
				
			||||||
@@ -24,8 +25,10 @@
 | 
				
			|||||||
              <li *ngIf="!getItemLayer(item,itemLayer.layerIndex)"><a   href="#" (click)="handleAddAsLayer(item,itemLayer.layerIndex)" ><i class="fas fa-layer-olus" 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-olus" 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><a href="#" (click)="download($event,item,layers,itemLayer.layerIndex)"><i class="fal fa-download" aria-hidden="true" i18n-title title="Download"></i> <span i18n>Download</span></a></li>
 | 
				
			||||||
          </ul>
 | 
					          </ul>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
 | 
					      </ng-container>
 | 
				
			||||||
      <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>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,14 +1,13 @@
 | 
				
			|||||||
import { Component, Input, Injectable, OnInit } from '@angular/core';
 | 
					 | 
				
			||||||
import { Location } from '@angular/common';
 | 
					import { Location } from '@angular/common';
 | 
				
			||||||
import { Feature } from 'ol';
 | 
					import { Component, Injectable, OnDestroy } from '@angular/core';
 | 
				
			||||||
 | 
					import { Router } from '@angular/router';
 | 
				
			||||||
 | 
					import { commonReducers, FolderService, IItem, IItemLinkType, ItemService, ItemTypeService, IUrlType } from '@farmmaps/common';
 | 
				
			||||||
import { Store } from '@ngrx/store';
 | 
					import { Store } from '@ngrx/store';
 | 
				
			||||||
import * as mapReducers from '../../reducers/map.reducer';
 | 
					 | 
				
			||||||
import { commonReducers, ItemTypeService, IItem, Item, ItemService, FolderService, IListItem} from '@farmmaps/common';
 | 
					 | 
				
			||||||
import * as mapActions from '../../actions/map.actions';
 | 
					import * as mapActions from '../../actions/map.actions';
 | 
				
			||||||
import { Router, ActivatedRoute, ParamMap, Event } from '@angular/router';
 | 
					import * as mapReducers from '../../reducers/map.reducer';
 | 
				
			||||||
import { ForItemType } from '../for-item/for-itemtype.decorator';
 | 
					import { ForItemType } from '../for-item/for-itemtype.decorator';
 | 
				
			||||||
import { AbstractSelectedItemComponent } from '../selected-item/selected-item.component';
 | 
					import { AbstractSelectedItemComponent } from '../selected-item/selected-item.component';
 | 
				
			||||||
import { Observable } from 'rxjs';
 | 
					import { Subscription } from 'rxjs';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ForItemType("vnd.farmmaps.itemtype.shape.processed")
 | 
					@ForItemType("vnd.farmmaps.itemtype.shape.processed")
 | 
				
			||||||
@@ -18,12 +17,17 @@ import { Observable } from 'rxjs';
 | 
				
			|||||||
  templateUrl: './selected-item-shape.component.html',
 | 
					  templateUrl: './selected-item-shape.component.html',
 | 
				
			||||||
  styleUrls: ['./selected-item-shape.component.scss']
 | 
					  styleUrls: ['./selected-item-shape.component.scss']
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
export class SelectedItemShapeComponent extends AbstractSelectedItemComponent {
 | 
					export class SelectedItemShapeComponent extends AbstractSelectedItemComponent implements OnDestroy {
 | 
				
			||||||
 | 
					 | 
				
			||||||
  constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService, location: Location, router: Router, private itemService$: ItemService,private folderService$: FolderService) {
 | 
					 | 
				
			||||||
    super(store, itemTypeService,location,router);
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
  public selectedLayer = 0;
 | 
					  public selectedLayer = 0;
 | 
				
			||||||
 | 
					  sub: Subscription;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(store: Store<mapReducers.State | commonReducers.State>, public itemService: ItemService, itemTypeService: ItemTypeService, location: Location, router: Router, private itemService$: ItemService,private folderService$: FolderService) {
 | 
				
			||||||
 | 
					    super(store, itemTypeService,itemService,location,router);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy(): void {
 | 
				
			||||||
 | 
					    if (this.sub) this.sub.unsubscribe();
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  onLayerChanged(layerIndex: number) {
 | 
					  onLayerChanged(layerIndex: number) {
 | 
				
			||||||
    this.store.dispatch(new mapActions.SetLayerIndex(layerIndex));
 | 
					    this.store.dispatch(new mapActions.SetLayerIndex(layerIndex));
 | 
				
			||||||
@@ -32,4 +36,13 @@ export class SelectedItemShapeComponent extends AbstractSelectedItemComponent {
 | 
				
			|||||||
  layer(layers:any,layerIndex:number) {
 | 
					  layer(layers:any,layerIndex:number) {
 | 
				
			||||||
    return layers.find(l => l.index == layerIndex);
 | 
					    return layers.find(l => l.index == layerIndex);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					  download(event:MouseEvent,item:IItem,layers:any,layerIndex:number) {
 | 
				
			||||||
 | 
					    event.stopPropagation();
 | 
				
			||||||
 | 
					    event.preventDefault();
 | 
				
			||||||
 | 
					    const itemLink : IItemLinkType = {itemcode:item.code,query:`layer=${this.layer(layers,layerIndex).name}`,pathsuffix:"download", validminutes:10}
 | 
				
			||||||
 | 
					    this.sub = this.itemService.getItemLink(itemLink).subscribe((itemLinkUrl:IUrlType) => {  
 | 
				
			||||||
 | 
					        window.location.href = itemLinkUrl.url;     
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,8 @@
 | 
				
			|||||||
        <h2 *ngIf="parentOfItemType('vnd.farmmaps.itemtype.cropfield')">{{parentItem.name}}</h2>
 | 
					        <h2 *ngIf="parentOfItemType('vnd.farmmaps.itemtype.cropfield')">{{parentItem.name}}</h2>
 | 
				
			||||||
        <h1>{{item.name}}</h1>
 | 
					        <h1>{{item.name}}</h1>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <div class="legend-container" *ngIf="item?.data.layers;let layers">
 | 
					      <ng-container *ngIf="item?.data.layers;let layers">
 | 
				
			||||||
 | 
					        <div class="legend-container">
 | 
				
			||||||
          <div class="card menu-card">
 | 
					          <div class="card menu-card">
 | 
				
			||||||
            <h5><span i18n>Date</span>: {{temporalService.selectedDate(itemLayer)}}</h5>
 | 
					            <h5><span i18n>Date</span>: {{temporalService.selectedDate(itemLayer)}}</h5>
 | 
				
			||||||
            <div class="d-flex justify-content-between">
 | 
					            <div class="d-flex justify-content-between">
 | 
				
			||||||
@@ -42,8 +43,10 @@
 | 
				
			|||||||
              <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><a href="#" (click)="handleGoToChart(item)"><i class="fal fa-line-chart" aria-hidden="true" i18m-title title="Show chart"></i> <span i18n>Show chart</span></a></li>
 | 
					            <li><a href="#" (click)="handleGoToChart(item)"><i class="fal fa-line-chart" aria-hidden="true" i18m-title title="Show chart"></i> <span i18n>Show chart</span></a></li>
 | 
				
			||||||
 | 
					            <li><a href="#" (click)="download($event,item,layers,itemLayer.layerIndex)"><i class="fal fa-download" aria-hidden="true" i18n-title title="Download"></i> <span i18n>Download</span></a></li>
 | 
				
			||||||
          </ul>
 | 
					          </ul>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
 | 
					      </ng-container>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,16 +1,15 @@
 | 
				
			|||||||
import { Component, Injectable } from '@angular/core';
 | 
					 | 
				
			||||||
import { Location } from '@angular/common';
 | 
					import { Location } from '@angular/common';
 | 
				
			||||||
import { Store } from '@ngrx/store';
 | 
					import { Component, Injectable, OnDestroy } from '@angular/core';
 | 
				
			||||||
import * as mapReducers from '../../reducers/map.reducer';
 | 
					 | 
				
			||||||
import { commonReducers, ItemTypeService, IItem } from '@farmmaps/common';
 | 
					 | 
				
			||||||
import { Router } from '@angular/router';
 | 
					import { Router } from '@angular/router';
 | 
				
			||||||
 | 
					import { commonReducers, IItem, IItemLinkType, ItemService, ItemTypeService, IUrlType } from '@farmmaps/common';
 | 
				
			||||||
 | 
					import { Store } from '@ngrx/store';
 | 
				
			||||||
 | 
					import { Subscription } from 'rxjs';
 | 
				
			||||||
 | 
					import * as mapActions from '../../actions/map.actions';
 | 
				
			||||||
 | 
					import { IItemLayer, ITemporalItemLayer } from '../../models/item.layer';
 | 
				
			||||||
 | 
					import * as mapReducers from '../../reducers/map.reducer';
 | 
				
			||||||
 | 
					import { TemporalService } from '../../services/temporal.service';
 | 
				
			||||||
import { ForItemType } from '../for-item/for-itemtype.decorator';
 | 
					import { ForItemType } from '../for-item/for-itemtype.decorator';
 | 
				
			||||||
import { AbstractSelectedItemComponent } from '../selected-item/selected-item.component';
 | 
					import { AbstractSelectedItemComponent } from '../selected-item/selected-item.component';
 | 
				
			||||||
import { ITemporalItemLayer} from '../../models/item.layer';
 | 
					 | 
				
			||||||
import * as mapActions from '../../actions/map.actions';
 | 
					 | 
				
			||||||
import { IItemLayer } from '../../models/item.layer';
 | 
					 | 
				
			||||||
import {TemporalService} from '../../services/temporal.service';
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ForItemType("vnd.farmmaps.itemtype.temporal")
 | 
					@ForItemType("vnd.farmmaps.itemtype.temporal")
 | 
				
			||||||
@Injectable()
 | 
					@Injectable()
 | 
				
			||||||
@@ -19,10 +18,15 @@ import {TemporalService} from '../../services/temporal.service';
 | 
				
			|||||||
  templateUrl: './selected-item-temporal.component.html',
 | 
					  templateUrl: './selected-item-temporal.component.html',
 | 
				
			||||||
  styleUrls: ['./selected-item-temporal.component.scss']
 | 
					  styleUrls: ['./selected-item-temporal.component.scss']
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
export class SelectedItemTemporalComponent extends AbstractSelectedItemComponent {
 | 
					export class SelectedItemTemporalComponent extends AbstractSelectedItemComponent implements OnDestroy {
 | 
				
			||||||
 | 
					  sub: Subscription;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService, location: Location, router: Router,public temporalService:TemporalService) {
 | 
					  constructor(store: Store<mapReducers.State | commonReducers.State>, public itemService: ItemService, itemTypeService: ItemTypeService, location: Location, router: Router,public temporalService:TemporalService) {
 | 
				
			||||||
    super(store, itemTypeService,location,router);
 | 
					    super(store, itemTypeService,itemService,location,router);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  ngOnDestroy(): void {
 | 
				
			||||||
 | 
					    if (this.sub) this.sub.unsubscribe();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  onLayerChanged(layerIndex: number) {
 | 
					  onLayerChanged(layerIndex: number) {
 | 
				
			||||||
@@ -33,8 +37,6 @@ export class SelectedItemTemporalComponent extends AbstractSelectedItemComponent
 | 
				
			|||||||
    return  (this.itemLayer as ITemporalItemLayer)?.selectedItemLayer
 | 
					    return  (this.itemLayer as ITemporalItemLayer)?.selectedItemLayer
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  handleNextTemporal(event:MouseEvent) {
 | 
					  handleNextTemporal(event:MouseEvent) {
 | 
				
			||||||
    this.store.dispatch(new mapActions.NextTemporal());
 | 
					    this.store.dispatch(new mapActions.NextTemporal());
 | 
				
			||||||
    event.preventDefault();    
 | 
					    event.preventDefault();    
 | 
				
			||||||
@@ -61,4 +63,13 @@ export class SelectedItemTemporalComponent extends AbstractSelectedItemComponent
 | 
				
			|||||||
    this.router.navigate(['/viewer', 'temporal', 'item', item.parentCode, new Date(Date.parse(item.dataDate)).getUTCFullYear()]);
 | 
					    this.router.navigate(['/viewer', 'temporal', 'item', item.parentCode, new Date(Date.parse(item.dataDate)).getUTCFullYear()]);
 | 
				
			||||||
    return false;
 | 
					    return false;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  download(event:MouseEvent,item:IItem,layers:any,layerIndex:number) {
 | 
				
			||||||
 | 
					    event.stopPropagation();
 | 
				
			||||||
 | 
					    event.preventDefault();
 | 
				
			||||||
 | 
					    const itemLink : IItemLinkType = {itemcode:item.code,query:`layer=${this.layer(layers,layerIndex).name}`,pathsuffix:"download", validminutes:10}
 | 
				
			||||||
 | 
					    this.sub = this.itemService.getItemLink(itemLink).subscribe((itemLinkUrl:IUrlType) => {  
 | 
				
			||||||
 | 
					       window.location.href = itemLinkUrl.url;       
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@ import {Component, Injectable, Input, Directive} from '@angular/core';
 | 
				
			|||||||
import {Location} from '@angular/common';
 | 
					import {Location} from '@angular/common';
 | 
				
			||||||
import {Store} from '@ngrx/store';
 | 
					import {Store} from '@ngrx/store';
 | 
				
			||||||
import * as mapReducers from '../../reducers/map.reducer';
 | 
					import * as mapReducers from '../../reducers/map.reducer';
 | 
				
			||||||
import {AppConfig, commonReducers, IItem, ItemTypeService} from '@farmmaps/common';
 | 
					import {AppConfig, commonReducers, IItem, ItemService, ItemTypeService} from '@farmmaps/common';
 | 
				
			||||||
import * as mapActions from '../../actions/map.actions';
 | 
					import * as mapActions from '../../actions/map.actions';
 | 
				
			||||||
import {Router} from '@angular/router';
 | 
					import {Router} from '@angular/router';
 | 
				
			||||||
import { IItemLayer } from '../../models/item.layer';
 | 
					import { IItemLayer } from '../../models/item.layer';
 | 
				
			||||||
@@ -15,7 +15,7 @@ export abstract class AbstractSelectedItemComponent {
 | 
				
			|||||||
  @Input() parentItem: IItem;
 | 
					  @Input() parentItem: IItem;
 | 
				
			||||||
  @Input() itemLayer: IItemLayer;
 | 
					  @Input() itemLayer: IItemLayer;
 | 
				
			||||||
  @Input() overlayLayers: Array<IItemLayer>;
 | 
					  @Input() overlayLayers: Array<IItemLayer>;
 | 
				
			||||||
  constructor(public store: Store<mapReducers.State | commonReducers.State>, public itemTypeService: ItemTypeService, private location: Location, public router: Router) {
 | 
					  constructor(public store: Store<mapReducers.State | commonReducers.State>, public itemTypeService: ItemTypeService, public itemService: ItemService, private location: Location, public router: Router) {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleOnView(item: IItem) {
 | 
					  handleOnView(item: IItem) {
 | 
				
			||||||
@@ -37,6 +37,11 @@ export abstract class AbstractSelectedItemComponent {
 | 
				
			|||||||
    return false;
 | 
					    return false;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  handleOnDelete(item: IItem) {
 | 
				
			||||||
 | 
					    this.itemService.deleteItem(item.code);
 | 
				
			||||||
 | 
					    return false;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  handleAddAsLayer(item: IItem,layerIndex = -1) {
 | 
					  handleAddAsLayer(item: IItem,layerIndex = -1) {
 | 
				
			||||||
    this.store.dispatch(new mapActions.AddLayer(item,layerIndex));
 | 
					    this.store.dispatch(new mapActions.AddLayer(item,layerIndex));
 | 
				
			||||||
    return false;
 | 
					    return false;
 | 
				
			||||||
@@ -76,8 +81,8 @@ export abstract class AbstractSelectedItemComponent {
 | 
				
			|||||||
})
 | 
					})
 | 
				
			||||||
export class SelectedItemComponent extends AbstractSelectedItemComponent {
 | 
					export class SelectedItemComponent extends AbstractSelectedItemComponent {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService, location: Location, router: Router, public config:AppConfig) {
 | 
					  constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService, itemService: ItemService, location: Location, router: Router, public config:AppConfig) {
 | 
				
			||||||
    super(store, itemTypeService,location,router);
 | 
					    super(store, itemTypeService,itemService,location,router);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  getThumbnailUrl(item:IItem):string {
 | 
					  getThumbnailUrl(item:IItem):string {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,6 +9,7 @@ import { ILayervalue } from '../models/layer.value';
 | 
				
			|||||||
import * as mapActions from '../actions/map.actions';
 | 
					import * as mapActions from '../actions/map.actions';
 | 
				
			||||||
import {commonActions} from '@farmmaps/common';
 | 
					import {commonActions} from '@farmmaps/common';
 | 
				
			||||||
import { createSelector, createFeatureSelector } from '@ngrx/store';
 | 
					import { createSelector, createFeatureSelector } from '@ngrx/store';
 | 
				
			||||||
 | 
					import * as _ from 'lodash';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import {Feature} from 'ol';
 | 
					import {Feature} from 'ol';
 | 
				
			||||||
import {Geometry} from 'ol/geom';
 | 
					import {Geometry} from 'ol/geom';
 | 
				
			||||||
@@ -47,6 +48,7 @@ export interface State {
 | 
				
			|||||||
  query:IQuery,
 | 
					  query:IQuery,
 | 
				
			||||||
  parentCode: string,
 | 
					  parentCode: string,
 | 
				
			||||||
  features: Array<Feature<Geometry>>,
 | 
					  features: Array<Feature<Geometry>>,
 | 
				
			||||||
 | 
					  featuresBackup: Array<Feature<Geometry>>,
 | 
				
			||||||
  panelVisible: boolean,
 | 
					  panelVisible: boolean,
 | 
				
			||||||
  panelCollapsed: boolean,
 | 
					  panelCollapsed: boolean,
 | 
				
			||||||
  panelExtraWide: boolean,
 | 
					  panelExtraWide: boolean,
 | 
				
			||||||
@@ -93,6 +95,7 @@ export const initialState: State = {
 | 
				
			|||||||
  query: null,
 | 
					  query: null,
 | 
				
			||||||
  parentCode: null,
 | 
					  parentCode: null,
 | 
				
			||||||
  features: [],
 | 
					  features: [],
 | 
				
			||||||
 | 
					  featuresBackup: [],
 | 
				
			||||||
  panelVisible: false,
 | 
					  panelVisible: false,
 | 
				
			||||||
  panelCollapsed: false,
 | 
					  panelCollapsed: false,
 | 
				
			||||||
  panelExtraWide: false,
 | 
					  panelExtraWide: false,
 | 
				
			||||||
@@ -156,13 +159,15 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
 | 
				
			|||||||
      const a = action as mapActions.StartSearchSuccess;
 | 
					      const a = action as mapActions.StartSearchSuccess;
 | 
				
			||||||
      return tassign(state, {
 | 
					      return tassign(state, {
 | 
				
			||||||
        features: a.features,
 | 
					        features: a.features,
 | 
				
			||||||
 | 
					        featuresBackup: [],
 | 
				
			||||||
        inSearch:false
 | 
					        inSearch:false
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case mapActions.SETFEATURES: {
 | 
					    case mapActions.SETFEATURES: {
 | 
				
			||||||
      const a = action as mapActions.SetFeatures;
 | 
					      const a = action as mapActions.SetFeatures;
 | 
				
			||||||
      return tassign(state, {
 | 
					      return tassign(state, {
 | 
				
			||||||
        features: a.features
 | 
					        features: a.features,
 | 
				
			||||||
 | 
					        featuresBackup: []
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case mapActions.SELECTFEATURE: {
 | 
					    case mapActions.SELECTFEATURE: {
 | 
				
			||||||
@@ -180,6 +185,7 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
 | 
				
			|||||||
        selectedItemLayer: null,
 | 
					        selectedItemLayer: null,
 | 
				
			||||||
        showDataLayerSlide: false,
 | 
					        showDataLayerSlide: false,
 | 
				
			||||||
        features:[],
 | 
					        features:[],
 | 
				
			||||||
 | 
					        featuresBackup: [],
 | 
				
			||||||
        inSearch:inSearch
 | 
					        inSearch:inSearch
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -296,6 +302,7 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
 | 
				
			|||||||
      return tassign(state, {
 | 
					      return tassign(state, {
 | 
				
			||||||
        selectedItem: null,
 | 
					        selectedItem: null,
 | 
				
			||||||
        features:[],
 | 
					        features:[],
 | 
				
			||||||
 | 
					        featuresBackup: [],
 | 
				
			||||||
        selectedItemLayer:null,
 | 
					        selectedItemLayer:null,
 | 
				
			||||||
        searchCollapsed: !panelVisible,
 | 
					        searchCollapsed: !panelVisible,
 | 
				
			||||||
        panelVisible: panelVisible,
 | 
					        panelVisible: panelVisible,
 | 
				
			||||||
@@ -332,7 +339,8 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
 | 
				
			|||||||
        extent: a.feature.getGeometry().getExtent(),
 | 
					        extent: a.feature.getGeometry().getExtent(),
 | 
				
			||||||
        searchCollapsed: false,
 | 
					        searchCollapsed: false,
 | 
				
			||||||
        clearEnabled:true,
 | 
					        clearEnabled:true,
 | 
				
			||||||
        features:features
 | 
					        features:features,
 | 
				
			||||||
 | 
					        featuresBackup:[]
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case mapActions.UPDATEFEATURESUCCESS: {
 | 
					    case mapActions.UPDATEFEATURESUCCESS: {
 | 
				
			||||||
@@ -346,7 +354,7 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
 | 
				
			|||||||
          features.push(state.features[i]);
 | 
					          features.push(state.features[i]);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      return tassign(state, { features: features });
 | 
					      return tassign(state, { features: features, featuresBackup: [] });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case mapActions.EXPANDSEARCH: {
 | 
					    case mapActions.EXPANDSEARCH: {
 | 
				
			||||||
      return tassign(state, { searchCollapsed: false });
 | 
					      return tassign(state, { searchCollapsed: false });
 | 
				
			||||||
@@ -391,7 +399,7 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
 | 
				
			|||||||
      return tassign(state, {overlayLayers: [], selectedOverlayLayer: null});
 | 
					      return tassign(state, {overlayLayers: [], selectedOverlayLayer: null});
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case mapActions.CLEARFEATURES: {
 | 
					    case mapActions.CLEARFEATURES: {
 | 
				
			||||||
      return tassign(state, {features: [], selectedFeature: null});
 | 
					      return tassign(state, {features: [], featuresBackup: [], selectedFeature: null});
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case mapActions.SETVISIBILITY: {
 | 
					    case mapActions.SETVISIBILITY: {
 | 
				
			||||||
      const a = action as mapActions.SetVisibility;
 | 
					      const a = action as mapActions.SetVisibility;
 | 
				
			||||||
@@ -509,6 +517,7 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
 | 
				
			|||||||
        searchCollapsed: true,
 | 
					        searchCollapsed: true,
 | 
				
			||||||
        searchMinified: false,
 | 
					        searchMinified: false,
 | 
				
			||||||
        features: [],
 | 
					        features: [],
 | 
				
			||||||
 | 
					        featuresBackup: [],
 | 
				
			||||||
        query:initialState.query,
 | 
					        query:initialState.query,
 | 
				
			||||||
        showLayerSwitcher: false,
 | 
					        showLayerSwitcher: false,
 | 
				
			||||||
        extent: null,
 | 
					        extent: null,
 | 
				
			||||||
@@ -556,7 +565,8 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
 | 
				
			|||||||
          selectedItem: null,
 | 
					          selectedItem: null,
 | 
				
			||||||
          selectedItemLayer: null,
 | 
					          selectedItemLayer: null,
 | 
				
			||||||
          showDataLayerSlide: false,
 | 
					          showDataLayerSlide: false,
 | 
				
			||||||
          features:[]
 | 
					          features:[],
 | 
				
			||||||
 | 
					          featuresBackup:[]
 | 
				
			||||||
         });
 | 
					         });
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      if(state.features.length>0)  {
 | 
					      if(state.features.length>0)  {
 | 
				
			||||||
@@ -569,7 +579,7 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
 | 
				
			|||||||
        if(index>=0) {
 | 
					        if(index>=0) {
 | 
				
			||||||
          const newFeatures = state.features.slice(0);
 | 
					          const newFeatures = state.features.slice(0);
 | 
				
			||||||
          newFeatures.splice(index,1);
 | 
					          newFeatures.splice(index,1);
 | 
				
			||||||
          return tassign(state,{features:newFeatures});
 | 
					          return tassign(state,{features:newFeatures, featuresBackup:[]});
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      return state;
 | 
					      return state;
 | 
				
			||||||
@@ -578,6 +588,17 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
 | 
				
			|||||||
      const a= action as mapActions.SetPanelExtraWide;
 | 
					      const a= action as mapActions.SetPanelExtraWide;
 | 
				
			||||||
      return tassign(state,{panelExtraWide:a.panelExtraWide});
 | 
					      return tassign(state,{panelExtraWide:a.panelExtraWide});
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    case mapActions.BACKUPFEATURES: {
 | 
				
			||||||
 | 
					      return tassign(state, {
 | 
				
			||||||
 | 
					        featuresBackup: _.cloneDeep(state.features)
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    case mapActions.RESTOREFEATURES: {
 | 
				
			||||||
 | 
					      return tassign(state, {
 | 
				
			||||||
 | 
					        features: _.cloneDeep(state.featuresBackup),
 | 
				
			||||||
 | 
					        featuresBackup: []
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    default: {
 | 
					    default: {
 | 
				
			||||||
      return state;
 | 
					      return state;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -637,6 +658,8 @@ export const selectGetExtent = createSelector(selectMapState, getExtent);
 | 
				
			|||||||
export const selectGetViewExtent = createSelector(selectMapState, getViewExtent);
 | 
					export const selectGetViewExtent = createSelector(selectMapState, getViewExtent);
 | 
				
			||||||
export const selectGetOverlayLayers = createSelector(selectMapState, getOverlayLayers);
 | 
					export const selectGetOverlayLayers = createSelector(selectMapState, getOverlayLayers);
 | 
				
			||||||
export const selectGetBaseLayers = createSelector(selectMapState, getBaseLayers);
 | 
					export const selectGetBaseLayers = createSelector(selectMapState, getBaseLayers);
 | 
				
			||||||
 | 
					export const selectGetBaseMaps = createSelector(selectGetBaseLayers, (layers) => layers.filter(layer => layer.item.data.category === "baseMap"));
 | 
				
			||||||
 | 
					export const selectGetArealMaps = createSelector(selectGetBaseLayers, (layers) => layers.filter(layer => layer.item.data.category === "aerialPhoto").sort((a, b) => a.item.dataDate <= b.item.dataDate ? 1 : -1));
 | 
				
			||||||
export const selectGetProjection = createSelector(selectMapState, getProjection);
 | 
					export const selectGetProjection = createSelector(selectMapState, getProjection);
 | 
				
			||||||
export const selectGetSelectedBaseLayer = createSelector(selectMapState, getSelectedBaseLayer);
 | 
					export const selectGetSelectedBaseLayer = createSelector(selectMapState, getSelectedBaseLayer);
 | 
				
			||||||
export const selectGetSelectedOverlayLayer = createSelector(selectMapState, getSelectedOverlayLayer);
 | 
					export const selectGetSelectedOverlayLayer = createSelector(selectMapState, getSelectedOverlayLayer);
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										546
									
								
								projects/common-map3d/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										546
									
								
								projects/common-map3d/package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -11,17 +11,555 @@
 | 
				
			|||||||
        "tslib": "^2.0.0"
 | 
					        "tslib": "^2.0.0"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "peerDependencies": {
 | 
					      "peerDependencies": {
 | 
				
			||||||
        "@angular/common": "^17.3.3",
 | 
					        "@angular/common": "^18.2.3",
 | 
				
			||||||
        "@angular/core": "^17.3.3",
 | 
					        "@angular/core": "^18.2.3",
 | 
				
			||||||
        "cesium": ">=1.82.1",
 | 
					        "cesium": "^1.97.0",
 | 
				
			||||||
        "ng-openlayers": "17.1.3",
 | 
					 | 
				
			||||||
        "ol-cesium": ">=2.13.0"
 | 
					        "ol-cesium": ">=2.13.0"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    "../../dist/libs/ng-openlayers": {
 | 
				
			||||||
 | 
					      "version": "18.0.0",
 | 
				
			||||||
 | 
					      "extraneous": true,
 | 
				
			||||||
 | 
					      "license": "MPL-2.0",
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "@angular/common": "^18.2.3",
 | 
				
			||||||
 | 
					        "@angular/core": "^18.2.3",
 | 
				
			||||||
 | 
					        "ol": "^8.2.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "dist/ng-openlayers": {
 | 
				
			||||||
 | 
					      "extraneous": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular/common": {
 | 
				
			||||||
 | 
					      "version": "18.2.3",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@angular/common/-/common-18.2.3.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-NFL4yXXImSCH7i1xnHykUjHa9vl9827fGiwSV2mnf7LjSUsyDzFD8/54dNuYN9OY8AUD+PnK0YdNro6cczVyIA==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": "^18.19.1 || ^20.11.1 || >=22.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "@angular/core": "18.2.3",
 | 
				
			||||||
 | 
					        "rxjs": "^6.5.3 || ^7.4.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular/core": {
 | 
				
			||||||
 | 
					      "version": "18.2.3",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@angular/core/-/core-18.2.3.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-VGhMJxj7d0rYpqVfQrcGRB7EE/BCziotft/I/YPl6bOMPSAvMukG7DXQuJdYpNrr62ks78mlzHlZX/cdmB9Prw==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": "^18.19.1 || ^20.11.1 || >=22.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "rxjs": "^6.5.3 || ^7.4.0",
 | 
				
			||||||
 | 
					        "zone.js": "~0.14.10"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@cesium/engine": {
 | 
				
			||||||
 | 
					      "version": "11.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@cesium/engine/-/engine-11.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-0z3mJNNly407h3/bAvGoGnjA0ygprkVz32z9x1VNmPXf9AuybKu7Q4wRrChUhC/qsNj3L45kP6KqyDuHSe2bhw==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "@tweenjs/tween.js": "^25.0.0",
 | 
				
			||||||
 | 
					        "@zip.js/zip.js": "^2.7.34",
 | 
				
			||||||
 | 
					        "autolinker": "^4.0.0",
 | 
				
			||||||
 | 
					        "bitmap-sdf": "^1.0.3",
 | 
				
			||||||
 | 
					        "dompurify": "^3.0.2",
 | 
				
			||||||
 | 
					        "draco3d": "^1.5.1",
 | 
				
			||||||
 | 
					        "earcut": "^3.0.0",
 | 
				
			||||||
 | 
					        "grapheme-splitter": "^1.0.4",
 | 
				
			||||||
 | 
					        "jsep": "^1.3.8",
 | 
				
			||||||
 | 
					        "kdbush": "^4.0.1",
 | 
				
			||||||
 | 
					        "ktx-parse": "^0.7.0",
 | 
				
			||||||
 | 
					        "lerc": "^2.0.0",
 | 
				
			||||||
 | 
					        "mersenne-twister": "^1.1.0",
 | 
				
			||||||
 | 
					        "meshoptimizer": "^0.21.0",
 | 
				
			||||||
 | 
					        "pako": "^2.0.4",
 | 
				
			||||||
 | 
					        "protobufjs": "^7.1.0",
 | 
				
			||||||
 | 
					        "rbush": "^4.0.0",
 | 
				
			||||||
 | 
					        "topojson-client": "^3.1.0",
 | 
				
			||||||
 | 
					        "urijs": "^1.19.7"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": ">=14.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@cesium/widgets": {
 | 
				
			||||||
 | 
					      "version": "8.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@cesium/widgets/-/widgets-8.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-Rnid5BbLBZjwFdbr3lgOwK3fhql/BeEbf5l9ZZE+Zc7V8Fb6wgKM8QmrL+bbJ+BtuiELp+SkNxcF97Ktifxb4g==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "@cesium/engine": "^11.0.0",
 | 
				
			||||||
 | 
					        "nosleep.js": "^0.12.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": ">=14.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@petamoriken/float16": {
 | 
				
			||||||
 | 
					      "version": "3.8.7",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@petamoriken/float16/-/float16-3.8.7.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-/Ri4xDDpe12NT6Ex/DRgHzLlobiQXEW/hmG08w1wj/YU7hLemk97c+zHQFp0iZQ9r7YqgLEXZR2sls4HxBf9NA==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@protobufjs/aspromise": {
 | 
				
			||||||
 | 
					      "version": "1.1.2",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@protobufjs/base64": {
 | 
				
			||||||
 | 
					      "version": "1.1.2",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@protobufjs/codegen": {
 | 
				
			||||||
 | 
					      "version": "2.0.4",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@protobufjs/eventemitter": {
 | 
				
			||||||
 | 
					      "version": "1.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@protobufjs/fetch": {
 | 
				
			||||||
 | 
					      "version": "1.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "@protobufjs/aspromise": "^1.1.1",
 | 
				
			||||||
 | 
					        "@protobufjs/inquire": "^1.1.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@protobufjs/float": {
 | 
				
			||||||
 | 
					      "version": "1.0.2",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@protobufjs/inquire": {
 | 
				
			||||||
 | 
					      "version": "1.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@protobufjs/path": {
 | 
				
			||||||
 | 
					      "version": "1.1.2",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@protobufjs/pool": {
 | 
				
			||||||
 | 
					      "version": "1.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@protobufjs/utf8": {
 | 
				
			||||||
 | 
					      "version": "1.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@tweenjs/tween.js": {
 | 
				
			||||||
 | 
					      "version": "25.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-25.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-XKLA6syeBUaPzx4j3qwMqzzq+V4uo72BnlbOjmuljLrRqdsd3qnzvZZoxvMHZ23ndsRS4aufU6JOZYpCbU6T1A==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@types/node": {
 | 
				
			||||||
 | 
					      "version": "22.5.4",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.4.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-FDuKUJQm/ju9fT/SeX/6+gBzoPzlVCzfzmGkwKvRHQVxi4BntVbyIwf6a4Xn62mrvndLiml6z/UBXIdEVjQLXg==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "undici-types": "~6.19.2"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@types/rbush": {
 | 
				
			||||||
 | 
					      "version": "3.0.4",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@types/rbush/-/rbush-3.0.4.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-knSt9cCW8jj1ZSFcFeBZaX++OucmfPxxHiRwTahZfJlnQsek7O0bazTJHWD2RVj9LEoejUYF2de3/stf+QXcXw==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@zip.js/zip.js": {
 | 
				
			||||||
 | 
					      "version": "2.7.52",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@zip.js/zip.js/-/zip.js-2.7.52.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-+5g7FQswvrCHwYKNMd/KFxZSObctLSsQOgqBSi0LzwHo3li9Eh1w5cF5ndjQw9Zbr3ajVnd2+XyiX85gAetx1Q==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "bun": ">=0.7.0",
 | 
				
			||||||
 | 
					        "deno": ">=1.0.0",
 | 
				
			||||||
 | 
					        "node": ">=16.5.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/autolinker": {
 | 
				
			||||||
 | 
					      "version": "4.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-4.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-fl5Kh6BmEEZx+IWBfEirnRUU5+cOiV0OK7PEt0RBKvJMJ8GaRseIOeDU3FKf4j3CE5HVefcjHmhYPOcaVt0bZw==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/bitmap-sdf": {
 | 
				
			||||||
 | 
					      "version": "1.0.4",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/bitmap-sdf/-/bitmap-sdf-1.0.4.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-1G3U4n5JE6RAiALMxu0p1XmeZkTeCwGKykzsLTCqVzfSDaN6S7fKnkIkfejogz+iwqBWc0UYAIKnKHNN7pSfDg==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/cesium": {
 | 
				
			||||||
 | 
					      "version": "1.121.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/cesium/-/cesium-1.121.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-WpdaGFd8qCOHiE9khV0sWWjCMXAX1U9Aou8MzMC/F0Akp6YqcOk4HLk4LLhZKeOjO/Bh27iTIW2mxEZ5+dtCxg==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "@cesium/engine": "^11.0.0",
 | 
				
			||||||
 | 
					        "@cesium/widgets": "^8.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": ">=18.18.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/color-name": {
 | 
				
			||||||
 | 
					      "version": "2.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/color-name/-/color-name-2.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-SbtvAMWvASO5TE2QP07jHBMXKafgdZz8Vrsrn96fiL+O92/FN/PLARzUW5sKt013fjAprK2d2iCn2hk2Xb5oow==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": ">=12.20"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/color-parse": {
 | 
				
			||||||
 | 
					      "version": "2.0.2",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/color-parse/-/color-parse-2.0.2.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-eCtOz5w5ttWIUcaKLiktF+DxZO1R9KLNY/xhbV6CkhM7sR3GhVghmt6X6yOnzeaM24po+Z9/S1apbXMwA3Iepw==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "color-name": "^2.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/color-rgba": {
 | 
				
			||||||
 | 
					      "version": "3.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/color-rgba/-/color-rgba-3.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-PPwZYkEY3M2THEHHV6Y95sGUie77S7X8v+h1r6LSAPF3/LL2xJ8duUXSrkic31Nzc4odPwHgUbiX/XuTYzQHQg==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "color-parse": "^2.0.0",
 | 
				
			||||||
 | 
					        "color-space": "^2.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/color-space": {
 | 
				
			||||||
 | 
					      "version": "2.0.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/color-space/-/color-space-2.0.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-nKqUYlo0vZATVOFHY810BSYjmCARrG7e5R3UE3CQlyjJTvv5kSSmPG1kzm/oDyyqjehM+lW1RnEt9It9GNa5JA==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/commander": {
 | 
				
			||||||
 | 
					      "version": "2.20.3",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/dompurify": {
 | 
				
			||||||
 | 
					      "version": "3.1.6",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.1.6.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-cTOAhc36AalkjtBpfG6O8JimdTMWNXjiePT2xQH/ppBGi/4uIpmj8eKyIkMJErXWARyINV/sB38yf8JCLF5pbQ==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/draco3d": {
 | 
				
			||||||
 | 
					      "version": "1.5.7",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/draco3d/-/draco3d-1.5.7.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/earcut": {
 | 
				
			||||||
 | 
					      "version": "3.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/earcut/-/earcut-3.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-41Fs7Q/PLq1SDbqjsgcY7GA42T0jvaCNGXgGtsNdvg+Yv8eIu06bxv4/PoREkZ9nMDNwnUSG9OFB9+yv8eKhDg==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/geotiff": {
 | 
				
			||||||
 | 
					      "version": "2.1.3",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/geotiff/-/geotiff-2.1.3.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-PT6uoF5a1+kbC3tHmZSUsLHBp2QJlHasxxxxPW47QIY1VBKpFB+FcDvX+MxER6UzgLQZ0xDzJ9s48B9JbOCTqA==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "@petamoriken/float16": "^3.4.7",
 | 
				
			||||||
 | 
					        "lerc": "^3.0.0",
 | 
				
			||||||
 | 
					        "pako": "^2.0.4",
 | 
				
			||||||
 | 
					        "parse-headers": "^2.0.2",
 | 
				
			||||||
 | 
					        "quick-lru": "^6.1.1",
 | 
				
			||||||
 | 
					        "web-worker": "^1.2.0",
 | 
				
			||||||
 | 
					        "xml-utils": "^1.0.2",
 | 
				
			||||||
 | 
					        "zstddec": "^0.1.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": ">=10.19"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/geotiff/node_modules/lerc": {
 | 
				
			||||||
 | 
					      "version": "3.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/lerc/-/lerc-3.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-Rm4J/WaHhRa93nCN2mwWDZFoRVF18G1f47C+kvQWyHGEZxFpTUi73p7lMVSAndyxGt6lJ2/CFbOcf9ra5p8aww==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/grapheme-splitter": {
 | 
				
			||||||
 | 
					      "version": "1.0.4",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/jsep": {
 | 
				
			||||||
 | 
					      "version": "1.3.9",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.3.9.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-i1rBX5N7VPl0eYb6+mHNp52sEuaS2Wi8CDYx1X5sn9naevL78+265XJqy1qENEk7mRKwS06NHpUqiBwR7qeodw==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": ">= 10.16.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/kdbush": {
 | 
				
			||||||
 | 
					      "version": "4.0.2",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/kdbush/-/kdbush-4.0.2.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-WbCVYJ27Sz8zi9Q7Q0xHC+05iwkm3Znipc2XTlrnJbsHMYktW4hPhXUE8Ys1engBrvffoSCqbil1JQAa7clRpA==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/ktx-parse": {
 | 
				
			||||||
 | 
					      "version": "0.7.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/ktx-parse/-/ktx-parse-0.7.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-FeA3g56ksdFNwjXJJsc1CCc7co+AJYDp6ipIp878zZ2bU8kWROatLYf39TQEd4/XRSUvBXovQ8gaVKWPXsCLEQ==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/lerc": {
 | 
				
			||||||
 | 
					      "version": "2.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/lerc/-/lerc-2.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-7qo1Mq8ZNmaR4USHHm615nEW2lPeeWJ3bTyoqFbd35DLx0LUH7C6ptt5FDCTAlbIzs3+WKrk5SkJvw8AFDE2hg==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/long": {
 | 
				
			||||||
 | 
					      "version": "5.2.3",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/mersenne-twister": {
 | 
				
			||||||
 | 
					      "version": "1.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/mersenne-twister/-/mersenne-twister-1.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-mUYWsMKNrm4lfygPkL3OfGzOPTR2DBlTkBNHM//F6hGp8cLThY897crAlk3/Jo17LEOOjQUrNAx6DvgO77QJkA==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/meshoptimizer": {
 | 
				
			||||||
 | 
					      "version": "0.21.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-0.21.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-WabtlpnK/GgD0GMwYd1fBTfYHf4MIcQPEg6dt7y4GuDcY51RzLSkSNE8ZogD7U3Vs2/fIf4z89TOLpA80EOnhg==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/nosleep.js": {
 | 
				
			||||||
 | 
					      "version": "0.12.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/nosleep.js/-/nosleep.js-0.12.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-9d1HbpKLh3sdWlhXMhU6MMH+wQzKkrgfRkYV0EBdvt99YJfj0ilCJrWRDYG2130Tm4GXbEoTCx5b34JSaP+HhA==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/ol": {
 | 
				
			||||||
 | 
					      "version": "10.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/ol/-/ol-10.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-/efepydpzhFoeczA9KAN5t7G0WpFhP46ZXEfSl6JbZ7ipQZ2axpkYB2qt0qcOUlPFYMt7/XQFApH652KB08tTg==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "@types/rbush": "^3.0.3",
 | 
				
			||||||
 | 
					        "color-rgba": "^3.0.0",
 | 
				
			||||||
 | 
					        "color-space": "^2.0.1",
 | 
				
			||||||
 | 
					        "earcut": "^3.0.0",
 | 
				
			||||||
 | 
					        "geotiff": "^2.0.7",
 | 
				
			||||||
 | 
					        "pbf": "4.0.1",
 | 
				
			||||||
 | 
					        "rbush": "^4.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "funding": {
 | 
				
			||||||
 | 
					        "type": "opencollective",
 | 
				
			||||||
 | 
					        "url": "https://opencollective.com/openlayers"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/ol-cesium": {
 | 
				
			||||||
 | 
					      "version": "2.17.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/ol-cesium/-/ol-cesium-2.17.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-XaMXjQYuq2eMPAgAx2e1wjN4I4QwfmPC+9YgU4xoMCj/MBj8oDQusyloQ4TaovypqbZg+0jJDDSZc7BhXckBwA==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "cesium": ">= 1.62.0",
 | 
				
			||||||
 | 
					        "ol": ">= 6.0.1 || 7 || 8"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/pako": {
 | 
				
			||||||
 | 
					      "version": "2.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/parse-headers": {
 | 
				
			||||||
 | 
					      "version": "2.0.5",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.5.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-ft3iAoLOB/MlwbNXgzy43SWGP6sQki2jQvAyBg/zDFAgr9bfNWZIUj42Kw2eJIl8kEi4PbgE6U1Zau/HwI75HA==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/pbf": {
 | 
				
			||||||
 | 
					      "version": "4.0.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/pbf/-/pbf-4.0.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-SuLdBvS42z33m8ejRbInMapQe8n0D3vN/Xd5fmWM3tufNgRQFBpaW2YVJxQZV4iPNqb0vEFvssMEo5w9c6BTIA==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "resolve-protobuf-schema": "^2.1.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "bin": {
 | 
				
			||||||
 | 
					        "pbf": "bin/pbf"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/protobufjs": {
 | 
				
			||||||
 | 
					      "version": "7.4.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.4.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==",
 | 
				
			||||||
 | 
					      "hasInstallScript": true,
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "@protobufjs/aspromise": "^1.1.2",
 | 
				
			||||||
 | 
					        "@protobufjs/base64": "^1.1.2",
 | 
				
			||||||
 | 
					        "@protobufjs/codegen": "^2.0.4",
 | 
				
			||||||
 | 
					        "@protobufjs/eventemitter": "^1.1.0",
 | 
				
			||||||
 | 
					        "@protobufjs/fetch": "^1.1.0",
 | 
				
			||||||
 | 
					        "@protobufjs/float": "^1.0.2",
 | 
				
			||||||
 | 
					        "@protobufjs/inquire": "^1.1.0",
 | 
				
			||||||
 | 
					        "@protobufjs/path": "^1.1.2",
 | 
				
			||||||
 | 
					        "@protobufjs/pool": "^1.1.0",
 | 
				
			||||||
 | 
					        "@protobufjs/utf8": "^1.1.0",
 | 
				
			||||||
 | 
					        "@types/node": ">=13.7.0",
 | 
				
			||||||
 | 
					        "long": "^5.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": ">=12.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/protocol-buffers-schema": {
 | 
				
			||||||
 | 
					      "version": "3.6.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/protocol-buffers-schema/-/protocol-buffers-schema-3.6.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-TdDRD+/QNdrCGCE7v8340QyuXd4kIWIgapsE2+n/SaGiSSbomYl4TjHlvIoCWRpE7wFt02EpB35VVA2ImcBVqw==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/quick-lru": {
 | 
				
			||||||
 | 
					      "version": "6.1.2",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-6.1.2.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-AAFUA5O1d83pIHEhJwWCq/RQcRukCkn/NSm2QsTEMle5f2hP0ChI2+3Xb051PZCkLryI/Ir1MVKviT2FIloaTQ==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": ">=12"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "funding": {
 | 
				
			||||||
 | 
					        "url": "https://github.com/sponsors/sindresorhus"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/quickselect": {
 | 
				
			||||||
 | 
					      "version": "3.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/quickselect/-/quickselect-3.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/rbush": {
 | 
				
			||||||
 | 
					      "version": "4.0.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/rbush/-/rbush-4.0.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-IP0UpfeWQujYC8Jg162rMNc01Rf0gWMMAb2Uxus/Q0qOFw4lCcq6ZnQEZwUoJqWyUGJ9th7JjwI4yIWo+uvoAQ==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "quickselect": "^3.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/resolve-protobuf-schema": {
 | 
				
			||||||
 | 
					      "version": "2.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/resolve-protobuf-schema/-/resolve-protobuf-schema-2.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "protocol-buffers-schema": "^3.3.1"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/rxjs": {
 | 
				
			||||||
 | 
					      "version": "7.8.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.1.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/topojson-client": {
 | 
				
			||||||
 | 
					      "version": "3.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/topojson-client/-/topojson-client-3.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-605uxS6bcYxGXw9qi62XyrV6Q3xwbndjachmNxu8HWTtVPxZfEJN9fd/SZS1Q54Sn2y0TMyMxFj/cJINqGHrKw==",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "commander": "2"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "bin": {
 | 
				
			||||||
 | 
					        "topo2geo": "bin/topo2geo",
 | 
				
			||||||
 | 
					        "topomerge": "bin/topomerge",
 | 
				
			||||||
 | 
					        "topoquantize": "bin/topoquantize"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "node_modules/tslib": {
 | 
					    "node_modules/tslib": {
 | 
				
			||||||
      "version": "2.5.0",
 | 
					      "version": "2.5.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg=="
 | 
					      "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg=="
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/undici-types": {
 | 
				
			||||||
 | 
					      "version": "6.19.8",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/urijs": {
 | 
				
			||||||
 | 
					      "version": "1.19.11",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/web-worker": {
 | 
				
			||||||
 | 
					      "version": "1.3.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.3.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-BSR9wyRsy/KOValMgd5kMyr3JzpdeoR9KVId8u5GVlTTAtNChlsE4yTxeY7zMdNSyOmoKBv8NH2qeRY9Tg+IaA==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/xml-utils": {
 | 
				
			||||||
 | 
					      "version": "1.10.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/xml-utils/-/xml-utils-1.10.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-Dn6vJ1Z9v1tepSjvnCpwk5QqwIPcEFKdgnjqfYOABv1ngSofuAhtlugcUC3ehS1OHdgDWSG6C5mvj+Qm15udTQ==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/zone.js": {
 | 
				
			||||||
 | 
					      "version": "0.14.10",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.14.10.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-YGAhaO7J5ywOXW6InXNlLmfU194F8lVgu7bRntUF3TiG8Y3nBK0x1UJJuHUP/e8IyihkjCYqhCScpSwnlaSRkQ==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/zstddec": {
 | 
				
			||||||
 | 
					      "version": "0.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/zstddec/-/zstddec-0.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-w2NTI8+3l3eeltKAdK8QpiLo/flRAr2p8AGeakfMZOXBxOg9HIu4LVDxBi81sYgVhFhdJjv1OrB5ssI8uFPoLg==",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,14 +4,13 @@
 | 
				
			|||||||
  "publishConfig": {
 | 
					  "publishConfig": {
 | 
				
			||||||
    "registry": "https://repository.akkerweb.nl/repository/npm-hosted/"
 | 
					    "registry": "https://repository.akkerweb.nl/repository/npm-hosted/"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "peerDependencies": {
 | 
					 | 
				
			||||||
    "@angular/common":  "^17.3.3",
 | 
					 | 
				
			||||||
    "@angular/core":  "^17.3.3",
 | 
					 | 
				
			||||||
    "ng-openlayers": "17.1.3",
 | 
					 | 
				
			||||||
    "cesium": ">=1.82.1",
 | 
					 | 
				
			||||||
    "ol-cesium": ">=2.13.0"
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "tslib": "^2.0.0"
 | 
					    "tslib": "^2.0.0"
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "peerDependencies": {
 | 
				
			||||||
 | 
					    "@angular/common": "18.2.3",
 | 
				
			||||||
 | 
					    "@angular/core":  "18.2.3",
 | 
				
			||||||
 | 
					    "cesium": "^1.97.0",
 | 
				
			||||||
 | 
					    "ol-cesium": ">=2.13.0"
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -1,14 +1,15 @@
 | 
				
			|||||||
import { NgModule } from '@angular/core';
 | 
					import { NgModule } from '@angular/core';
 | 
				
			||||||
 | 
					import { AppCommonModule } from '@farmmaps/common';
 | 
				
			||||||
 | 
					import { AppCommonMapModule } from '@farmmaps/common-map';
 | 
				
			||||||
 | 
					import { AngularOpenlayersModule } from '@farmmaps/ng-openlayers';
 | 
				
			||||||
import { Switch2D3DComponent } from './components/olcs/switch2d3d/switch2d3d.component';
 | 
					import { Switch2D3DComponent } from './components/olcs/switch2d3d/switch2d3d.component';
 | 
				
			||||||
import { AppCommonModule} from '@farmmaps/common';
 | 
					 | 
				
			||||||
import { AppCommonMapModule} from '@farmmaps/common-map';
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
@NgModule({
 | 
					@NgModule({
 | 
				
			||||||
  declarations: [Switch2D3DComponent],
 | 
					  declarations: [Switch2D3DComponent],
 | 
				
			||||||
  imports: [
 | 
					  imports: [
 | 
				
			||||||
    AppCommonModule,
 | 
					    AppCommonModule,
 | 
				
			||||||
    AppCommonMapModule
 | 
					    AppCommonMapModule,
 | 
				
			||||||
 | 
					    AngularOpenlayersModule,
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
  exports: [Switch2D3DComponent]
 | 
					  exports: [Switch2D3DComponent]
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
import { Component, OnInit,Input,Host  } from '@angular/core';
 | 
					import { Component, OnInit,Input,Host  } from '@angular/core';
 | 
				
			||||||
import { Interaction} from 'ol/interaction';
 | 
					import { Interaction} from 'ol/interaction';
 | 
				
			||||||
import { MapComponent } from 'ng-openlayers';
 | 
					import { MapComponent } from '@farmmaps/ng-openlayers';
 | 
				
			||||||
import OLCesium from 'olcs/OLCesium';
 | 
					import OLCesium from 'olcs/OLCesium';
 | 
				
			||||||
import RasterSynchronizer from 'olcs/RasterSynchronizer';
 | 
					import RasterSynchronizer from 'olcs/RasterSynchronizer';
 | 
				
			||||||
import VectorSynchronizer from 'olcs/VectorSynchronizer';
 | 
					import VectorSynchronizer from 'olcs/VectorSynchronizer';
 | 
				
			||||||
@@ -49,7 +49,11 @@ export class Switch2D3DComponent {
 | 
				
			|||||||
      this.interactions=[];
 | 
					      this.interactions=[];
 | 
				
			||||||
      this.map.instance.getInteractions().forEach((i) => {
 | 
					      this.map.instance.getInteractions().forEach((i) => {
 | 
				
			||||||
        if(i.getActive()) {
 | 
					        if(i.getActive()) {
 | 
				
			||||||
          this.interactions.push(i);
 | 
					          // AW-6241 TODO How to fix?
 | 
				
			||||||
 | 
					          // error TS2345: Argument of type 'import("C:/Project/Farmmaps/FarmMapsLib/node_modules/ol/interaction/Interaction").default'
 | 
				
			||||||
 | 
					          // is not assignable to parameter of type 'import("C:/Project/Farmmaps/FarmMapsLib/projects/common-map3d/node_modules/ol/interaction/Interaction").default'.
 | 
				
			||||||
 | 
					          // Line below commented out
 | 
				
			||||||
 | 
					          // this.interactions.push(i);
 | 
				
			||||||
          i.setActive(false);
 | 
					          i.setActive(false);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										3751
									
								
								projects/common/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3751
									
								
								projects/common/package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -1,25 +1,25 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "@farmmaps/common",
 | 
					  "name": "@farmmaps/common",
 | 
				
			||||||
  "version": "2.0.0",
 | 
					  "version": "2.1.0",
 | 
				
			||||||
  "publishConfig": {
 | 
					  "publishConfig": {
 | 
				
			||||||
    "registry": "https://repository.akkerweb.nl/repository/npm-hosted/"
 | 
					    "registry": "https://repository.akkerweb.nl/repository/npm-hosted/"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "peerDependencies": {
 | 
					  "peerDependencies": {
 | 
				
			||||||
    "@ng-bootstrap/ng-bootstrap": "^16.0.0",
 | 
					    "@ng-bootstrap/ng-bootstrap": "^17.0.1",
 | 
				
			||||||
    "@angular/common": "^17.3.3",
 | 
					    "@angular/common": "18.2.3",
 | 
				
			||||||
    "@angular/core": "^17.3.3",
 | 
					    "@angular/core": "18.2.3",
 | 
				
			||||||
    "@angular/forms": "^17.3.3",
 | 
					    "@angular/forms": "18.2.3",
 | 
				
			||||||
    "@ngrx/effects": "^17",
 | 
					    "@ngrx/effects": "^18.0.2",
 | 
				
			||||||
    "@ngrx/router-store": "^17",
 | 
					    "@ngrx/router-store": "^18.0.2",
 | 
				
			||||||
    "@ngrx/store": "^17",
 | 
					    "@ngrx/store": "^18.0.2",
 | 
				
			||||||
    "tassign": "^1.0.0",
 | 
					    "tassign": "^1.0.0",
 | 
				
			||||||
    "bootstrap": "^5.2.0",
 | 
					    "bootstrap": "^5.3.3",
 | 
				
			||||||
    "@microsoft/signalr": "^3.1.16",
 | 
					    "@microsoft/signalr": "^3.1.16",
 | 
				
			||||||
    "ngx-uploadx": "^6.2.0",
 | 
					    "ngx-uploadx": "^6.2.0",
 | 
				
			||||||
    "angular-oauth2-oidc": "^13",
 | 
					    "angular-oauth2-oidc": "^17.0.2",
 | 
				
			||||||
    "moment": "^2.29.4",
 | 
					    "moment": "^2.29.4",
 | 
				
			||||||
    "ngx-avatars": "1.7.0",
 | 
					    "ngx-avatars": "^1.8.0",
 | 
				
			||||||
    "ngx-image-cropper": "^7.2.1",
 | 
					    "ngx-image-cropper": "^7.0.0",
 | 
				
			||||||
    "ngx-clipboard": "16.0.0"
 | 
					    "ngx-clipboard": "^16.0.0"
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -71,6 +71,8 @@ export const TOGGLENOTIFICATIONMENU = '[AppCommon] ToggleNotificationMenu';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export const TOGGLEHELPMENU = '[AppCommon] ToggleHelpMenu';
 | 
					export const TOGGLEHELPMENU = '[AppCommon] ToggleHelpMenu';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export const TOGGLESETTINGMENU = '[AppCommon] ToggleSettingMenu';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const SETMENUVISIBLE = '[AppCommon] SetMenuVisible';
 | 
					export const SETMENUVISIBLE = '[AppCommon] SetMenuVisible';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const ONLINE = '[AppCommon] Online';
 | 
					export const ONLINE = '[AppCommon] Online';
 | 
				
			||||||
@@ -81,6 +83,11 @@ export const SETPAGEMODE = '[AppCommon] SetPageMode';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export const SETUNREADNOTIFICATIONS = '[AppCommon] SetUnreadNotifications';
 | 
					export const SETUNREADNOTIFICATIONS = '[AppCommon] SetUnreadNotifications';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export const SWITCHLANGUAGE = '[AppCommon] SwitchLanguage';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export const SETSETTINGMENUBACKGROUNDCOLOR = '[AppCommon] SetSettingMenuBackgroundColor';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export class InitUser implements Action {
 | 
					export class InitUser implements Action {
 | 
				
			||||||
  readonly type = INITUSER;
 | 
					  readonly type = INITUSER;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -332,6 +339,12 @@ export class ToggleHelpMenu implements Action {
 | 
				
			|||||||
  constructor() { }
 | 
					  constructor() { }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export class ToggleSettingMenu implements Action {
 | 
				
			||||||
 | 
					  readonly type = TOGGLESETTINGMENU;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor() { }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export class SetMenuVisible implements Action {
 | 
					export class SetMenuVisible implements Action {
 | 
				
			||||||
  readonly type = SETMENUVISIBLE;
 | 
					  readonly type = SETMENUVISIBLE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -363,6 +376,17 @@ export class SetUnreadNotifications implements Action {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
 | 
					export class SwitchLanguage implements Action {
 | 
				
			||||||
 | 
					  readonly type = SWITCHLANGUAGE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(public locale:string) { }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export class SetSettingMenuBackgroundColor implements Action {
 | 
				
			||||||
 | 
					  readonly type = SETSETTINGMENUBACKGROUNDCOLOR;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(public color:string) { }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export type Actions = OpenModal
 | 
					export type Actions = OpenModal
 | 
				
			||||||
  | InitRoot
 | 
					  | InitRoot
 | 
				
			||||||
@@ -408,7 +432,10 @@ export type Actions = OpenModal
 | 
				
			|||||||
  | ToggleAppMenu
 | 
					  | ToggleAppMenu
 | 
				
			||||||
  | ToggleNotificationMenu
 | 
					  | ToggleNotificationMenu
 | 
				
			||||||
  | ToggleHelpMenu
 | 
					  | ToggleHelpMenu
 | 
				
			||||||
 | 
					  | ToggleSettingMenu
 | 
				
			||||||
  | NotificationEvent
 | 
					  | NotificationEvent
 | 
				
			||||||
  | SetUnreadNotifications;
 | 
					  | SetUnreadNotifications
 | 
				
			||||||
 | 
					  | SwitchLanguage
 | 
				
			||||||
 | 
					  | SetSettingMenuBackgroundColor;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,6 +13,7 @@ import { SchemaService } from './services/schema.service';
 | 
				
			|||||||
import { FolderService } from './services/folder.service';
 | 
					import { FolderService } from './services/folder.service';
 | 
				
			||||||
import { TimespanService } from './services/timespan.service';
 | 
					import { TimespanService } from './services/timespan.service';
 | 
				
			||||||
import { ItemService } from './services/item.service';
 | 
					import { ItemService } from './services/item.service';
 | 
				
			||||||
 | 
					import { TaskService } from './services/task.service';
 | 
				
			||||||
import { AdminService } from './services/admin.service';
 | 
					import { AdminService } from './services/admin.service';
 | 
				
			||||||
import { EventService } from './services/event.service';
 | 
					import { EventService } from './services/event.service';
 | 
				
			||||||
import { TypeaheadService } from './services/typeahead.service';
 | 
					import { TypeaheadService } from './services/typeahead.service';
 | 
				
			||||||
@@ -44,6 +45,7 @@ export {
 | 
				
			|||||||
  ItemTypeService,
 | 
					  ItemTypeService,
 | 
				
			||||||
  TimespanService,
 | 
					  TimespanService,
 | 
				
			||||||
  ItemService,
 | 
					  ItemService,
 | 
				
			||||||
 | 
					  TaskService,
 | 
				
			||||||
  AdminService,
 | 
					  AdminService,
 | 
				
			||||||
  EventService,
 | 
					  EventService,
 | 
				
			||||||
  TypeaheadService,
 | 
					  TypeaheadService,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,16 +1,16 @@
 | 
				
			|||||||
// angular modules
 | 
					// angular modules
 | 
				
			||||||
import { NgModule, APP_INITIALIZER, ModuleWithProviders, Injector, Optional, SkipSelf,InjectionToken } from '@angular/core';
 | 
					import { CommonModule } from '@angular/common';
 | 
				
			||||||
import { CommonModule, DatePipe } from '@angular/common';
 | 
					import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
 | 
				
			||||||
import { HttpClientModule, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
 | 
					import { InjectionToken, NgModule } from '@angular/core';
 | 
				
			||||||
import { FormsModule } from '@angular/forms';
 | 
					import { FormsModule } from '@angular/forms';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// external modules
 | 
					// external modules
 | 
				
			||||||
import { OAuthModule, AuthConfig, OAuthService, OAuthStorage } from 'angular-oauth2-oidc';
 | 
					 | 
				
			||||||
import { StoreModule, Store } from '@ngrx/store';
 | 
					 | 
				
			||||||
import { EffectsModule } from '@ngrx/effects';
 | 
					 | 
				
			||||||
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
 | 
					import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
 | 
				
			||||||
import { UploadxModule } from 'ngx-uploadx';
 | 
					import { EffectsModule } from '@ngrx/effects';
 | 
				
			||||||
 | 
					import { StoreModule } from '@ngrx/store';
 | 
				
			||||||
 | 
					import { OAuthModule } from 'angular-oauth2-oidc';
 | 
				
			||||||
import { ClipboardModule } from 'ngx-clipboard';
 | 
					import { ClipboardModule } from 'ngx-clipboard';
 | 
				
			||||||
 | 
					import { UploadxModule } from 'ngx-uploadx';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// routing module
 | 
					// routing module
 | 
				
			||||||
@@ -19,129 +19,71 @@ import { AppCommonRoutingModule } from './common-routing.module';
 | 
				
			|||||||
import { MODULE_NAME } from './module-name';
 | 
					import { MODULE_NAME } from './module-name';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//components
 | 
					//components
 | 
				
			||||||
import { SafePipe } from './shared/safe.pipe';
 | 
					 | 
				
			||||||
import { AuthConfigFactory, IAuthconfigFactory } from './shared/authconfigFactory';
 | 
					 | 
				
			||||||
import { AppComponent } from './components/app/app.component';
 | 
					 | 
				
			||||||
import { AuthCallbackComponent } from './components/auth-callback/auth-callback.component';
 | 
					 | 
				
			||||||
import { SessionClearedComponent } from './components/session-cleared/session-cleared.component';
 | 
					 | 
				
			||||||
import { ResumableFileUploadComponent } from './components/resumable-file-upload/resumable-file-upload.component';
 | 
					 | 
				
			||||||
import { NotFoundComponent } from './components/not-found/not-found.component';
 | 
					 | 
				
			||||||
import { NotImplementedComponent } from './components/not-implemented/not-implemented.component';
 | 
					 | 
				
			||||||
import { SidePanelComponent } from './components/side-panel/side-panel.component';
 | 
					 | 
				
			||||||
import { TimespanComponent } from './components/timespan/timespan.component';
 | 
					 | 
				
			||||||
import { TagInputComponent } from './components/tag-input/tag-input.component';
 | 
					 | 
				
			||||||
import { MenuBackgroundComponent } from './components/menu-background/menu-background.component';
 | 
					 | 
				
			||||||
import { HasPackageDirective} from './components/has-package/has-package.directive';
 | 
					 | 
				
			||||||
import { PackageExistsDirective} from './components/package-exists/package-exists.directive';
 | 
					 | 
				
			||||||
import { HasClaimDirective } from './components/has-claim/has-claim.directive';
 | 
					 | 
				
			||||||
import { HasRoleDirective } from './components/has-role/has-role.directive';
 | 
					 | 
				
			||||||
import { UserMenuComponent} from './components/user-menu/user-menu.component';
 | 
					 | 
				
			||||||
import { ThumbnailComponent } from './components/thumbnail/thumbnail.component';
 | 
					 | 
				
			||||||
import { Alert } from './enumerations/alert.enum';
 | 
					 | 
				
			||||||
import { IEventMessage } from './models/event.message';
 | 
					 | 
				
			||||||
import { IItem, Item } from './models/item';
 | 
					 | 
				
			||||||
import { WeatherCurrentObservation } from './models/weatherCurrentObservation';
 | 
					 | 
				
			||||||
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 { IItemTask, ItemTask } from './models/itemTask';
 | 
					 | 
				
			||||||
import { IListItem } from './models/list.item';
 | 
					 | 
				
			||||||
import { ITypeaheadItem } from './models/typeahead.item'
 | 
					 | 
				
			||||||
import { IJsonline } from './models/json-line';
 | 
					 | 
				
			||||||
import { ISenMLItem } from './models/senml-item';
 | 
					 | 
				
			||||||
import { IPackage,IPackages } from './models/package';
 | 
					 | 
				
			||||||
import { IUser } from './models/user';
 | 
					 | 
				
			||||||
import { IQueryState } from './models/query.state';
 | 
					 | 
				
			||||||
import { IDataLayer } from './models/data.layer';
 | 
					 | 
				
			||||||
import { IColor,IGradientstop} from './models/gradient';
 | 
					 | 
				
			||||||
import * as commonActions from './actions/app-common.actions';
 | 
					 | 
				
			||||||
import * as commonReducers from './reducers/app-common.reducer';
 | 
					 | 
				
			||||||
import * as commonEffects from './effects/app-common.effects';
 | 
					 | 
				
			||||||
import { SecureOAuthStorage} from './shared/secureOAuthStorage';
 | 
					 | 
				
			||||||
import { GradientComponent } from './components/gradient/gradient.component';
 | 
					 | 
				
			||||||
import { GradientSelectComponent } from './components/gradient-select/gradient-select.component';
 | 
					 | 
				
			||||||
import { AppMenuComponent } from './components/app-menu/app-menu.component';
 | 
					 | 
				
			||||||
import { NotificationMenuComponent} from './components/notification-menu/notification-menu.component';
 | 
					 | 
				
			||||||
import { HelpMenuComponent} from './components/help-menu/help-menu.component';
 | 
					 | 
				
			||||||
import { BackButtonComponent } from './components/back-button/back-button.component';
 | 
					 | 
				
			||||||
import { EditImageModalComponent } from './components/edit-image-modal/edit-image-modal.component';
 | 
					 | 
				
			||||||
import { AvatarComponent } from './components/avatar/avatar.component';
 | 
					 | 
				
			||||||
import { ItemLinkComponent } from './components/item-link/item-link.component';
 | 
					 | 
				
			||||||
import { AvatarModule } from 'ngx-avatars';
 | 
					import { AvatarModule } from 'ngx-avatars';
 | 
				
			||||||
import { ImageCropperModule } from 'ngx-image-cropper';
 | 
					import { ImageCropperModule } from 'ngx-image-cropper';
 | 
				
			||||||
 | 
					import * as commonActions from './actions/app-common.actions';
 | 
				
			||||||
 | 
					import { AppMenuComponent } from './components/app-menu/app-menu.component';
 | 
				
			||||||
 | 
					import { AppComponent } from './components/app/app.component';
 | 
				
			||||||
 | 
					import { AuthCallbackComponent } from './components/auth-callback/auth-callback.component';
 | 
				
			||||||
 | 
					import { AvatarComponent } from './components/avatar/avatar.component';
 | 
				
			||||||
 | 
					import { BackButtonComponent } from './components/back-button/back-button.component';
 | 
				
			||||||
 | 
					import { EditImageModalComponent } from './components/edit-image-modal/edit-image-modal.component';
 | 
				
			||||||
 | 
					import { GradientSelectComponent } from './components/gradient-select/gradient-select.component';
 | 
				
			||||||
 | 
					import { GradientComponent } from './components/gradient/gradient.component';
 | 
				
			||||||
 | 
					import { HasClaimDirective } from './components/has-claim/has-claim.directive';
 | 
				
			||||||
 | 
					import { HasPackageDirective } from './components/has-package/has-package.directive';
 | 
				
			||||||
 | 
					import { HasRoleDirective } from './components/has-role/has-role.directive';
 | 
				
			||||||
 | 
					import { HelpMenuComponent } from './components/help-menu/help-menu.component';
 | 
				
			||||||
 | 
					import { SettingMenuComponent } from './components/setting-menu/setting-menu.component';
 | 
				
			||||||
 | 
					import { ItemLinkComponent } from './components/item-link/item-link.component';
 | 
				
			||||||
 | 
					import { MenuBackgroundComponent } from './components/menu-background/menu-background.component';
 | 
				
			||||||
 | 
					import { NotFoundComponent } from './components/not-found/not-found.component';
 | 
				
			||||||
 | 
					import { NotImplementedComponent } from './components/not-implemented/not-implemented.component';
 | 
				
			||||||
 | 
					import { NotificationMenuComponent } from './components/notification-menu/notification-menu.component';
 | 
				
			||||||
 | 
					import { PackageExistsDirective } from './components/package-exists/package-exists.directive';
 | 
				
			||||||
 | 
					import { ResumableFileUploadComponent } from './components/resumable-file-upload/resumable-file-upload.component';
 | 
				
			||||||
 | 
					import { SessionClearedComponent } from './components/session-cleared/session-cleared.component';
 | 
				
			||||||
 | 
					import { SidePanelComponent } from './components/side-panel/side-panel.component';
 | 
				
			||||||
 | 
					import { TagInputComponent } from './components/tag-input/tag-input.component';
 | 
				
			||||||
 | 
					import { ThumbnailComponent } from './components/thumbnail/thumbnail.component';
 | 
				
			||||||
 | 
					import { TimespanComponent } from './components/timespan/timespan.component';
 | 
				
			||||||
 | 
					import { UserMenuComponent } from './components/user-menu/user-menu.component';
 | 
				
			||||||
 | 
					import * as commonEffects from './effects/app-common.effects';
 | 
				
			||||||
 | 
					import { Alert } from './enumerations/alert.enum';
 | 
				
			||||||
 | 
					import { IDataLayer } from './models/data.layer';
 | 
				
			||||||
 | 
					import { IEventMessage } from './models/event.message';
 | 
				
			||||||
 | 
					import { IColor, IGradientstop } from './models/gradient';
 | 
				
			||||||
 | 
					import { IItem, Item } from './models/item';
 | 
				
			||||||
 | 
					import { IItemType } from './models/item.type';
 | 
				
			||||||
 | 
					import { IItemTypes } from './models/item.types';
 | 
				
			||||||
 | 
					import { IItemLinkType } from './models/itemlink.type';
 | 
				
			||||||
 | 
					import { IItemTask, ItemTask } from './models/itemTask';
 | 
				
			||||||
 | 
					import { IJsonline } from './models/json-line';
 | 
				
			||||||
 | 
					import { IListItem } from './models/list.item';
 | 
				
			||||||
 | 
					import { IPackage, IPackages } from './models/package';
 | 
				
			||||||
 | 
					import { IQueryState } from './models/query.state';
 | 
				
			||||||
 | 
					import { ISenMLItem } from './models/senml-item';
 | 
				
			||||||
 | 
					import { ITypeaheadItem } from './models/typeahead.item';
 | 
				
			||||||
 | 
					import { IUrlType } from './models/url.type';
 | 
				
			||||||
 | 
					import { IUser } from './models/user';
 | 
				
			||||||
 | 
					import { WeatherCurrentObservation } from './models/weatherCurrentObservation';
 | 
				
			||||||
 | 
					import * as commonReducers from './reducers/app-common.reducer';
 | 
				
			||||||
 | 
					import { AuthConfigFactory, IAuthconfigFactory } from './shared/authconfigFactory';
 | 
				
			||||||
 | 
					import { SafePipe } from './shared/safe.pipe';
 | 
				
			||||||
 | 
					import { SecureOAuthStorage } from './shared/secureOAuthStorage';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const FM_COMMON_STARTPAGE = new InjectionToken<string>('fm-common-startpage');
 | 
					export const FM_COMMON_STARTPAGE = new InjectionToken<string>('fm-common-startpage');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export {
 | 
					export {
 | 
				
			||||||
  SafePipe,
 | 
					  Alert, AppComponent, AuthCallbackComponent, AuthConfigFactory, AvatarComponent, BackButtonComponent, commonActions,
 | 
				
			||||||
  AuthCallbackComponent,
 | 
					  commonReducers, EditImageModalComponent,
 | 
				
			||||||
  AppComponent,
 | 
					 | 
				
			||||||
  SessionClearedComponent,
 | 
					 | 
				
			||||||
  ResumableFileUploadComponent,
 | 
					 | 
				
			||||||
  NotFoundComponent,
 | 
					 | 
				
			||||||
  NotImplementedComponent,
 | 
					 | 
				
			||||||
  SidePanelComponent,
 | 
					 | 
				
			||||||
  TimespanComponent,
 | 
					 | 
				
			||||||
  TagInputComponent,
 | 
					 | 
				
			||||||
  UserMenuComponent,
 | 
					 | 
				
			||||||
  ThumbnailComponent,
 | 
					 | 
				
			||||||
  HasPackageDirective,
 | 
					 | 
				
			||||||
  PackageExistsDirective,
 | 
					 | 
				
			||||||
  HasClaimDirective,
 | 
					 | 
				
			||||||
  HasRoleDirective,
 | 
					 | 
				
			||||||
  Alert,
 | 
					 | 
				
			||||||
  IEventMessage,
 | 
					 | 
				
			||||||
  IItem,
 | 
					 | 
				
			||||||
  Item,
 | 
					 | 
				
			||||||
  IItemType,
 | 
					 | 
				
			||||||
  IItemLinkType,
 | 
					 | 
				
			||||||
  IUrlType,
 | 
					 | 
				
			||||||
  IItemTypes,
 | 
					 | 
				
			||||||
  IItemTask,
 | 
					 | 
				
			||||||
  ItemTask,
 | 
					 | 
				
			||||||
  IListItem,
 | 
					 | 
				
			||||||
  ITypeaheadItem,
 | 
					 | 
				
			||||||
  IUser,
 | 
					 | 
				
			||||||
  IQueryState,
 | 
					 | 
				
			||||||
  IPackage,
 | 
					 | 
				
			||||||
  IPackages,
 | 
					 | 
				
			||||||
  commonActions,
 | 
					 | 
				
			||||||
  commonReducers,
 | 
					 | 
				
			||||||
  IAuthconfigFactory,
 | 
					 | 
				
			||||||
  AuthConfigFactory,
 | 
					 | 
				
			||||||
  MenuBackgroundComponent,
 | 
					 | 
				
			||||||
  SecureOAuthStorage,
 | 
					 | 
				
			||||||
  WeatherCurrentObservation,
 | 
					 | 
				
			||||||
  IJsonline,
 | 
					 | 
				
			||||||
  ISenMLItem,
 | 
					 | 
				
			||||||
  IDataLayer,
 | 
					 | 
				
			||||||
  IColor,
 | 
					 | 
				
			||||||
  IGradientstop,
 | 
					 | 
				
			||||||
  BackButtonComponent,
 | 
					 | 
				
			||||||
  AvatarComponent,
 | 
					 | 
				
			||||||
  ItemLinkComponent,
 | 
					 | 
				
			||||||
  EditImageModalComponent,
 | 
					 | 
				
			||||||
  GradientComponent,
 | 
					  GradientComponent,
 | 
				
			||||||
  GradientSelectComponent
 | 
					  GradientSelectComponent, HasClaimDirective, HasPackageDirective, HasRoleDirective, IAuthconfigFactory, IColor, IDataLayer, IEventMessage, IGradientstop, IItem, IItemLinkType, IItemTask, IItemType, IItemTypes, IJsonline, IListItem, IPackage,
 | 
				
			||||||
 | 
					  IPackages, IQueryState, ISenMLItem, Item, ItemLinkComponent, ItemTask, ITypeaheadItem, IUrlType, IUser, MenuBackgroundComponent, NotFoundComponent,
 | 
				
			||||||
 | 
					  NotImplementedComponent, PackageExistsDirective, ResumableFileUploadComponent, SafePipe, SecureOAuthStorage, SessionClearedComponent, SidePanelComponent, TagInputComponent, ThumbnailComponent, TimespanComponent, UserMenuComponent, WeatherCurrentObservation
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@NgModule({
 | 
					@NgModule({ declarations: [
 | 
				
			||||||
  imports: [
 | 
					 | 
				
			||||||
    CommonModule,
 | 
					 | 
				
			||||||
    HttpClientModule,
 | 
					 | 
				
			||||||
    AppCommonRoutingModule,
 | 
					 | 
				
			||||||
    StoreModule.forFeature(MODULE_NAME, commonReducers.reducer),
 | 
					 | 
				
			||||||
    EffectsModule.forFeature([commonEffects.AppCommonEffects]),
 | 
					 | 
				
			||||||
    OAuthModule.forRoot(),
 | 
					 | 
				
			||||||
    NgbModule,
 | 
					 | 
				
			||||||
    FormsModule,
 | 
					 | 
				
			||||||
    UploadxModule,
 | 
					 | 
				
			||||||
    ClipboardModule,
 | 
					 | 
				
			||||||
    AvatarModule,
 | 
					 | 
				
			||||||
    ImageCropperModule
 | 
					 | 
				
			||||||
  ],
 | 
					 | 
				
			||||||
  declarations: [
 | 
					 | 
				
			||||||
        AppComponent,
 | 
					        AppComponent,
 | 
				
			||||||
        AuthCallbackComponent,
 | 
					        AuthCallbackComponent,
 | 
				
			||||||
        SidePanelComponent,
 | 
					        SidePanelComponent,
 | 
				
			||||||
@@ -163,6 +105,7 @@ export {
 | 
				
			|||||||
        AppMenuComponent,
 | 
					        AppMenuComponent,
 | 
				
			||||||
        NotificationMenuComponent,
 | 
					        NotificationMenuComponent,
 | 
				
			||||||
        HelpMenuComponent,
 | 
					        HelpMenuComponent,
 | 
				
			||||||
 | 
					        SettingMenuComponent,
 | 
				
			||||||
        BackButtonComponent,
 | 
					        BackButtonComponent,
 | 
				
			||||||
        ThumbnailComponent,
 | 
					        ThumbnailComponent,
 | 
				
			||||||
        EditImageModalComponent,
 | 
					        EditImageModalComponent,
 | 
				
			||||||
@@ -198,7 +141,16 @@ export {
 | 
				
			|||||||
        AvatarComponent,
 | 
					        AvatarComponent,
 | 
				
			||||||
        ItemLinkComponent,
 | 
					        ItemLinkComponent,
 | 
				
			||||||
        EditImageModalComponent
 | 
					        EditImageModalComponent
 | 
				
			||||||
  ]
 | 
					    ], imports: [CommonModule,
 | 
				
			||||||
})
 | 
					        AppCommonRoutingModule,
 | 
				
			||||||
 | 
					        StoreModule.forFeature(MODULE_NAME, commonReducers.reducer),
 | 
				
			||||||
 | 
					        EffectsModule.forFeature([commonEffects.AppCommonEffects]),
 | 
				
			||||||
 | 
					        OAuthModule.forRoot(),
 | 
				
			||||||
 | 
					        NgbModule,
 | 
				
			||||||
 | 
					        FormsModule,
 | 
				
			||||||
 | 
					        UploadxModule,
 | 
				
			||||||
 | 
					        ClipboardModule,
 | 
				
			||||||
 | 
					        AvatarModule,
 | 
				
			||||||
 | 
					        ImageCropperModule], providers: [provideHttpClient(withInterceptorsFromDi())] })
 | 
				
			||||||
export class AppCommonModule {
 | 
					export class AppCommonModule {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -33,6 +33,7 @@
 | 
				
			|||||||
    <fm-resumable-file-upload></fm-resumable-file-upload>
 | 
					    <fm-resumable-file-upload></fm-resumable-file-upload>
 | 
				
			||||||
  </ng-container>  
 | 
					  </ng-container>  
 | 
				
			||||||
  <div class="user-menu apponly">
 | 
					  <div class="user-menu apponly">
 | 
				
			||||||
 | 
					    <fm-setting-menu [user]="user|async" [showMenu]="settingMenuVisible|async" [backgroundColor]="settingMenuBackgroundColor|async"></fm-setting-menu>
 | 
				
			||||||
    <fm-help-menu [user]="user|async" [showMenu]="helpMenuVisible|async"></fm-help-menu>
 | 
					    <fm-help-menu [user]="user|async" [showMenu]="helpMenuVisible|async"></fm-help-menu>
 | 
				
			||||||
    <fm-notification-menu [user]="user|async" [unread]="unreadNotifications|async" [showMenu]="notificationMenuVisible|async"></fm-notification-menu>
 | 
					    <fm-notification-menu [user]="user|async" [unread]="unreadNotifications|async" [showMenu]="notificationMenuVisible|async"></fm-notification-menu>
 | 
				
			||||||
    <fm-app-menu [user]="user|async" [showMenu]="appMenuVisible|async"></fm-app-menu>
 | 
					    <fm-app-menu [user]="user|async" [showMenu]="appMenuVisible|async"></fm-app-menu>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -119,7 +119,7 @@ body { background: #f1f1f1; line-height: 18px; user-select:none;font-family: Lat
 | 
				
			|||||||
  max-height:0em;
 | 
					  max-height:0em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fm-help-menu,fm-app-menu,fm-user-menu,fm-notification-menu {
 | 
					fm-help-menu,fm-app-menu,fm-user-menu,fm-notification-menu,fm-setting-menu {
 | 
				
			||||||
  display: inline-block;
 | 
					  display: inline-block;
 | 
				
			||||||
  margin-left: 1rem;
 | 
					  margin-left: 1rem;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,10 +45,12 @@ export class AppComponent implements OnInit, OnDestroy {
 | 
				
			|||||||
  public accountMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetAccountMenuVisible);
 | 
					  public accountMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetAccountMenuVisible);
 | 
				
			||||||
  public appMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetAppMenuVisible);
 | 
					  public appMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetAppMenuVisible);
 | 
				
			||||||
  public notificationMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetNotificationMenuVisible);
 | 
					  public notificationMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetNotificationMenuVisible);
 | 
				
			||||||
 | 
					  public settingMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetSettingMenuVisible);
 | 
				
			||||||
  public helpMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetHelpMenuVisible);
 | 
					  public helpMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetHelpMenuVisible);
 | 
				
			||||||
  public unreadNotifications: Observable<number> = this.store$.select(appReducers.SelectgetUnreadNotifications);
 | 
					  public unreadNotifications: Observable<number> = this.store$.select(appReducers.SelectgetUnreadNotifications);
 | 
				
			||||||
  public user: Observable<IUser> = this.store$.select(appReducers.SelectGetUser);
 | 
					  public user: Observable<IUser> = this.store$.select(appReducers.SelectGetUser);
 | 
				
			||||||
  public isPageMode: Observable<boolean> = this.store$.select(appReducers.SelectGetIsPageMode);
 | 
					  public isPageMode: Observable<boolean> = this.store$.select(appReducers.SelectGetIsPageMode);
 | 
				
			||||||
 | 
					  public settingMenuBackgroundColor: Observable<string> = this.store$.select(appReducers.SelectGetSettingMenuBackgroundColor);
 | 
				
			||||||
  @Input() showUploadProgress = true;
 | 
					  @Input() showUploadProgress = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(
 | 
					  constructor(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
import {Component, HostListener} from '@angular/core';
 | 
					import { Location } from "@angular/common";
 | 
				
			||||||
import {Location} from "@angular/common";
 | 
					import { Component, EventEmitter, HostListener, Output } from '@angular/core';
 | 
				
			||||||
import { DeviceService} from '../../services/device.service';
 | 
					import { DeviceService } from '../../services/device.service';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Component({
 | 
					@Component({
 | 
				
			||||||
  selector: 'fm-back-button',
 | 
					  selector: 'fm-back-button',
 | 
				
			||||||
@@ -8,16 +8,18 @@ import { DeviceService} from '../../services/device.service';
 | 
				
			|||||||
  styleUrls: ['./back-button.component.scss']
 | 
					  styleUrls: ['./back-button.component.scss']
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
export class BackButtonComponent {
 | 
					export class BackButtonComponent {
 | 
				
			||||||
 | 
					  @Output() beforeLocationBack = new EventEmitter();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @HostListener('click')
 | 
					  @HostListener('click')
 | 
				
			||||||
  onBackClicked() {
 | 
					  onBackClicked() {
 | 
				
			||||||
 | 
					    this.beforeLocationBack.emit();
 | 
				
			||||||
    this.location.back();
 | 
					    this.location.back();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(private location: Location,private deviceService:DeviceService) { }
 | 
					  constructor(private location: Location,private deviceService:DeviceService) {    
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  public show() {
 | 
					  public show() {
 | 
				
			||||||
    return !this.deviceService.IsMobile();
 | 
					    return !this.deviceService.IsMobile();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@
 | 
				
			|||||||
        <i class="fal fa-image"></i>
 | 
					        <i class="fal fa-image"></i>
 | 
				
			||||||
        <div i18n>No image selected</div>
 | 
					        <div i18n>No image selected</div>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <image-cropper #imageCropper
 | 
					      <image-cropper #imageCropper output="base64" 
 | 
				
			||||||
      [imageChangedEvent]="imageChangedEvent"
 | 
					      [imageChangedEvent]="imageChangedEvent"
 | 
				
			||||||
      [maintainAspectRatio]="true"
 | 
					      [maintainAspectRatio]="true"
 | 
				
			||||||
      [format]="imageType"
 | 
					      [format]="imageType"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
import { Component, OnInit,ViewChild,ElementRef,EventEmitter, Output } from '@angular/core';
 | 
					import { Component, OnInit,ViewChild,ElementRef,EventEmitter, Output } from '@angular/core';
 | 
				
			||||||
import { HttpClient, HttpParams,HttpHeaders } from "@angular/common/http";
 | 
					import { HttpClient, HttpParams, HttpHeaders } from "@angular/common/http";
 | 
				
			||||||
import {NgbModal} from "@ng-bootstrap/ng-bootstrap"
 | 
					import {NgbModal} from "@ng-bootstrap/ng-bootstrap"
 | 
				
			||||||
import { ImageCroppedEvent,LoadedImage } from 'ngx-image-cropper';
 | 
					import { ImageCroppedEvent,LoadedImage } from 'ngx-image-cropper';
 | 
				
			||||||
import {ImageService } from '../../services/image.service';
 | 
					import {ImageService } from '../../services/image.service';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,6 +4,7 @@ div.resumable-file-upload {
 | 
				
			|||||||
  bottom: 0px;
 | 
					  bottom: 0px;
 | 
				
			||||||
  width: 300px;
 | 
					  width: 300px;
 | 
				
			||||||
  max-height: 250px;
 | 
					  max-height: 250px;
 | 
				
			||||||
 | 
					  z-index: 1;
 | 
				
			||||||
  /*z-index:2000 !important;*/
 | 
					  /*z-index:2000 !important;*/
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					<div>
 | 
				
			||||||
 | 
					    <div (click)="toggle($event)" class="rounded-circle menu-button hidden" [style.background-color]="backgroundColor" [ngClass]="{'hidden':!user || noContent}">
 | 
				
			||||||
 | 
					        <span i18n-title title="Settings"><i class="fas fa-gear" aria-hidden="true"></i></span>
 | 
				
			||||||
 | 
					        <div class="menu hidden" [ngClass]="{'hidden':!showMenu}">                                     
 | 
				
			||||||
 | 
					            <router-outlet name="setting-menu" (activate)="activateRoute()" (deactivate)="deActivateRoute()"></router-outlet>            
 | 
				
			||||||
 | 
					       </div>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
@@ -0,0 +1,80 @@
 | 
				
			|||||||
 | 
					.menu-button {
 | 
				
			||||||
 | 
					    background-color: gray;  
 | 
				
			||||||
 | 
					    display: inline-block;
 | 
				
			||||||
 | 
					    width: 2.5em;
 | 
				
			||||||
 | 
					    height: 2.5em;
 | 
				
			||||||
 | 
					    line-height: 2.5em;
 | 
				
			||||||
 | 
					    text-align: center;
 | 
				
			||||||
 | 
					    font-size: 1rem;
 | 
				
			||||||
 | 
					    position: relative;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					div.menu-button > span {
 | 
				
			||||||
 | 
					    color:white;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.menu {
 | 
				
			||||||
 | 
					    max-height: calc( 100vh - 4rem);
 | 
				
			||||||
 | 
					    //transition: max-height 0.2s;
 | 
				
			||||||
 | 
					    overflow: hidden;
 | 
				
			||||||
 | 
					    box-shadow: 0 0 20px rgba(0,0,0,.3);
 | 
				
			||||||
 | 
					    position: fixed;
 | 
				
			||||||
 | 
					    top: 3.4rem;
 | 
				
			||||||
 | 
					    right:0.5rem;
 | 
				
			||||||
 | 
					    left:0.5rem;
 | 
				
			||||||
 | 
					    background-color: #fff;
 | 
				
			||||||
 | 
					    border-radius: 0.25rem;
 | 
				
			||||||
 | 
					    padding: 0.5rem;
 | 
				
			||||||
 | 
					    z-index: 3;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					:host-context(.fullscreen)  .menu  {
 | 
				
			||||||
 | 
					    top:4em;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.card {      
 | 
				
			||||||
 | 
					    padding:0.5rem;
 | 
				
			||||||
 | 
					    min-width: 10rem;          
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.card-body {
 | 
				
			||||||
 | 
					    text-align: left;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.hidden {
 | 
				
			||||||
 | 
					    max-height: 0;   
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.menu.hidden {
 | 
				
			||||||
 | 
					    padding: 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.menu-button.hidden {
 | 
				
			||||||
 | 
					    overflow: hidden;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@media screen and (min-width: 44rem)  {
 | 
				
			||||||
 | 
					    .menu {
 | 
				
			||||||
 | 
					        position: absolute;
 | 
				
			||||||
 | 
					        top: 3rem;
 | 
				
			||||||
 | 
					        right:0;
 | 
				
			||||||
 | 
					        left: unset;
 | 
				
			||||||
 | 
					        max-width: 30em;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    :host-context(.fullscreen)  .menu  {
 | 
				
			||||||
 | 
					        top: 3rem;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.unread {
 | 
				
			||||||
 | 
					    display: block;
 | 
				
			||||||
 | 
					    position: absolute;
 | 
				
			||||||
 | 
					    top:-0.5em;
 | 
				
			||||||
 | 
					    right: -0.5em;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.unread.hidden {
 | 
				
			||||||
 | 
					    display: none;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,38 @@
 | 
				
			|||||||
 | 
					import { Input } from '@angular/core';
 | 
				
			||||||
 | 
					import { Component, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import { IUser } from '../../models/user';
 | 
				
			||||||
 | 
					import {Store} from '@ngrx/store';
 | 
				
			||||||
 | 
					import * as appReducers from '../../reducers/app-common.reducer';
 | 
				
			||||||
 | 
					import * as appActions from '../../actions/app-common.actions';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'fm-setting-menu',
 | 
				
			||||||
 | 
					  templateUrl: './setting-menu.component.html',
 | 
				
			||||||
 | 
					  styleUrls: ['./setting-menu.component.scss']
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class SettingMenuComponent implements OnInit {
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  @Input() user:IUser;
 | 
				
			||||||
 | 
					  @Input() showMenu:boolean;
 | 
				
			||||||
 | 
					  @Input() backgroundColor:string;
 | 
				
			||||||
 | 
					  public noContent = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(private store: Store<appReducers.State>) { }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit(): void {
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  toggle(event:MouseEvent) {
 | 
				
			||||||
 | 
					    event.stopPropagation();
 | 
				
			||||||
 | 
					    this.store.dispatch(new appActions.ToggleSettingMenu());
 | 
				
			||||||
 | 
					  } 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  activateRoute() {
 | 
				
			||||||
 | 
					    this.noContent=false;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  deActivateRoute() {
 | 
				
			||||||
 | 
					    this.noContent=true;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
import { Injectable } from '@angular/core';
 | 
					import { Injectable, Inject, LOCALE_ID } from '@angular/core';
 | 
				
			||||||
import { Router } from '@angular/router';
 | 
					import { Router } from '@angular/router';
 | 
				
			||||||
import { OAuthService,UserInfo } from 'angular-oauth2-oidc';
 | 
					import { OAuthService,UserInfo } from 'angular-oauth2-oidc';
 | 
				
			||||||
import { Store } from '@ngrx/store';
 | 
					import { Store } from '@ngrx/store';
 | 
				
			||||||
@@ -16,6 +16,7 @@ import {StateSerializerService} from '../services/state-serializer.service';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
@Injectable()
 | 
					@Injectable()
 | 
				
			||||||
export class AppCommonEffects {
 | 
					export class AppCommonEffects {
 | 
				
			||||||
 | 
					  locale: string;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  login$ =  createEffect(() => this.actions$.pipe(
 | 
					  login$ =  createEffect(() => this.actions$.pipe(
 | 
				
			||||||
    ofType(appCommonActions.LOGIN),
 | 
					    ofType(appCommonActions.LOGIN),
 | 
				
			||||||
@@ -47,11 +48,27 @@ export class AppCommonEffects {
 | 
				
			|||||||
    first(),
 | 
					    first(),
 | 
				
			||||||
    switchMap((action) => {
 | 
					    switchMap((action) => {
 | 
				
			||||||
        return zip(this.userService$.getCurrentUser(),from(this.oauthService$.loadUserProfile())).pipe(
 | 
					        return zip(this.userService$.getCurrentUser(),from(this.oauthService$.loadUserProfile())).pipe(
 | 
				
			||||||
        switchMap(([user,userInfo]) => {return of(new appCommonActions.InitUserSuccess(user,userInfo as UserInfo))} ),
 | 
					        switchMap(([user,userInfo]) => {
 | 
				
			||||||
 | 
					          if (location.hostname === 'localhost' || user.language === undefined || user.language === this.locale) 
 | 
				
			||||||
 | 
					          {
 | 
				
			||||||
 | 
					            return of(new appCommonActions.InitUserSuccess(user,userInfo as UserInfo))
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					          return of(new appCommonActions.SwitchLanguage(user.language))
 | 
				
			||||||
 | 
					        }),
 | 
				
			||||||
        catchError(error => of(new appCommonActions.Fail(error))))
 | 
					        catchError(error => of(new appCommonActions.Fail(error))))
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  )));
 | 
					  )));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  switchLanguage$ = createEffect(() => this.actions$.pipe(
 | 
				
			||||||
 | 
					    ofType(appCommonActions.SWITCHLANGUAGE),
 | 
				
			||||||
 | 
					    switchMap((action) => {
 | 
				
			||||||
 | 
					      const a = action as appCommonActions.SwitchLanguage;
 | 
				
			||||||
 | 
					      if (location.href.includes(`/${this.locale}/`)) {
 | 
				
			||||||
 | 
					        const newPath = location.href.replace(`/${this.locale}/`, `/${a.locale}/`);
 | 
				
			||||||
 | 
					        location.replace(newPath);
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      return of(undefined);
 | 
				
			||||||
 | 
					    })),{ dispatch:false});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  initUserPackages$ =  createEffect(() => this.actions$.pipe(
 | 
					  initUserPackages$ =  createEffect(() => this.actions$.pipe(
 | 
				
			||||||
    ofType(appCommonActions.INITUSERPACKAGES),
 | 
					    ofType(appCommonActions.INITUSERPACKAGES),
 | 
				
			||||||
@@ -139,16 +156,23 @@ export class AppCommonEffects {
 | 
				
			|||||||
          const itemType = itemtypes[a.item.itemType];
 | 
					          const itemType = itemtypes[a.item.itemType];
 | 
				
			||||||
          var editor = itemType && itemType.editor ? itemType.editor : editor;  
 | 
					          var editor = itemType && itemType.editor ? itemType.editor : editor;  
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      this.router$.navigate(['/editor',editor,'item', a.item.code])
 | 
					        if (editor == 'croppingscheme') { 
 | 
				
			||||||
 | 
					          // Exeception: no 'item' in route
 | 
				
			||||||
 | 
					          this.router$.navigate(['/editor', editor, a.item.code])
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        else {
 | 
				
			||||||
 | 
					          this.router$.navigate(['/editor', editor, 'item', a.item.code])
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        return [];
 | 
					        return [];
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
  )));
 | 
					    )
 | 
				
			||||||
 | 
					  ));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  viewItem$ =  createEffect(() => this.actions$.pipe(
 | 
					  viewItem$ =  createEffect(() => this.actions$.pipe(
 | 
				
			||||||
    ofType(appCommonActions.VIEWITEM),
 | 
					    ofType(appCommonActions.VIEWITEM),
 | 
				
			||||||
    withLatestFrom(this.store$.select(appCommonReducers.selectGetItemTypes)),
 | 
					    withLatestFrom(this.store$.select(appCommonReducers.selectGetItemTypes)),
 | 
				
			||||||
    switchMap(([action, itemtypes]) => {
 | 
					    switchMap(([action, itemtypes]) => {
 | 
				
			||||||
      const a = action as appCommonActions.EditItem;
 | 
					      const a = action as appCommonActions.ViewItem;
 | 
				
			||||||
      const itemType = itemtypes[a.item.itemType];
 | 
					      const itemType = itemtypes[a.item.itemType];
 | 
				
			||||||
      const viewer = itemType.viewer;
 | 
					      const viewer = itemType.viewer;
 | 
				
			||||||
      const editor = itemType.editor;
 | 
					      const editor = itemType.editor;
 | 
				
			||||||
@@ -201,7 +225,8 @@ export class AppCommonEffects {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(private actions$: Actions, private store$: Store<appCommonReducers.State>, private oauthService$: OAuthService, private itemService$: ItemService, private folderService$:FolderService, private userService$: UserService, private router$: Router, private stateSerializerService$:StateSerializerService) {
 | 
					  constructor(private actions$: Actions, private store$: Store<appCommonReducers.State>, private oauthService$: OAuthService, private itemService$: ItemService, private folderService$:FolderService, private userService$: UserService, private router$: Router, private stateSerializerService$:StateSerializerService, @Inject(LOCALE_ID) locale: string) {
 | 
				
			||||||
 | 
					    this.locale = locale;
 | 
				
			||||||
    store$.dispatch(new appCommonActions.LoadItemTypes());
 | 
					    store$.dispatch(new appCommonActions.LoadItemTypes());
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -25,6 +25,8 @@ export class Item implements IItem {
 | 
				
			|||||||
  public state?: number;
 | 
					  public state?: number;
 | 
				
			||||||
  public data?:any;
 | 
					  public data?:any;
 | 
				
			||||||
  public isEditable?:boolean;
 | 
					  public isEditable?:boolean;
 | 
				
			||||||
 | 
					  public owner?: string;
 | 
				
			||||||
 | 
					  public fullPath?: string;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor() {  
 | 
					  constructor() {  
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export interface IItemTask  {
 | 
					export interface IItemTask  {
 | 
				
			||||||
  code?: string;
 | 
					  code?: string;
 | 
				
			||||||
 | 
					  workflowCode?: string;
 | 
				
			||||||
  taskType?: string;
 | 
					  taskType?: string;
 | 
				
			||||||
  attributes?: any;
 | 
					  attributes?: any;
 | 
				
			||||||
  message?: string,
 | 
					  message?: string,
 | 
				
			||||||
@@ -11,6 +12,7 @@ export interface IItemTask  {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export class ItemTask implements IItemTask {
 | 
					export class ItemTask implements IItemTask {
 | 
				
			||||||
  public code?:string;
 | 
					  public code?:string;
 | 
				
			||||||
 | 
					  public workflowCode?: string;
 | 
				
			||||||
  public taskType?: string;
 | 
					  public taskType?: string;
 | 
				
			||||||
  public attributes?: any;
 | 
					  public attributes?: any;
 | 
				
			||||||
  public message?: string;
 | 
					  public message?: string;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,4 +11,5 @@ export interface IListItem {
 | 
				
			|||||||
    size?: number;
 | 
					    size?: number;
 | 
				
			||||||
    state?: number;
 | 
					    state?: number;
 | 
				
			||||||
    thumbnail?: boolean;
 | 
					    thumbnail?: boolean;
 | 
				
			||||||
 | 
					    owner?: string;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,9 +26,11 @@ export interface State {
 | 
				
			|||||||
  appMenuVisible: boolean,
 | 
					  appMenuVisible: boolean,
 | 
				
			||||||
  notificationMenuVisible: boolean,
 | 
					  notificationMenuVisible: boolean,
 | 
				
			||||||
  helpMenuVisible: boolean,
 | 
					  helpMenuVisible: boolean,
 | 
				
			||||||
 | 
					  settingMenuVisible: boolean,
 | 
				
			||||||
  unreadNotifications: number,
 | 
					  unreadNotifications: number,
 | 
				
			||||||
  isOnline: boolean,
 | 
					  isOnline: boolean,
 | 
				
			||||||
  isPageMode:boolean
 | 
					  isPageMode:boolean,
 | 
				
			||||||
 | 
					  settingMenuBackgroundColor:string
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const initialState: State = {
 | 
					export const initialState: State = {
 | 
				
			||||||
@@ -47,9 +49,11 @@ export const initialState: State = {
 | 
				
			|||||||
  appMenuVisible: false,
 | 
					  appMenuVisible: false,
 | 
				
			||||||
  notificationMenuVisible: false,
 | 
					  notificationMenuVisible: false,
 | 
				
			||||||
  helpMenuVisible: false,
 | 
					  helpMenuVisible: false,
 | 
				
			||||||
 | 
					  settingMenuVisible: false,
 | 
				
			||||||
  unreadNotifications: 0,
 | 
					  unreadNotifications: 0,
 | 
				
			||||||
  isOnline: true,
 | 
					  isOnline: true,
 | 
				
			||||||
  isPageMode: true
 | 
					  isPageMode: true,
 | 
				
			||||||
 | 
					  settingMenuBackgroundColor:'rgb(128, 128, 128)'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function reducer(state = initialState, action: appCommonActions.Actions ): State {
 | 
					export function reducer(state = initialState, action: appCommonActions.Actions ): State {
 | 
				
			||||||
@@ -106,26 +110,29 @@ export function reducer(state = initialState, action: appCommonActions.Actions )
 | 
				
			|||||||
      });
 | 
					      });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case appCommonActions.TOGGLEMENU: {
 | 
					    case appCommonActions.TOGGLEMENU: {
 | 
				
			||||||
      return tassign(state, { menuVisible: !state.menuVisible,accountMenuVisible:!state.menuVisible?false:state.accountMenuVisible,appMenuVisible:!state.menuVisible?false:state.appMenuVisible,notificationMenuVisible:!state.menuVisible?false:state.notificationMenuVisible,helpMenuVisible:!state.menuVisible?false:state.helpMenuVisible });
 | 
					      return tassign(state, { menuVisible: !state.menuVisible,accountMenuVisible:!state.menuVisible?false:state.accountMenuVisible,appMenuVisible:!state.menuVisible?false:state.appMenuVisible,notificationMenuVisible:!state.menuVisible?false:state.notificationMenuVisible,helpMenuVisible:!state.menuVisible?false:state.helpMenuVisible,settingMenuVisible:!state.menuVisible?false:state.settingMenuVisible });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case appCommonActions.TOGGLEACCOUNTMENU: {
 | 
					    case appCommonActions.TOGGLEACCOUNTMENU: {
 | 
				
			||||||
      return tassign(state, { accountMenuVisible: !state.accountMenuVisible,appMenuVisible:false,notificationMenuVisible:false,helpMenuVisible:false });
 | 
					      return tassign(state, { accountMenuVisible: !state.accountMenuVisible,appMenuVisible:false,notificationMenuVisible:false,helpMenuVisible:false,settingMenuVisible:false });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case appCommonActions.TOGGLEAPPMENU: {
 | 
					    case appCommonActions.TOGGLEAPPMENU: {
 | 
				
			||||||
      return tassign(state, { appMenuVisible: !state.appMenuVisible,accountMenuVisible:false,notificationMenuVisible:false,helpMenuVisible:false });
 | 
					      return tassign(state, { appMenuVisible: !state.appMenuVisible,accountMenuVisible:false,notificationMenuVisible:false,helpMenuVisible:false,settingMenuVisible:false });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case appCommonActions.TOGGLENOTIFICATIONMENU: {
 | 
					    case appCommonActions.TOGGLENOTIFICATIONMENU: {
 | 
				
			||||||
      return tassign(state, { notificationMenuVisible : !state.notificationMenuVisible,accountMenuVisible:false,appMenuVisible:false,helpMenuVisible:false });
 | 
					      return tassign(state, { notificationMenuVisible : !state.notificationMenuVisible,accountMenuVisible:false,appMenuVisible:false,helpMenuVisible:false,settingMenuVisible:false });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case appCommonActions.TOGGLEHELPMENU: {
 | 
					    case appCommonActions.TOGGLEHELPMENU: {
 | 
				
			||||||
      return tassign(state, { helpMenuVisible : !state.helpMenuVisible,accountMenuVisible:false,appMenuVisible:false,notificationMenuVisible:false });
 | 
					      return tassign(state, { helpMenuVisible : !state.helpMenuVisible,accountMenuVisible:false,appMenuVisible:false,notificationMenuVisible:false,settingMenuVisible:false });
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    case appCommonActions.TOGGLESETTINGMENU: {
 | 
				
			||||||
 | 
					      return tassign(state, { settingMenuVisible : !state.settingMenuVisible,accountMenuVisible:false,appMenuVisible:false,notificationMenuVisible:false,helpMenuVisible:false });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case appCommonActions.ESCAPE: {
 | 
					    case appCommonActions.ESCAPE: {
 | 
				
			||||||
      return tassign(state, { menuVisible: false,accountMenuVisible:false,appMenuVisible: false,notificationMenuVisible:false,helpMenuVisible:false });
 | 
					      return tassign(state, { menuVisible: false,accountMenuVisible:false,appMenuVisible: false,notificationMenuVisible:false,helpMenuVisible:false,settingMenuVisible:false });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case appCommonActions.SETMENUVISIBLE: {
 | 
					    case appCommonActions.SETMENUVISIBLE: {
 | 
				
			||||||
      const a = action as appCommonActions.SetMenuVisible;
 | 
					      const a = action as appCommonActions.SetMenuVisible;
 | 
				
			||||||
      return tassign(state, { menuVisible: a.visible,accountMenuVisible:a.visible?false:state.accountMenuVisible,appMenuVisible:a.visible?false:state.appMenuVisible,notificationMenuVisible:a.visible?false:state.notificationMenuVisible,helpMenuVisible:a.visible?false:state.helpMenuVisible });
 | 
					      return tassign(state, { menuVisible: a.visible,accountMenuVisible:a.visible?false:state.accountMenuVisible,appMenuVisible:a.visible?false:state.appMenuVisible,notificationMenuVisible:a.visible?false:state.notificationMenuVisible,helpMenuVisible:a.visible?false:state.helpMenuVisible,settingMenuVisible:a.visible?false:state.settingMenuVisible });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    case appCommonActions.INITUSERPACKAGESSUCCESS:{
 | 
					    case appCommonActions.INITUSERPACKAGESSUCCESS:{
 | 
				
			||||||
      const a = action as appCommonActions.InitUserPackagesSuccess;
 | 
					      const a = action as appCommonActions.InitUserPackagesSuccess;
 | 
				
			||||||
@@ -182,6 +189,10 @@ export function reducer(state = initialState, action: appCommonActions.Actions )
 | 
				
			|||||||
      const a = action as appCommonActions.SetUnreadNotifications;
 | 
					      const a = action as appCommonActions.SetUnreadNotifications;
 | 
				
			||||||
      return tassign(state,{unreadNotifications:a.unread});
 | 
					      return tassign(state,{unreadNotifications:a.unread});
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    case appCommonActions.SETSETTINGMENUBACKGROUNDCOLOR: {
 | 
				
			||||||
 | 
					      const a = action as appCommonActions.SetSettingMenuBackgroundColor;
 | 
				
			||||||
 | 
					      return tassign(state,{settingMenuBackgroundColor:a.color});
 | 
				
			||||||
 | 
					    }    
 | 
				
			||||||
    default: {
 | 
					    default: {
 | 
				
			||||||
      return state;
 | 
					      return state;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -203,9 +214,11 @@ export const getAccountMenuVisible = (state: State) => state.accountMenuVisible;
 | 
				
			|||||||
export const getAppMenuVisible = (state: State) => state.appMenuVisible;
 | 
					export const getAppMenuVisible = (state: State) => state.appMenuVisible;
 | 
				
			||||||
export const getNotificationMenuVisible = (state: State) => state.notificationMenuVisible;
 | 
					export const getNotificationMenuVisible = (state: State) => state.notificationMenuVisible;
 | 
				
			||||||
export const getHelpMenuVisible = (state: State) => state.helpMenuVisible;
 | 
					export const getHelpMenuVisible = (state: State) => state.helpMenuVisible;
 | 
				
			||||||
 | 
					export const getSettingMenuVisible = (state: State) => state.settingMenuVisible;
 | 
				
			||||||
export const getUnreadNotifications = (state: State) => state.unreadNotifications;
 | 
					export const getUnreadNotifications = (state: State) => state.unreadNotifications;
 | 
				
			||||||
export const getIsOnline = (state: State) => state.isOnline;
 | 
					export const getIsOnline = (state: State) => state.isOnline;
 | 
				
			||||||
export const getIsPageMode = (state: State) => state.isPageMode;
 | 
					export const getIsPageMode = (state: State) => state.isPageMode;
 | 
				
			||||||
 | 
					export const getSettingMenuBackgroundColor = (state: State) => state.settingMenuBackgroundColor;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const selectAppCommonState = createFeatureSelector<State>(MODULE_NAME);
 | 
					export const selectAppCommonState = createFeatureSelector<State>(MODULE_NAME);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -227,9 +240,9 @@ export const SelectGetAccountMenuVisible = createSelector(selectAppCommonState,g
 | 
				
			|||||||
export const SelectGetAppMenuVisible = createSelector(selectAppCommonState,getAppMenuVisible);
 | 
					export const SelectGetAppMenuVisible = createSelector(selectAppCommonState,getAppMenuVisible);
 | 
				
			||||||
export const SelectGetNotificationMenuVisible = createSelector(selectAppCommonState,getNotificationMenuVisible);
 | 
					export const SelectGetNotificationMenuVisible = createSelector(selectAppCommonState,getNotificationMenuVisible);
 | 
				
			||||||
export const SelectGetHelpMenuVisible = createSelector(selectAppCommonState,getHelpMenuVisible);
 | 
					export const SelectGetHelpMenuVisible = createSelector(selectAppCommonState,getHelpMenuVisible);
 | 
				
			||||||
 | 
					export const SelectGetSettingMenuVisible = createSelector(selectAppCommonState,getSettingMenuVisible);
 | 
				
			||||||
export const SelectgetUnreadNotifications = createSelector(selectAppCommonState,getUnreadNotifications);
 | 
					export const SelectgetUnreadNotifications = createSelector(selectAppCommonState,getUnreadNotifications);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const SelectGetIsOnline = createSelector(selectAppCommonState,getIsOnline);
 | 
					export const SelectGetIsOnline = createSelector(selectAppCommonState,getIsOnline);
 | 
				
			||||||
export const SelectGetIsPageMode = createSelector(selectAppCommonState,getIsPageMode);
 | 
					export const SelectGetIsPageMode = createSelector(selectAppCommonState,getIsPageMode);
 | 
				
			||||||
 | 
					export const SelectGetSettingMenuBackgroundColor= createSelector(selectAppCommonState,getSettingMenuBackgroundColor);
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,9 +1,11 @@
 | 
				
			|||||||
 | 
					import { HttpClient, HttpParams } from "@angular/common/http";
 | 
				
			||||||
import { Injectable } from '@angular/core';
 | 
					import { Injectable } from '@angular/core';
 | 
				
			||||||
import { Observable } from 'rxjs';
 | 
					import { Observable } from 'rxjs';
 | 
				
			||||||
import { IItem } from '../models/item';
 | 
					import { IItem } from '../models/item';
 | 
				
			||||||
import { HttpClient, HttpParams } from "@angular/common/http";
 | 
					import { IItemTask } from '../models/itemTask';
 | 
				
			||||||
 | 
					import { IUser } from '../models/user';
 | 
				
			||||||
import { AppConfig } from "../shared/app.config";
 | 
					import { AppConfig } from "../shared/app.config";
 | 
				
			||||||
import {ItemTypeService} from './itemtype.service';
 | 
					import { ItemTypeService } from './itemtype.service';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Injectable({
 | 
					@Injectable({
 | 
				
			||||||
  providedIn: 'root',
 | 
					  providedIn: 'root',
 | 
				
			||||||
@@ -42,4 +44,28 @@ export class AdminService {
 | 
				
			|||||||
  deleteItem(code: string): Observable<any> {
 | 
					  deleteItem(code: string): Observable<any> {
 | 
				
			||||||
    return this.httpClient.delete<any>(`${this.ApiEndpoint()}/api/v1/admin/${code}`);
 | 
					    return this.httpClient.delete<any>(`${this.ApiEndpoint()}/api/v1/admin/${code}`);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  getAllUsers(): Observable<IUser[]> {
 | 
				
			||||||
 | 
					    return this.httpClient.get<IUser[]>(`${this.ApiEndpoint()}/api/v1/admin/users`);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  postItemTask(item: IItem, task: IItemTask): Observable<IItemTask> {
 | 
				
			||||||
 | 
					    return this.httpClient.post<IItemTask>(`${this.ApiEndpoint()}/api/v1/admin/${item.code}/tasks`, task);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  getFileStorageOverview(): Observable<any> {
 | 
				
			||||||
 | 
					    return this.httpClient.get<any>(`${this.ApiEndpoint()}/api/v1/admin/filestorage/folderinfo/overview`);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  getFileStorageInfo(user: string): Observable<any> {
 | 
				
			||||||
 | 
					    return this.httpClient.get<any>(`${this.ApiEndpoint()}/api/v1/admin/filestorage/folderinfo/${user}`);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  getFileStorageLog(): Observable<any> {
 | 
				
			||||||
 | 
					    return this.httpClient.get<any>(`${this.ApiEndpoint()}/api/v1/admin/filestorage/folderinfo/log`);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  validateEmail(user: IUser) {
 | 
				
			||||||
 | 
					    return this.httpClient.post(`${this.ApiEndpoint()}/api/v1/admin/user/${user.code}/validateemail`, user);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@ import {Injectable} from '@angular/core';
 | 
				
			|||||||
import {Observable} from 'rxjs';
 | 
					import {Observable} from 'rxjs';
 | 
				
			||||||
import {IListItem} from '../models/list.item';
 | 
					import {IListItem} from '../models/list.item';
 | 
				
			||||||
import {IItem} from '../models/item';
 | 
					import {IItem} from '../models/item';
 | 
				
			||||||
import {HttpClient} from '@angular/common/http';
 | 
					import { HttpClient } from '@angular/common/http';
 | 
				
			||||||
import {AppConfig} from '../shared/app.config';
 | 
					import {AppConfig} from '../shared/app.config';
 | 
				
			||||||
import {ItemService} from './item.service';
 | 
					import {ItemService} from './item.service';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -22,6 +22,10 @@ export class FolderService {
 | 
				
			|||||||
    return this.httpClient.get<IListItem>(`${this.ApiEndpoint()}/api/v1/folders/${code}`);
 | 
					    return this.httpClient.get<IListItem>(`${this.ApiEndpoint()}/api/v1/folders/${code}`);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  getMyRoot(): Observable<IListItem> {
 | 
				
			||||||
 | 
					    return this.httpClient.get<IListItem>(`${this.ApiEndpoint()}/api/v1/folders/my_root`);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  getMyRoots(): Observable<IListItem[]> {
 | 
					  getMyRoots(): Observable<IListItem[]> {
 | 
				
			||||||
    return this.httpClient.get<IListItem[]>(`${this.ApiEndpoint()}/api/v1/folders/my_roots`);
 | 
					    return this.httpClient.get<IListItem[]>(`${this.ApiEndpoint()}/api/v1/folders/my_roots`);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
import { Injectable } from '@angular/core';
 | 
					import { Injectable } from '@angular/core';
 | 
				
			||||||
import { Observable } from 'rxjs';
 | 
					import { Observable } from 'rxjs';
 | 
				
			||||||
import { IUser } from '../models/user';
 | 
					import { IUser } from '../models/user';
 | 
				
			||||||
import { HttpClient,HttpHeaders } from "@angular/common/http";
 | 
					import { HttpClient, HttpHeaders } from "@angular/common/http";
 | 
				
			||||||
import { AppConfig } from "../shared/app.config";
 | 
					import { AppConfig } from "../shared/app.config";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Injectable({
 | 
					@Injectable({
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
import { Injectable } from '@angular/core';
 | 
					import { Injectable } from '@angular/core';
 | 
				
			||||||
import { Observable } from 'rxjs';
 | 
					import { Observable } from 'rxjs';
 | 
				
			||||||
import { IUser } from '../models/user';
 | 
					import { IUser } from '../models/user';
 | 
				
			||||||
import { HttpClient,HttpHeaders } from "@angular/common/http";
 | 
					import { HttpClient, HttpHeaders } from "@angular/common/http";
 | 
				
			||||||
import { AppConfig } from "../shared/app.config";
 | 
					import { AppConfig } from "../shared/app.config";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Injectable({
 | 
					@Injectable({
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,14 +1,12 @@
 | 
				
			|||||||
import { Injectable } from '@angular/core';
 | 
					import {Injectable} from '@angular/core';
 | 
				
			||||||
import { Observable } from 'rxjs';
 | 
					import {Observable} from 'rxjs';
 | 
				
			||||||
import { map } from 'rxjs/operators';
 | 
					import {IItemType} from '../models/item.type';
 | 
				
			||||||
import { IItemType } from '../models/item.type';
 | 
					import {IItemLinkType} from '../models/itemlink.type';
 | 
				
			||||||
import { IItemLinkType } from '../models/itemlink.type';
 | 
					import {IItem} from '../models/item';
 | 
				
			||||||
import { IUrlType } from '../models/url.type';
 | 
					import {IJsonline} from '../models/json-line';
 | 
				
			||||||
import { IItem } from '../models/item';
 | 
					import {IItemTask} from '../models/itemTask';
 | 
				
			||||||
import { IJsonline } from '../models/json-line';
 | 
					import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';
 | 
				
			||||||
import { IItemTask } from '../models/itemTask';
 | 
					import {AppConfig} from '../shared/app.config';
 | 
				
			||||||
import { HttpClient, HttpParams,HttpHeaders } from "@angular/common/http";
 | 
					 | 
				
			||||||
import { AppConfig } from "../shared/app.config";
 | 
					 | 
				
			||||||
import {ItemTypeService} from './itemtype.service';
 | 
					import {ItemTypeService} from './itemtype.service';
 | 
				
			||||||
import {IListItem} from '../models/list.item';
 | 
					import {IListItem} from '../models/list.item';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -79,7 +77,10 @@ export class ItemService {
 | 
				
			|||||||
    return this.httpClient.get<IItem>(`${this.ApiEndpoint()}/api/v1/items/${code}/${itemType}`);
 | 
					    return this.httpClient.get<IItem>(`${this.ApiEndpoint()}/api/v1/items/${code}/${itemType}`);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  getItemList(itemType?: string, dataFilter?: any, level?: number, atItemLocationItemCode?: string, indexed?: boolean, validToday?: boolean,tags?:string,crs?:string): Observable<IItem[]> {
 | 
					  getItemList(itemType?: string, dataFilter?: any, level?: number, atItemLocationItemCode?: string,
 | 
				
			||||||
 | 
					    indexed?: boolean, validToday?: boolean,tags?:string,crs?:string, startDate?: Date, endDate?: Date,
 | 
				
			||||||
 | 
					    skip?: number, take?: number, sourceTask?: string, exactMatchStartOrEndDate?: boolean, owner?:string,
 | 
				
			||||||
 | 
					    includeFullpath?: boolean): Observable<IItem[]> {
 | 
				
			||||||
    let params = new HttpParams();
 | 
					    let params = new HttpParams();
 | 
				
			||||||
    if(itemType)  params = params.append("it", itemType);
 | 
					    if(itemType)  params = params.append("it", itemType);
 | 
				
			||||||
    if(dataFilter) params = params.append("df", JSON.stringify(dataFilter));
 | 
					    if(dataFilter) params = params.append("df", JSON.stringify(dataFilter));
 | 
				
			||||||
@@ -89,11 +90,34 @@ export class ItemService {
 | 
				
			|||||||
    if (validToday) params = params.append("vt", validToday ? "true" : "false");
 | 
					    if (validToday) params = params.append("vt", validToday ? "true" : "false");
 | 
				
			||||||
    if (tags) params = params.append("t", tags);
 | 
					    if (tags) params = params.append("t", tags);
 | 
				
			||||||
    if (crs) params = params.append("crs", crs);
 | 
					    if (crs) params = params.append("crs", crs);
 | 
				
			||||||
 | 
					    if (startDate) params = params.append("sDate", startDate.toISOString());
 | 
				
			||||||
 | 
					    if (endDate) params = params.append("eDate", endDate.toISOString());
 | 
				
			||||||
 | 
					    if (sourceTask) params = params.append("sourceTask", sourceTask);
 | 
				
			||||||
 | 
					    if(skip) params = params.append("skip", skip);
 | 
				
			||||||
 | 
					    if(take) params = params.append("take", take);
 | 
				
			||||||
 | 
					    if(exactMatchStartOrEndDate !== undefined) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate);
 | 
				
			||||||
 | 
					    if(owner) params = params.append("owner", owner);
 | 
				
			||||||
 | 
					    if(includeFullpath) params = params.append("includeFullpath",includeFullpath?"true":"false");
 | 
				
			||||||
    return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/`, { params: params });
 | 
					    return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/`, { params: params });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  getChildItemList(parentcode: string, itemType: string, dataFilter?: any, level = 1, deep = true,
 | 
					  getItemListCount(itemType: string, startDate?: Date, endDate?: Date, sourceTask?: string,
 | 
				
			||||||
                   startDate?: Date, endDate?: Date, skip?: number, take?: number): Observable<IItem[]> {
 | 
					    indexed?: boolean, exactMatchStartOrEndDate?: boolean, owner?:string): Observable<number> {
 | 
				
			||||||
 | 
					    let params = new HttpParams();
 | 
				
			||||||
 | 
					    params = params.append("it", itemType);
 | 
				
			||||||
 | 
					    if (sourceTask) params = params.append("sourceTask", sourceTask);
 | 
				
			||||||
 | 
					    if (startDate) params = params.append("sDate", startDate.toISOString());
 | 
				
			||||||
 | 
					    if (endDate) params = params.append("eDate", endDate.toISOString());
 | 
				
			||||||
 | 
					    if(indexed) params = params.append("ind",indexed?"true":"false");
 | 
				
			||||||
 | 
					    if(exactMatchStartOrEndDate !== undefined) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate);
 | 
				
			||||||
 | 
					    if(owner) params = params.append("owner", owner);
 | 
				
			||||||
 | 
					    return this.httpClient.get<number>(`${this.ApiEndpoint()}/api/v1/items/count`, { params: params });
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  getChildItemList(parentcode: string, itemType?: string, dataFilter?: any, level = 1, deep = true,
 | 
				
			||||||
 | 
					                   startDate?: Date, endDate?: Date, skip?: number, take?: number,
 | 
				
			||||||
 | 
					                   exactMatchStartOrEndDate?: boolean, owner?:string, indexed?: boolean,
 | 
				
			||||||
 | 
					                  atItemLocationItemCode?: string): Observable<IItem[]> {
 | 
				
			||||||
    let params = new HttpParams();
 | 
					    let params = new HttpParams();
 | 
				
			||||||
    if(itemType != null) {
 | 
					    if(itemType != null) {
 | 
				
			||||||
      params = params.append("it", itemType);
 | 
					      params = params.append("it", itemType);
 | 
				
			||||||
@@ -105,18 +129,31 @@ export class ItemService {
 | 
				
			|||||||
    params = params.append("deep", deep.toString());
 | 
					    params = params.append("deep", deep.toString());
 | 
				
			||||||
    if (startDate) params = params.append("sDate", startDate.toISOString());
 | 
					    if (startDate) params = params.append("sDate", startDate.toISOString());
 | 
				
			||||||
    if (endDate) params = params.append("eDate", endDate.toISOString());
 | 
					    if (endDate) params = params.append("eDate", endDate.toISOString());
 | 
				
			||||||
 | 
					    if(exactMatchStartOrEndDate !== undefined) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate);
 | 
				
			||||||
 | 
					    if(owner) params = params.append("owner", owner);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if(skip) params = params.append("skip", skip);
 | 
					    if(skip) params = params.append("skip", skip);
 | 
				
			||||||
    if(take) params = params.append("take", take);
 | 
					    if(take) params = params.append("take", take);
 | 
				
			||||||
 | 
					    if(indexed) params = params.append("ind",indexed?"true":"false");
 | 
				
			||||||
 | 
					    if(atItemLocationItemCode) params = params.append("ail",atItemLocationItemCode);
 | 
				
			||||||
    return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children`, { params: params });
 | 
					    return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children`, { params: params });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  getChildItemListCount(parentcode: string, itemType: string,dataFilter?: any): Observable<number> {
 | 
					  getChildItemListCount(parentcode: string, itemType?: string,dataFilter?: any,
 | 
				
			||||||
 | 
					                        startDate?: Date, endDate?: Date, exactMatchStartOrEndDate?: boolean, owner?:string,
 | 
				
			||||||
 | 
					                        indexed?: boolean): Observable<number> {
 | 
				
			||||||
    let params = new HttpParams();
 | 
					    let params = new HttpParams();
 | 
				
			||||||
 | 
					    if(itemType != null) {
 | 
				
			||||||
      params = params.append("it", itemType);
 | 
					      params = params.append("it", itemType);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    if (dataFilter != null) {
 | 
					    if (dataFilter != null) {
 | 
				
			||||||
      params = params.append("df", JSON.stringify(dataFilter));
 | 
					      params = params.append("df", JSON.stringify(dataFilter));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    if (startDate) params = params.append("sDate", startDate.toISOString());
 | 
				
			||||||
 | 
					    if (endDate) params = params.append("eDate", endDate.toISOString());
 | 
				
			||||||
 | 
					    if(exactMatchStartOrEndDate !== undefined) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate);
 | 
				
			||||||
 | 
					    if(owner) params = params.append("owner", owner);
 | 
				
			||||||
 | 
					    if(indexed) params = params.append("ind",indexed?"true":"false");
 | 
				
			||||||
    return this.httpClient.get<number>(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children/count`, { params: params });
 | 
					    return this.httpClient.get<number>(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children/count`, { params: params });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
 | 
				
			|||||||
import {IItemTypes} from '../models/item.types'
 | 
					import {IItemTypes} from '../models/item.types'
 | 
				
			||||||
import {IItem} from '../models/item'
 | 
					import {IItem} from '../models/item'
 | 
				
			||||||
import {AppConfig} from '../shared/app.config';
 | 
					import {AppConfig} from '../shared/app.config';
 | 
				
			||||||
import {HttpClient, HttpXhrBackend} from '@angular/common/http';
 | 
					import { HttpClient, HttpXhrBackend } from '@angular/common/http';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Injectable()
 | 
					@Injectable()
 | 
				
			||||||
export class ItemTypeService {
 | 
					export class ItemTypeService {
 | 
				
			||||||
@@ -15,37 +15,37 @@ export class ItemTypeService {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
     getIcon(itemType: string) {
 | 
					     getIcon(itemType: string) {
 | 
				
			||||||
       let icon = "fal fa-file";
 | 
					       let icon = "fal fa-file";
 | 
				
			||||||
       if (this.itemTypes[itemType]) icon = this.itemTypes[itemType].icon;
 | 
					       if (this.itemTypes && this.itemTypes[itemType]) icon = this.itemTypes[itemType].icon;
 | 
				
			||||||
       return icon;
 | 
					       return icon;
 | 
				
			||||||
     }
 | 
					     }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     getColor(itemType: string) {
 | 
					     getColor(itemType: string) {
 | 
				
			||||||
       let color = "#000000";
 | 
					       let color = "#000000";
 | 
				
			||||||
       if (this.itemTypes[itemType]) color = this.itemTypes[itemType].iconColor;
 | 
					       if (this.itemTypes && this.itemTypes[itemType]) color = this.itemTypes[itemType].iconColor;
 | 
				
			||||||
       return color;
 | 
					       return color;
 | 
				
			||||||
     }
 | 
					     }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     getExtraAttributes(itemType: string) {
 | 
					     getExtraAttributes(itemType: string) {
 | 
				
			||||||
      let extraAttributes = null;
 | 
					      let extraAttributes = null;
 | 
				
			||||||
      if (this.itemTypes[itemType] && this.itemTypes[itemType].extraAttributes) extraAttributes = this.itemTypes[itemType].extraAttributes;
 | 
					      if (this.itemTypes && this.itemTypes[itemType] && this.itemTypes[itemType]?.extraAttributes) extraAttributes = this.itemTypes[itemType]?.extraAttributes;
 | 
				
			||||||
      return extraAttributes;
 | 
					      return extraAttributes;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    getSchema(itemType: string): string {
 | 
					    getSchema(itemType: string): string {
 | 
				
			||||||
      let schema = null;
 | 
					      let schema = null;
 | 
				
			||||||
      if (this.itemTypes[itemType]) schema = this.itemTypes[itemType].schema;
 | 
					      if (this.itemTypes && this.itemTypes[itemType]) schema = this.itemTypes[itemType].schema;
 | 
				
			||||||
      return schema;
 | 
					      return schema;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     hasViewer(item: IItem) {
 | 
					     hasViewer(item: IItem) {
 | 
				
			||||||
        const itemType: string = item.itemType;
 | 
					        const itemType: string = item.itemType;
 | 
				
			||||||
        if (this.itemTypes[itemType]) return this.itemTypes[itemType].viewer !== undefined;
 | 
					        if (this.itemTypes && this.itemTypes[itemType]) return this.itemTypes[itemType].viewer !== undefined;
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      hasEditor(item: IItem) {
 | 
					      hasEditor(item: IItem) {
 | 
				
			||||||
        const itemType: string = item.itemType;
 | 
					        const itemType: string = item.itemType;
 | 
				
			||||||
        if (this.itemTypes[itemType]) return this.itemTypes[itemType].editor !== undefined;
 | 
					        if (this.itemTypes && this.itemTypes[itemType]) return this.itemTypes[itemType].editor !== undefined;
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ import {IPackage, IPackages} from '../models/package';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import {IItem} from '../models/item';
 | 
					import {IItem} from '../models/item';
 | 
				
			||||||
import {IItemTask} from '../models/itemTask';
 | 
					import {IItemTask} from '../models/itemTask';
 | 
				
			||||||
import {HttpClient} from '@angular/common/http';
 | 
					import { HttpClient } from '@angular/common/http';
 | 
				
			||||||
import {AppConfig} from '../shared/app.config';
 | 
					import {AppConfig} from '../shared/app.config';
 | 
				
			||||||
import {Observable,iif,of} from 'rxjs';
 | 
					import {Observable,iif,of} from 'rxjs';
 | 
				
			||||||
import {switchMap} from 'rxjs/operators';
 | 
					import {switchMap} from 'rxjs/operators';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
import {Inject, Injectable, LOCALE_ID} from '@angular/core';
 | 
					import {Inject, Injectable, LOCALE_ID} from '@angular/core';
 | 
				
			||||||
import {HttpClient} from '@angular/common/http';
 | 
					import { HttpClient } from '@angular/common/http';
 | 
				
			||||||
import {AppConfig} from '../shared/app.config';
 | 
					import {AppConfig} from '../shared/app.config';
 | 
				
			||||||
import {Observable, of} from 'rxjs';
 | 
					import {Observable, of} from 'rxjs';
 | 
				
			||||||
import {catchError, switchMap} from 'rxjs/operators';
 | 
					import {catchError, switchMap} from 'rxjs/operators';
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										40
									
								
								projects/common/src/fm/services/task.service.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								projects/common/src/fm/services/task.service.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,40 @@
 | 
				
			|||||||
 | 
					import {Injectable} from '@angular/core';
 | 
				
			||||||
 | 
					import {HttpClient, HttpParams} from '@angular/common/http';
 | 
				
			||||||
 | 
					import {AppConfig} from '../shared/app.config';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Injectable({
 | 
				
			||||||
 | 
					  providedIn: 'root',
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class TaskService {
 | 
				
			||||||
 | 
					  constructor(public httpClient: HttpClient, public appConfig: AppConfig) {
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ApiEndpoint() {
 | 
				
			||||||
 | 
					    return this.appConfig.getConfig("apiEndPoint");
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  getTask(taskCode: string) {
 | 
				
			||||||
 | 
					    return this.httpClient.get<any>(`${this.appConfig.getConfig('apiEndPoint')}/api/v1/tasks/${taskCode}`)
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  getTasks(workflowCode: string, itemCode: string = null, taskType: string = null, skip = 0, take = 25) {
 | 
				
			||||||
 | 
					    let params = new HttpParams();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (workflowCode) {
 | 
				
			||||||
 | 
					      params = params.append('workflowCode', workflowCode);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (itemCode) {
 | 
				
			||||||
 | 
					      params = params.append('itemCode', itemCode);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (taskType) {
 | 
				
			||||||
 | 
					      params = params.append('taskType', taskType);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    params = params.append('skip', skip.toString());
 | 
				
			||||||
 | 
					    params = params.append('take', take.toString());
 | 
				
			||||||
 | 
					    return this.httpClient.get<any>(`${this.appConfig.getConfig('apiEndPoint')}/api/v1/tasks`,
 | 
				
			||||||
 | 
					      {params: params})
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
import {Injectable} from '@angular/core';
 | 
					import {Injectable} from '@angular/core';
 | 
				
			||||||
import {HttpClient} from '@angular/common/http';
 | 
					import { HttpClient } from '@angular/common/http';
 | 
				
			||||||
import {Observable} from 'rxjs';
 | 
					import {Observable} from 'rxjs';
 | 
				
			||||||
import {GeoJSON} from 'ol/format';
 | 
					import {GeoJSON} from 'ol/format';
 | 
				
			||||||
import {map, switchMap} from 'rxjs/operators';
 | 
					import {map, switchMap} from 'rxjs/operators';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,7 @@
 | 
				
			|||||||
import { Injectable, Injector, Inject } from '@angular/core';
 | 
					import { Injectable, Injector, Inject } from '@angular/core';
 | 
				
			||||||
import { DOCUMENT } from '@angular/common'
 | 
					import { DOCUMENT } from '@angular/common'
 | 
				
			||||||
import { AppConfig } from "./app.config";
 | 
					import { AppConfig } from "./app.config";
 | 
				
			||||||
import {
 | 
					import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
 | 
				
			||||||
  HttpRequest,
 | 
					 | 
				
			||||||
  HttpHandler,
 | 
					 | 
				
			||||||
  HttpEvent,
 | 
					 | 
				
			||||||
  HttpInterceptor
 | 
					 | 
				
			||||||
} from '@angular/common/http';
 | 
					 | 
				
			||||||
import { OAuthService } from 'angular-oauth2-oidc';
 | 
					import { OAuthService } from 'angular-oauth2-oidc';
 | 
				
			||||||
import { Observable } from 'rxjs';
 | 
					import { Observable } from 'rxjs';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
import {Inject, Injectable} from '@angular/core';
 | 
					import {Inject, Injectable} from '@angular/core';
 | 
				
			||||||
import { Location,PathLocationStrategy,LocationStrategy } from '@angular/common';
 | 
					import { Location,PathLocationStrategy,LocationStrategy } from '@angular/common';
 | 
				
			||||||
import {HttpClient, HttpXhrBackend} from '@angular/common/http';
 | 
					import { HttpClient, HttpXhrBackend } from '@angular/common/http';
 | 
				
			||||||
import {Observable} from 'rxjs';
 | 
					import {Observable} from 'rxjs';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Injectable()
 | 
					@Injectable()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,9 +18,7 @@
 | 
				
			|||||||
    ],
 | 
					    ],
 | 
				
			||||||
    "paths": {
 | 
					    "paths": {
 | 
				
			||||||
      "@angular/*": [
 | 
					      "@angular/*": [
 | 
				
			||||||
 | 
					 | 
				
			||||||
        "node_modules/@angular/*"
 | 
					        "node_modules/@angular/*"
 | 
				
			||||||
 | 
					 | 
				
			||||||
      ]
 | 
					      ]
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										54
									
								
								projects/ng-openlayers/.eslintrc.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								projects/ng-openlayers/.eslintrc.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,54 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					  "extends": "../../.eslintrc.json",
 | 
				
			||||||
 | 
					  "ignorePatterns": [
 | 
				
			||||||
 | 
					    "!**/*"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "overrides": [
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "files": [
 | 
				
			||||||
 | 
					        "*.ts"
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "parserOptions": {
 | 
				
			||||||
 | 
					        "project": [
 | 
				
			||||||
 | 
					          "libs/ng-openlayers/tsconfig.*?.json"
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "createDefaultProgram": true
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "rules": {
 | 
				
			||||||
 | 
					        "@angular-eslint/component-selector": [
 | 
				
			||||||
 | 
					          "error",
 | 
				
			||||||
 | 
					          {
 | 
				
			||||||
 | 
					            "type": "element",
 | 
				
			||||||
 | 
					            "prefix": "aol",
 | 
				
			||||||
 | 
					            "style": "kebab-case"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "@angular-eslint/directive-selector": [
 | 
				
			||||||
 | 
					          "error",
 | 
				
			||||||
 | 
					          {
 | 
				
			||||||
 | 
					            "type": "attribute",
 | 
				
			||||||
 | 
					            "prefix": "aol",
 | 
				
			||||||
 | 
					            "style": "camelCase"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "@typescript-eslint/explicit-member-accessibility": [
 | 
				
			||||||
 | 
					          "off",
 | 
				
			||||||
 | 
					          {
 | 
				
			||||||
 | 
					            "accessibility": "explicit"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "arrow-parens": [
 | 
				
			||||||
 | 
					          "off",
 | 
				
			||||||
 | 
					          "always"
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "import/order": "off"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "files": [
 | 
				
			||||||
 | 
					        "*.html"
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "rules": {}
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										2
									
								
								projects/ng-openlayers/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								projects/ng-openlayers/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
				
			|||||||
 | 
					/node_modules
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										32
									
								
								projects/ng-openlayers/karma.conf.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								projects/ng-openlayers/karma.conf.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,32 @@
 | 
				
			|||||||
 | 
					// Karma configuration file, see link for more information
 | 
				
			||||||
 | 
					// https://karma-runner.github.io/1.0/config/configuration-file.html
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					module.exports = function (config) {
 | 
				
			||||||
 | 
					  config.set({
 | 
				
			||||||
 | 
					    basePath: '',
 | 
				
			||||||
 | 
					    frameworks: ['jasmine', '@angular-devkit/build-angular'],
 | 
				
			||||||
 | 
					    plugins: [
 | 
				
			||||||
 | 
					      require('karma-jasmine'),
 | 
				
			||||||
 | 
					      require('karma-chrome-launcher'),
 | 
				
			||||||
 | 
					      require('karma-jasmine-html-reporter'),
 | 
				
			||||||
 | 
					      require('karma-coverage-istanbul-reporter'),
 | 
				
			||||||
 | 
					      require('@angular-devkit/build-angular/plugins/karma'),
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    client: {
 | 
				
			||||||
 | 
					      clearContext: false, // leave Jasmine Spec Runner output visible in browser
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    coverageIstanbulReporter: {
 | 
				
			||||||
 | 
					      dir: require('path').join(__dirname, '../../coverage/ng-openlayers'),
 | 
				
			||||||
 | 
					      reports: ['html', 'lcovonly', 'text-summary'],
 | 
				
			||||||
 | 
					      fixWebpackSourcePaths: true,
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    reporters: ['progress', 'kjhtml'],
 | 
				
			||||||
 | 
					    port: 9876,
 | 
				
			||||||
 | 
					    colors: true,
 | 
				
			||||||
 | 
					    logLevel: config.LOG_INFO,
 | 
				
			||||||
 | 
					    autoWatch: true,
 | 
				
			||||||
 | 
					    browsers: ['Chrome'],
 | 
				
			||||||
 | 
					    singleRun: false,
 | 
				
			||||||
 | 
					    restartOnFileChange: true,
 | 
				
			||||||
 | 
					  });
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
							
								
								
									
										10
									
								
								projects/ng-openlayers/ng-package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								projects/ng-openlayers/ng-package.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					  "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
 | 
				
			||||||
 | 
					  "dest": "../../dist/ng-openlayers",
 | 
				
			||||||
 | 
					  "assets": [
 | 
				
			||||||
 | 
					    "ngcc.config.js"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "lib": {
 | 
				
			||||||
 | 
					    "entryFile": "src/public-api.ts"
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										3
									
								
								projects/ng-openlayers/ngcc.config.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								projects/ng-openlayers/ngcc.config.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					module.exports = {
 | 
				
			||||||
 | 
					  ignorableDeepImportMatchers: [/ol\//],
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
							
								
								
									
										292
									
								
								projects/ng-openlayers/package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										292
									
								
								projects/ng-openlayers/package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,292 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					  "name": "ng-openlayers",
 | 
				
			||||||
 | 
					  "version": "18.0.0",
 | 
				
			||||||
 | 
					  "lockfileVersion": 3,
 | 
				
			||||||
 | 
					  "requires": true,
 | 
				
			||||||
 | 
					  "packages": {
 | 
				
			||||||
 | 
					    "": {
 | 
				
			||||||
 | 
					      "name": "ng-openlayers",
 | 
				
			||||||
 | 
					      "version": "18.0.0",
 | 
				
			||||||
 | 
					      "license": "MPL-2.0",
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "@angular/common": "^18.2.3",
 | 
				
			||||||
 | 
					        "@angular/core": "^18.2.3",
 | 
				
			||||||
 | 
					        "ol": "^8.2.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular/common": {
 | 
				
			||||||
 | 
					      "version": "18.2.3",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@angular/common/-/common-18.2.3.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-NFL4yXXImSCH7i1xnHykUjHa9vl9827fGiwSV2mnf7LjSUsyDzFD8/54dNuYN9OY8AUD+PnK0YdNro6cczVyIA==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": "^18.19.1 || ^20.11.1 || >=22.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "@angular/core": "18.2.3",
 | 
				
			||||||
 | 
					        "rxjs": "^6.5.3 || ^7.4.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@angular/core": {
 | 
				
			||||||
 | 
					      "version": "18.2.3",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@angular/core/-/core-18.2.3.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-VGhMJxj7d0rYpqVfQrcGRB7EE/BCziotft/I/YPl6bOMPSAvMukG7DXQuJdYpNrr62ks78mlzHlZX/cdmB9Prw==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": "^18.19.1 || ^20.11.1 || >=22.0.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "peerDependencies": {
 | 
				
			||||||
 | 
					        "rxjs": "^6.5.3 || ^7.4.0",
 | 
				
			||||||
 | 
					        "zone.js": "~0.14.10"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/@petamoriken/float16": {
 | 
				
			||||||
 | 
					      "version": "3.8.7",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/@petamoriken/float16/-/float16-3.8.7.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-/Ri4xDDpe12NT6Ex/DRgHzLlobiQXEW/hmG08w1wj/YU7hLemk97c+zHQFp0iZQ9r7YqgLEXZR2sls4HxBf9NA==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/color-name": {
 | 
				
			||||||
 | 
					      "version": "2.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/color-name/-/color-name-2.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-SbtvAMWvASO5TE2QP07jHBMXKafgdZz8Vrsrn96fiL+O92/FN/PLARzUW5sKt013fjAprK2d2iCn2hk2Xb5oow==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": ">=12.20"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/color-parse": {
 | 
				
			||||||
 | 
					      "version": "2.0.2",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/color-parse/-/color-parse-2.0.2.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-eCtOz5w5ttWIUcaKLiktF+DxZO1R9KLNY/xhbV6CkhM7sR3GhVghmt6X6yOnzeaM24po+Z9/S1apbXMwA3Iepw==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "color-name": "^2.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/color-rgba": {
 | 
				
			||||||
 | 
					      "version": "3.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/color-rgba/-/color-rgba-3.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-PPwZYkEY3M2THEHHV6Y95sGUie77S7X8v+h1r6LSAPF3/LL2xJ8duUXSrkic31Nzc4odPwHgUbiX/XuTYzQHQg==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "color-parse": "^2.0.0",
 | 
				
			||||||
 | 
					        "color-space": "^2.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/color-space": {
 | 
				
			||||||
 | 
					      "version": "2.0.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/color-space/-/color-space-2.0.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-nKqUYlo0vZATVOFHY810BSYjmCARrG7e5R3UE3CQlyjJTvv5kSSmPG1kzm/oDyyqjehM+lW1RnEt9It9GNa5JA==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/earcut": {
 | 
				
			||||||
 | 
					      "version": "2.2.4",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/earcut/-/earcut-2.2.4.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-/pjZsA1b4RPHbeWZQn66SWS8nZZWLQQ23oE3Eam7aroEFGEvwKAsJfZ9ytiEMycfzXWpca4FA9QIOehf7PocBQ==",
 | 
				
			||||||
 | 
					      "license": "ISC",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/geotiff": {
 | 
				
			||||||
 | 
					      "version": "2.1.3",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/geotiff/-/geotiff-2.1.3.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-PT6uoF5a1+kbC3tHmZSUsLHBp2QJlHasxxxxPW47QIY1VBKpFB+FcDvX+MxER6UzgLQZ0xDzJ9s48B9JbOCTqA==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "@petamoriken/float16": "^3.4.7",
 | 
				
			||||||
 | 
					        "lerc": "^3.0.0",
 | 
				
			||||||
 | 
					        "pako": "^2.0.4",
 | 
				
			||||||
 | 
					        "parse-headers": "^2.0.2",
 | 
				
			||||||
 | 
					        "quick-lru": "^6.1.1",
 | 
				
			||||||
 | 
					        "web-worker": "^1.2.0",
 | 
				
			||||||
 | 
					        "xml-utils": "^1.0.2",
 | 
				
			||||||
 | 
					        "zstddec": "^0.1.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": ">=10.19"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/ieee754": {
 | 
				
			||||||
 | 
					      "version": "1.2.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
 | 
				
			||||||
 | 
					      "funding": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          "type": "github",
 | 
				
			||||||
 | 
					          "url": "https://github.com/sponsors/feross"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          "type": "patreon",
 | 
				
			||||||
 | 
					          "url": "https://www.patreon.com/feross"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          "type": "consulting",
 | 
				
			||||||
 | 
					          "url": "https://feross.org/support"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "license": "BSD-3-Clause",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/lerc": {
 | 
				
			||||||
 | 
					      "version": "3.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/lerc/-/lerc-3.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-Rm4J/WaHhRa93nCN2mwWDZFoRVF18G1f47C+kvQWyHGEZxFpTUi73p7lMVSAndyxGt6lJ2/CFbOcf9ra5p8aww==",
 | 
				
			||||||
 | 
					      "license": "Apache-2.0",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/ol": {
 | 
				
			||||||
 | 
					      "version": "8.2.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/ol/-/ol-8.2.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-/m1ddd7Jsp4Kbg+l7+ozR5aKHAZNQOBAoNZ5pM9Jvh4Etkf0WGkXr9qXd7PnhmwiC1Hnc2Toz9XjCzBBvexfXw==",
 | 
				
			||||||
 | 
					      "license": "BSD-2-Clause",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "color-rgba": "^3.0.0",
 | 
				
			||||||
 | 
					        "color-space": "^2.0.1",
 | 
				
			||||||
 | 
					        "earcut": "^2.2.3",
 | 
				
			||||||
 | 
					        "geotiff": "^2.0.7",
 | 
				
			||||||
 | 
					        "pbf": "3.2.1",
 | 
				
			||||||
 | 
					        "rbush": "^3.0.1"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "funding": {
 | 
				
			||||||
 | 
					        "type": "opencollective",
 | 
				
			||||||
 | 
					        "url": "https://opencollective.com/openlayers"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/pako": {
 | 
				
			||||||
 | 
					      "version": "2.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==",
 | 
				
			||||||
 | 
					      "license": "(MIT AND Zlib)",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/parse-headers": {
 | 
				
			||||||
 | 
					      "version": "2.0.5",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.5.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-ft3iAoLOB/MlwbNXgzy43SWGP6sQki2jQvAyBg/zDFAgr9bfNWZIUj42Kw2eJIl8kEi4PbgE6U1Zau/HwI75HA==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/pbf": {
 | 
				
			||||||
 | 
					      "version": "3.2.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/pbf/-/pbf-3.2.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-ClrV7pNOn7rtmoQVF4TS1vyU0WhYRnP92fzbfF75jAIwpnzdJXf8iTd4CMEqO4yUenH6NDqLiwjqlh6QgZzgLQ==",
 | 
				
			||||||
 | 
					      "license": "BSD-3-Clause",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "ieee754": "^1.1.12",
 | 
				
			||||||
 | 
					        "resolve-protobuf-schema": "^2.1.0"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "bin": {
 | 
				
			||||||
 | 
					        "pbf": "bin/pbf"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/protocol-buffers-schema": {
 | 
				
			||||||
 | 
					      "version": "3.6.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/protocol-buffers-schema/-/protocol-buffers-schema-3.6.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-TdDRD+/QNdrCGCE7v8340QyuXd4kIWIgapsE2+n/SaGiSSbomYl4TjHlvIoCWRpE7wFt02EpB35VVA2ImcBVqw==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/quick-lru": {
 | 
				
			||||||
 | 
					      "version": "6.1.2",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-6.1.2.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-AAFUA5O1d83pIHEhJwWCq/RQcRukCkn/NSm2QsTEMle5f2hP0ChI2+3Xb051PZCkLryI/Ir1MVKviT2FIloaTQ==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "engines": {
 | 
				
			||||||
 | 
					        "node": ">=12"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "funding": {
 | 
				
			||||||
 | 
					        "url": "https://github.com/sponsors/sindresorhus"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/quickselect": {
 | 
				
			||||||
 | 
					      "version": "2.0.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/quickselect/-/quickselect-2.0.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw==",
 | 
				
			||||||
 | 
					      "license": "ISC",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/rbush": {
 | 
				
			||||||
 | 
					      "version": "3.0.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/rbush/-/rbush-3.0.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-XRaVO0YecOpEuIvbhbpTrZgoiI6xBlz6hnlr6EHhd+0x9ase6EmeN+hdwwUaJvLcsFFQ8iWVF1GAK1yB0BWi0w==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "quickselect": "^2.0.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/resolve-protobuf-schema": {
 | 
				
			||||||
 | 
					      "version": "2.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/resolve-protobuf-schema/-/resolve-protobuf-schema-2.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "protocol-buffers-schema": "^3.3.1"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/rxjs": {
 | 
				
			||||||
 | 
					      "version": "7.8.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",
 | 
				
			||||||
 | 
					      "license": "Apache-2.0",
 | 
				
			||||||
 | 
					      "peer": true,
 | 
				
			||||||
 | 
					      "dependencies": {
 | 
				
			||||||
 | 
					        "tslib": "^2.1.0"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/tslib": {
 | 
				
			||||||
 | 
					      "version": "2.7.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA=="
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/web-worker": {
 | 
				
			||||||
 | 
					      "version": "1.3.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.3.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-BSR9wyRsy/KOValMgd5kMyr3JzpdeoR9KVId8u5GVlTTAtNChlsE4yTxeY7zMdNSyOmoKBv8NH2qeRY9Tg+IaA==",
 | 
				
			||||||
 | 
					      "license": "Apache-2.0",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/xml-utils": {
 | 
				
			||||||
 | 
					      "version": "1.10.1",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/xml-utils/-/xml-utils-1.10.1.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-Dn6vJ1Z9v1tepSjvnCpwk5QqwIPcEFKdgnjqfYOABv1ngSofuAhtlugcUC3ehS1OHdgDWSG6C5mvj+Qm15udTQ==",
 | 
				
			||||||
 | 
					      "license": "CC0-1.0",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/zone.js": {
 | 
				
			||||||
 | 
					      "version": "0.14.10",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.14.10.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-YGAhaO7J5ywOXW6InXNlLmfU194F8lVgu7bRntUF3TiG8Y3nBK0x1UJJuHUP/e8IyihkjCYqhCScpSwnlaSRkQ==",
 | 
				
			||||||
 | 
					      "license": "MIT",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "node_modules/zstddec": {
 | 
				
			||||||
 | 
					      "version": "0.1.0",
 | 
				
			||||||
 | 
					      "resolved": "https://registry.npmjs.org/zstddec/-/zstddec-0.1.0.tgz",
 | 
				
			||||||
 | 
					      "integrity": "sha512-w2NTI8+3l3eeltKAdK8QpiLo/flRAr2p8AGeakfMZOXBxOg9HIu4LVDxBi81sYgVhFhdJjv1OrB5ssI8uFPoLg==",
 | 
				
			||||||
 | 
					      "license": "MIT AND BSD-3-Clause",
 | 
				
			||||||
 | 
					      "peer": true
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										38
									
								
								projects/ng-openlayers/package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								projects/ng-openlayers/package.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,38 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					  "name": "@farmmaps/ng-openlayers",
 | 
				
			||||||
 | 
					  "version": "18.0.0",
 | 
				
			||||||
 | 
					  "description": "OpenLayers library for Angular (migrated from angular 17 to 18)",
 | 
				
			||||||
 | 
					  "author": "Kamil Furtak (kamil.furtak@gmail.com) / Farmmaps",
 | 
				
			||||||
 | 
					  "publishConfig": {
 | 
				
			||||||
 | 
					    "registry": "https://repository.akkerweb.nl/repository/npm-hosted/"
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "bugs": {
 | 
				
			||||||
 | 
					    "url": "https://github.com/kamilfurtak/ng-openlayers/issues"
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "homepage": "https://github.com/kamilfurtak/ng-openlayers",
 | 
				
			||||||
 | 
					  "keywords": [
 | 
				
			||||||
 | 
					    "ngx-openlayers",
 | 
				
			||||||
 | 
					    "angular",
 | 
				
			||||||
 | 
					    "angular18",
 | 
				
			||||||
 | 
					    "openlayers",
 | 
				
			||||||
 | 
					    "openlayers8",
 | 
				
			||||||
 | 
					    "ol8"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "license": "MPL-2.0",
 | 
				
			||||||
 | 
					  "private": false,
 | 
				
			||||||
 | 
					  "scripts": {
 | 
				
			||||||
 | 
					    "release": "standard-version -m \"chore(release): version %s\" -t \"\"",
 | 
				
			||||||
 | 
					    "prepublishOnly": "cp projects/ng-openlayers/README.md dist/ng-openlayers/README.md"
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "standard-version": {
 | 
				
			||||||
 | 
					    "postchangelog": "cp projects/ng-openlayers/CHANGELOG.md dist/ng-openlayers/CHANGELOG.md"
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "dependencies": {
 | 
				
			||||||
 | 
					    "tslib": "^2.3.0"
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "peerDependencies": {
 | 
				
			||||||
 | 
					    "@angular/common": "18.2.3",
 | 
				
			||||||
 | 
					    "@angular/core": "18.2.3",
 | 
				
			||||||
 | 
					    "ol": "^8.2.0"
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										38
									
								
								projects/ng-openlayers/project.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								projects/ng-openlayers/project.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,38 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					  "name": "@farmmaps/ng-openlayers",
 | 
				
			||||||
 | 
					  "$schema": "../../node_modules/nx/schemas/project-schema.json",
 | 
				
			||||||
 | 
					  "projectType": "library",
 | 
				
			||||||
 | 
					  "sourceRoot": "libs/ng-openlayers/src",
 | 
				
			||||||
 | 
					  "prefix": "lib",
 | 
				
			||||||
 | 
					  "targets": {
 | 
				
			||||||
 | 
					    "build": {
 | 
				
			||||||
 | 
					      "executor": "@nx/angular:package",
 | 
				
			||||||
 | 
					      "options": {
 | 
				
			||||||
 | 
					        "tsConfig": "libs/ng-openlayers/tsconfig.lib.json",
 | 
				
			||||||
 | 
					        "project": "libs/ng-openlayers/ng-package.json"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "configurations": {
 | 
				
			||||||
 | 
					        "production": {
 | 
				
			||||||
 | 
					          "tsConfig": "libs/ng-openlayers/tsconfig.lib.prod.json"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "test": {
 | 
				
			||||||
 | 
					      "executor": "@angular-devkit/build-angular:karma",
 | 
				
			||||||
 | 
					      "options": {
 | 
				
			||||||
 | 
					        "main": "libs/ng-openlayers/src/test.ts",
 | 
				
			||||||
 | 
					        "tsConfig": "libs/ng-openlayers/tsconfig.spec.json",
 | 
				
			||||||
 | 
					        "karmaConfig": "libs/ng-openlayers/karma.conf.js"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "lint": {
 | 
				
			||||||
 | 
					      "executor": "@nx/eslint:lint",
 | 
				
			||||||
 | 
					      "options": {
 | 
				
			||||||
 | 
					        "lintFilePatterns": [
 | 
				
			||||||
 | 
					          "libs/ng-openlayers/**/*.ts",
 | 
				
			||||||
 | 
					          "libs/ng-openlayers/**/*.html"
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										15
									
								
								projects/ng-openlayers/src/lib/attribution.component.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								projects/ng-openlayers/src/lib/attribution.component.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					import { Component, ElementRef, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-attribution',
 | 
				
			||||||
 | 
					  template: '<ng-content></ng-content>',
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class AttributionComponent implements OnInit {
 | 
				
			||||||
 | 
					  label: string;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(private elementRef: ElementRef) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.label = this.elementRef.nativeElement.innerHTML;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										25
									
								
								projects/ng-openlayers/src/lib/attributions.component.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								projects/ng-openlayers/src/lib/attributions.component.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
				
			|||||||
 | 
					import { AfterViewInit, Component, ContentChildren, Host, QueryList } from '@angular/core';
 | 
				
			||||||
 | 
					import { SourceComponent } from './sources/source.component';
 | 
				
			||||||
 | 
					import { AttributionComponent } from './attribution.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-attributions',
 | 
				
			||||||
 | 
					  template: '<ng-content></ng-content>',
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class AttributionsComponent implements AfterViewInit {
 | 
				
			||||||
 | 
					  @ContentChildren(AttributionComponent)
 | 
				
			||||||
 | 
					  attributions: QueryList<AttributionComponent>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  instance: Array<string>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(@Host() private source: SourceComponent) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  /* we can do this at the very end */
 | 
				
			||||||
 | 
					  ngAfterViewInit() {
 | 
				
			||||||
 | 
					    if (this.attributions.length) {
 | 
				
			||||||
 | 
					      this.instance = this.attributions.map((cmp) => cmp.label);
 | 
				
			||||||
 | 
					      // console.log('setting attributions:', this.instance);
 | 
				
			||||||
 | 
					      this.source.instance.setAttributions(this.instance);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,89 @@
 | 
				
			|||||||
 | 
					import { Component, Input, OnChanges, OnInit, Optional, SimpleChanges } from '@angular/core';
 | 
				
			||||||
 | 
					import { MapComponent } from './map.component';
 | 
				
			||||||
 | 
					import { GeometryLinestringComponent } from './geom/geometrylinestring.component';
 | 
				
			||||||
 | 
					import { GeometryPolygonComponent } from './geom/geometrypolygon.component';
 | 
				
			||||||
 | 
					import { GeometryMultiPointComponent } from './geom/geometrymultipoint.component';
 | 
				
			||||||
 | 
					import { GeometryMultiLinestringComponent } from './geom/geometrymultilinestring.component';
 | 
				
			||||||
 | 
					import { GeometryMultiPolygonComponent } from './geom/geometrymultipolygon.component';
 | 
				
			||||||
 | 
					import { Coordinate } from 'ol/coordinate';
 | 
				
			||||||
 | 
					import { transform } from 'ol/proj';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-collection-coordinates',
 | 
				
			||||||
 | 
					  template: ` <div class="aol-collection-coordinates"></div> `,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class CollectionCoordinatesComponent implements OnChanges, OnInit {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  coordinates: Coordinate[] | Coordinate[][] | Coordinate[][][];
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  srid = 'EPSG:3857';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  private host: any;
 | 
				
			||||||
 | 
					  private mapSrid = 'EPSG:3857';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(
 | 
				
			||||||
 | 
					    private map: MapComponent,
 | 
				
			||||||
 | 
					    @Optional() geometryLinestring: GeometryLinestringComponent,
 | 
				
			||||||
 | 
					    @Optional() geometryPolygon: GeometryPolygonComponent,
 | 
				
			||||||
 | 
					    @Optional() geometryMultipoint: GeometryMultiPointComponent,
 | 
				
			||||||
 | 
					    @Optional() geometryMultilinestring: GeometryMultiLinestringComponent,
 | 
				
			||||||
 | 
					    @Optional() geometryMultipolygon: GeometryMultiPolygonComponent
 | 
				
			||||||
 | 
					  ) {
 | 
				
			||||||
 | 
					    if (!!geometryLinestring) {
 | 
				
			||||||
 | 
					      this.host = geometryLinestring;
 | 
				
			||||||
 | 
					    } else if (!!geometryPolygon) {
 | 
				
			||||||
 | 
					      this.host = geometryPolygon;
 | 
				
			||||||
 | 
					    } else if (!!geometryMultipoint) {
 | 
				
			||||||
 | 
					      this.host = geometryMultipoint;
 | 
				
			||||||
 | 
					    } else if (!!geometryMultilinestring) {
 | 
				
			||||||
 | 
					      this.host = geometryMultilinestring;
 | 
				
			||||||
 | 
					    } else if (!!geometryMultipolygon) {
 | 
				
			||||||
 | 
					      this.host = geometryMultipolygon;
 | 
				
			||||||
 | 
					    } else {
 | 
				
			||||||
 | 
					      throw new Error('aol-collection-coordinates must be a child of a geometry component');
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.map.instance.on('change:view', (e) => this.onMapViewChanged(e));
 | 
				
			||||||
 | 
					    this.mapSrid = this.map.instance.getView().getProjection().getCode();
 | 
				
			||||||
 | 
					    this.transformCoordinates();
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnChanges(changes: SimpleChanges) {
 | 
				
			||||||
 | 
					    this.transformCoordinates();
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  private onMapViewChanged(event) {
 | 
				
			||||||
 | 
					    this.mapSrid = event.target.get(event.key).getProjection().getCode();
 | 
				
			||||||
 | 
					    this.transformCoordinates();
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  private transformCoordinates() {
 | 
				
			||||||
 | 
					    let transformedCoordinates: Coordinate[] | Coordinate[][] | Coordinate[][][];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (this.srid === this.mapSrid) {
 | 
				
			||||||
 | 
					      transformedCoordinates = this.coordinates;
 | 
				
			||||||
 | 
					    } else {
 | 
				
			||||||
 | 
					      switch (this.host.componentType) {
 | 
				
			||||||
 | 
					        case 'geometry-linestring':
 | 
				
			||||||
 | 
					        case 'geometry-multipoint':
 | 
				
			||||||
 | 
					          transformedCoordinates = (this.coordinates as Coordinate[]).map((c) => transform(c, this.srid, this.mapSrid));
 | 
				
			||||||
 | 
					          break;
 | 
				
			||||||
 | 
					        case 'geometry-polygon':
 | 
				
			||||||
 | 
					        case 'geometry-multilinestring':
 | 
				
			||||||
 | 
					          transformedCoordinates = (this.coordinates as Coordinate[][]).map((cc) =>
 | 
				
			||||||
 | 
					            cc.map((c) => transform(c, this.srid, this.mapSrid))
 | 
				
			||||||
 | 
					          );
 | 
				
			||||||
 | 
					          break;
 | 
				
			||||||
 | 
					        case 'geometry-multipolygon':
 | 
				
			||||||
 | 
					          transformedCoordinates = (this.coordinates as Coordinate[][][]).map((ccc) =>
 | 
				
			||||||
 | 
					            ccc.map((cc) => cc.map((c) => transform(c, this.srid, this.mapSrid)))
 | 
				
			||||||
 | 
					          );
 | 
				
			||||||
 | 
					          break;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    this.host.instance.setCoordinates(transformedCoordinates);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										9
									
								
								projects/ng-openlayers/src/lib/content.component.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								projects/ng-openlayers/src/lib/content.component.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					import { Component, ElementRef } from '@angular/core';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-content',
 | 
				
			||||||
 | 
					  template: '<ng-content></ng-content>',
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class ContentComponent {
 | 
				
			||||||
 | 
					  constructor(public elementRef: ElementRef) {}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,33 @@
 | 
				
			|||||||
 | 
					import { Component, ElementRef, Input, OnDestroy, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					import { Attribution } from 'ol/control';
 | 
				
			||||||
 | 
					import { MapComponent } from '../map.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-control-attribution',
 | 
				
			||||||
 | 
					  template: ``,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class ControlAttributionComponent implements OnInit, OnDestroy {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  collapsible: boolean;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  public componentType = 'control';
 | 
				
			||||||
 | 
					  instance: Attribution;
 | 
				
			||||||
 | 
					  target: HTMLElement;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(
 | 
				
			||||||
 | 
					    private map: MapComponent,
 | 
				
			||||||
 | 
					    private element: ElementRef
 | 
				
			||||||
 | 
					  ) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.target = this.element.nativeElement;
 | 
				
			||||||
 | 
					    // console.log('ol.control.Attribution init: ', this);
 | 
				
			||||||
 | 
					    this.instance = new Attribution(this);
 | 
				
			||||||
 | 
					    this.map.instance.addControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy() {
 | 
				
			||||||
 | 
					    // console.log('removing aol-control-attribution');
 | 
				
			||||||
 | 
					    this.map.instance.removeControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										33
									
								
								projects/ng-openlayers/src/lib/controls/control.component.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								projects/ng-openlayers/src/lib/controls/control.component.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
				
			|||||||
 | 
					import { Component, ContentChild, OnDestroy, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					import { Control } from 'ol/control';
 | 
				
			||||||
 | 
					import { MapComponent } from '../map.component';
 | 
				
			||||||
 | 
					import { ContentComponent } from '../content.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-control',
 | 
				
			||||||
 | 
					  template: ` <ng-content></ng-content> `,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class ControlComponent implements OnInit, OnDestroy {
 | 
				
			||||||
 | 
					  @ContentChild(ContentComponent, { static: true })
 | 
				
			||||||
 | 
					  content: ContentComponent;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  public componentType = 'control';
 | 
				
			||||||
 | 
					  instance: Control;
 | 
				
			||||||
 | 
					  element: HTMLElement;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(private map: MapComponent) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    if (this.content) {
 | 
				
			||||||
 | 
					      this.element = this.content.elementRef.nativeElement;
 | 
				
			||||||
 | 
					      this.instance = new Control(this);
 | 
				
			||||||
 | 
					      this.map.instance.addControl(this.instance);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy() {
 | 
				
			||||||
 | 
					    if (this.instance) {
 | 
				
			||||||
 | 
					      this.map.instance.removeControl(this.instance);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										42
									
								
								projects/ng-openlayers/src/lib/controls/default.component.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								projects/ng-openlayers/src/lib/controls/default.component.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
				
			|||||||
 | 
					import { Component, OnDestroy, OnInit, Input } from '@angular/core';
 | 
				
			||||||
 | 
					import { Control, defaults } from 'ol/control';
 | 
				
			||||||
 | 
					import { Collection } from 'ol';
 | 
				
			||||||
 | 
					import { Options as AttributionOptions } from 'ol/control/Attribution';
 | 
				
			||||||
 | 
					import { Options as RotateOptions } from 'ol/control/Rotate';
 | 
				
			||||||
 | 
					import { Options as ZoomOptions } from 'ol/control/Zoom';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import { MapComponent } from '../map.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-control-defaults',
 | 
				
			||||||
 | 
					  template: '',
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class DefaultControlComponent implements OnInit, OnDestroy {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  attribution: boolean;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  attributionOptions: AttributionOptions;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  rotate: boolean;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  rotateOptions: RotateOptions;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  zoom: boolean;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  zoomOptions: ZoomOptions;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  instance: Collection<Control>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(private map: MapComponent) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    // console.log('ol.control.defaults init: ', this);
 | 
				
			||||||
 | 
					    this.instance = defaults(this);
 | 
				
			||||||
 | 
					    this.instance.forEach((c) => this.map.instance.addControl(c));
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy() {
 | 
				
			||||||
 | 
					    // console.log('removing aol-control-defaults');
 | 
				
			||||||
 | 
					    this.instance.forEach((c) => this.map.instance.removeControl(c));
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,36 @@
 | 
				
			|||||||
 | 
					import { Component, Input, OnDestroy, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					import { FullScreen } from 'ol/control';
 | 
				
			||||||
 | 
					import { MapComponent } from '../map.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-control-fullscreen',
 | 
				
			||||||
 | 
					  template: ` <ng-content></ng-content> `,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class ControlFullScreenComponent implements OnInit, OnDestroy {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  className: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  label: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  labelActive: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  tipLabel: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  keys: boolean;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  instance: FullScreen;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(private map: MapComponent) {
 | 
				
			||||||
 | 
					    // console.log('instancing aol-control-fullscreen');
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.instance = new FullScreen(this);
 | 
				
			||||||
 | 
					    this.map.instance.addControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy() {
 | 
				
			||||||
 | 
					    // console.log('removing aol-control-fullscreen');
 | 
				
			||||||
 | 
					    this.map.instance.removeControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,36 @@
 | 
				
			|||||||
 | 
					import { Component, ElementRef, Input, OnDestroy, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					import MousePosition from 'ol/control/MousePosition';
 | 
				
			||||||
 | 
					import { MapComponent } from '../map.component';
 | 
				
			||||||
 | 
					import { CoordinateFormat } from 'ol/coordinate';
 | 
				
			||||||
 | 
					import { ProjectionLike } from 'ol/proj';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-control-mouseposition',
 | 
				
			||||||
 | 
					  template: ``,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class ControlMousePositionComponent implements OnInit, OnDestroy {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  coordinateFormat: CoordinateFormat;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  projection: ProjectionLike;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  instance: MousePosition;
 | 
				
			||||||
 | 
					  target: HTMLElement;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(
 | 
				
			||||||
 | 
					    private map: MapComponent,
 | 
				
			||||||
 | 
					    private element: ElementRef
 | 
				
			||||||
 | 
					  ) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.target = this.element.nativeElement;
 | 
				
			||||||
 | 
					    // console.log('ol.control.MousePosition init: ', this);
 | 
				
			||||||
 | 
					    this.instance = new MousePosition(this);
 | 
				
			||||||
 | 
					    this.map.instance.addControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy() {
 | 
				
			||||||
 | 
					    // console.log('removing aol-control-mouseposition');
 | 
				
			||||||
 | 
					    this.map.instance.removeControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,53 @@
 | 
				
			|||||||
 | 
					import { Component, Input, OnDestroy, OnInit, OnChanges, SimpleChanges } from '@angular/core';
 | 
				
			||||||
 | 
					import { Layer } from 'ol/layer';
 | 
				
			||||||
 | 
					import { View } from 'ol';
 | 
				
			||||||
 | 
					import { OverviewMap } from 'ol/control';
 | 
				
			||||||
 | 
					import { MapComponent } from '../map.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-control-overviewmap',
 | 
				
			||||||
 | 
					  template: ` <ng-content></ng-content> `,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class ControlOverviewMapComponent implements OnInit, OnChanges, OnDestroy {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  collapsed: boolean;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  collapseLabel: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  collapsible: boolean;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  label: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  layers: Layer[];
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  target: HTMLElement;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  tipLabel: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  view: View;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  instance: OverviewMap;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(private map: MapComponent) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.instance = new OverviewMap(this);
 | 
				
			||||||
 | 
					    this.map.instance.addControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy() {
 | 
				
			||||||
 | 
					    this.map.instance.removeControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnChanges(changes: SimpleChanges) {
 | 
				
			||||||
 | 
					    if (this.instance != null && changes.hasOwnProperty('view')) {
 | 
				
			||||||
 | 
					      this.reloadInstance();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  private reloadInstance() {
 | 
				
			||||||
 | 
					    this.map.instance.removeControl(this.instance);
 | 
				
			||||||
 | 
					    this.instance = new OverviewMap(this);
 | 
				
			||||||
 | 
					    this.map.instance.addControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										36
									
								
								projects/ng-openlayers/src/lib/controls/rotate.component.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								projects/ng-openlayers/src/lib/controls/rotate.component.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,36 @@
 | 
				
			|||||||
 | 
					import { Component, Input, OnDestroy, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					import { Rotate } from 'ol/control';
 | 
				
			||||||
 | 
					import { MapComponent } from '../map.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-control-rotate',
 | 
				
			||||||
 | 
					  template: ` <ng-content></ng-content> `,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class ControlRotateComponent implements OnInit, OnDestroy {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  className: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  label: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  tipLabel: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  duration: number;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  autoHide: boolean;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  instance: Rotate;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(private map: MapComponent) {
 | 
				
			||||||
 | 
					    // console.log('instancing aol-control-rotate');
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.instance = new Rotate(this);
 | 
				
			||||||
 | 
					    this.map.instance.addControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy() {
 | 
				
			||||||
 | 
					    // console.log('removing aol-control-rotate');
 | 
				
			||||||
 | 
					    this.map.instance.removeControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					import { Component, Input, OnDestroy, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					import { ScaleLine } from 'ol/control';
 | 
				
			||||||
 | 
					import { MapComponent } from '../map.component';
 | 
				
			||||||
 | 
					import { Units } from 'ol/control/ScaleLine';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-control-scaleline',
 | 
				
			||||||
 | 
					  template: ` <ng-content></ng-content> `,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class ControlScaleLineComponent implements OnInit, OnDestroy {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  units: Units;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  instance: ScaleLine;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(private map: MapComponent) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.instance = new ScaleLine(this);
 | 
				
			||||||
 | 
					    this.map.instance.addControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy() {
 | 
				
			||||||
 | 
					    this.map.instance.removeControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										38
									
								
								projects/ng-openlayers/src/lib/controls/zoom.component.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								projects/ng-openlayers/src/lib/controls/zoom.component.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,38 @@
 | 
				
			|||||||
 | 
					import { Component, Input, OnDestroy, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					import { Zoom } from 'ol/control';
 | 
				
			||||||
 | 
					import { MapComponent } from '../map.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-control-zoom',
 | 
				
			||||||
 | 
					  template: ` <ng-content></ng-content> `,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class ControlZoomComponent implements OnInit, OnDestroy {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  duration: number;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  zoomInLabel: string | HTMLElement;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  zoomOutLabel: string | HTMLElement;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  zoomInTipLabel: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  zoomOutTipLabel: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  delta: number;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  instance: Zoom;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(private map: MapComponent) {
 | 
				
			||||||
 | 
					    // console.log('instancing aol-control-zoom');
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.instance = new Zoom(this);
 | 
				
			||||||
 | 
					    this.map.instance.addControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy() {
 | 
				
			||||||
 | 
					    // console.log('removing aol-control-zoom');
 | 
				
			||||||
 | 
					    this.map.instance.removeControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,34 @@
 | 
				
			|||||||
 | 
					import { Component, Input, OnDestroy, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					import { ZoomSlider } from 'ol/control';
 | 
				
			||||||
 | 
					import { MapComponent } from '../map.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-control-zoomslider',
 | 
				
			||||||
 | 
					  template: ` <ng-content></ng-content> `,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class ControlZoomSliderComponent implements OnInit, OnDestroy {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  className: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  duration: number;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  maxResolution: number;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  minResolution: number;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  instance: ZoomSlider;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(private map: MapComponent) {
 | 
				
			||||||
 | 
					    // console.log('instancing aol-control-zoomslider');
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.instance = new ZoomSlider(this);
 | 
				
			||||||
 | 
					    this.map.instance.addControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy() {
 | 
				
			||||||
 | 
					    // console.log('removing aol-control-zoomslider');
 | 
				
			||||||
 | 
					    this.map.instance.removeControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,35 @@
 | 
				
			|||||||
 | 
					import { Component, Input, OnDestroy, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					import { ZoomToExtent } from 'ol/control';
 | 
				
			||||||
 | 
					import { MapComponent } from '../map.component';
 | 
				
			||||||
 | 
					import { Extent } from 'ol/extent';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-control-zoomtoextent',
 | 
				
			||||||
 | 
					  template: ` <ng-content></ng-content> `,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class ControlZoomToExtentComponent implements OnInit, OnDestroy {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  className: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  label: string | HTMLElement;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  tipLabel: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  extent: Extent;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  instance: ZoomToExtent;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(private map: MapComponent) {
 | 
				
			||||||
 | 
					    // console.log('instancing aol-control-zoomtoextent');
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.instance = new ZoomToExtent(this);
 | 
				
			||||||
 | 
					    this.map.instance.addControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy() {
 | 
				
			||||||
 | 
					    // console.log('removing aol-control-zoomtoextent');
 | 
				
			||||||
 | 
					    this.map.instance.removeControl(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										80
									
								
								projects/ng-openlayers/src/lib/coordinate.component.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										80
									
								
								projects/ng-openlayers/src/lib/coordinate.component.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,80 @@
 | 
				
			|||||||
 | 
					import { Component, Optional, OnChanges, Input, SimpleChanges, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					import { transform } from 'ol/proj';
 | 
				
			||||||
 | 
					import { MapComponent } from './map.component';
 | 
				
			||||||
 | 
					import { GeometryPointComponent } from './geom/geometrypoint.component';
 | 
				
			||||||
 | 
					import { GeometryCircleComponent } from './geom/geometrycircle.component';
 | 
				
			||||||
 | 
					import { ViewComponent } from './view.component';
 | 
				
			||||||
 | 
					import { OverlayComponent } from './overlay.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-coordinate',
 | 
				
			||||||
 | 
					  template: ` <div class="aol-coordinate"></div> `,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class CoordinateComponent implements OnChanges, OnInit {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  x: number;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  y: number;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  srid = 'EPSG:3857';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  private host: any;
 | 
				
			||||||
 | 
					  private mapSrid = 'EPSG:3857';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(
 | 
				
			||||||
 | 
					    private map: MapComponent,
 | 
				
			||||||
 | 
					    @Optional() viewHost: ViewComponent,
 | 
				
			||||||
 | 
					    @Optional() geometryPointHost: GeometryPointComponent,
 | 
				
			||||||
 | 
					    @Optional() geometryCircleHost: GeometryCircleComponent,
 | 
				
			||||||
 | 
					    @Optional() overlayHost: OverlayComponent
 | 
				
			||||||
 | 
					  ) {
 | 
				
			||||||
 | 
					    // console.log('instancing aol-coordinate');
 | 
				
			||||||
 | 
					    if (geometryPointHost !== null) {
 | 
				
			||||||
 | 
					      this.host = geometryPointHost;
 | 
				
			||||||
 | 
					    } else if (geometryCircleHost !== null) {
 | 
				
			||||||
 | 
					      this.host = geometryCircleHost;
 | 
				
			||||||
 | 
					    } else if (viewHost !== null) {
 | 
				
			||||||
 | 
					      this.host = viewHost;
 | 
				
			||||||
 | 
					    } else if (overlayHost !== null) {
 | 
				
			||||||
 | 
					      this.host = overlayHost;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.map.instance.on('change:view', (e) => this.onMapViewChanged(e));
 | 
				
			||||||
 | 
					    this.mapSrid = this.map.instance.getView().getProjection().getCode();
 | 
				
			||||||
 | 
					    this.transformCoordinates();
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnChanges(changes: SimpleChanges) {
 | 
				
			||||||
 | 
					    this.transformCoordinates();
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  private onMapViewChanged(event) {
 | 
				
			||||||
 | 
					    this.mapSrid = event.target.get(event.key).getProjection().getCode();
 | 
				
			||||||
 | 
					    this.transformCoordinates();
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  private transformCoordinates() {
 | 
				
			||||||
 | 
					    let transformedCoordinates: number[];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (this.srid === this.mapSrid) {
 | 
				
			||||||
 | 
					      transformedCoordinates = [this.x, this.y];
 | 
				
			||||||
 | 
					    } else {
 | 
				
			||||||
 | 
					      transformedCoordinates = transform([this.x, this.y], this.srid, this.mapSrid);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    switch (this.host.componentType) {
 | 
				
			||||||
 | 
					      case 'geometry-point':
 | 
				
			||||||
 | 
					        this.host.instance.setCoordinates(transformedCoordinates);
 | 
				
			||||||
 | 
					        break;
 | 
				
			||||||
 | 
					      case 'geometry-circle':
 | 
				
			||||||
 | 
					      case 'view':
 | 
				
			||||||
 | 
					        this.host.instance.setCenter(transformedCoordinates);
 | 
				
			||||||
 | 
					        break;
 | 
				
			||||||
 | 
					      case 'overlay':
 | 
				
			||||||
 | 
					        this.host.instance.setPosition(transformedCoordinates);
 | 
				
			||||||
 | 
					        break;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										35
									
								
								projects/ng-openlayers/src/lib/feature.component.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								projects/ng-openlayers/src/lib/feature.component.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
				
			|||||||
 | 
					import { Component, OnInit, OnDestroy, OnChanges, Input, SimpleChanges } from '@angular/core';
 | 
				
			||||||
 | 
					import { Feature } from 'ol';
 | 
				
			||||||
 | 
					import { SourceVectorComponent } from './sources/vector.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-feature',
 | 
				
			||||||
 | 
					  template: ` <ng-content></ng-content> `,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class FeatureComponent implements OnInit, OnDestroy, OnChanges {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  id: string | number | undefined;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  public componentType = 'feature';
 | 
				
			||||||
 | 
					  public instance: Feature;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(private host: SourceVectorComponent) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.instance = new Feature();
 | 
				
			||||||
 | 
					    if (this.id !== undefined) {
 | 
				
			||||||
 | 
					      this.instance.setId(this.id);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    this.host.instance.addFeature(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy() {
 | 
				
			||||||
 | 
					    this.host.instance.removeFeature(this.instance);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnChanges(changes: SimpleChanges) {
 | 
				
			||||||
 | 
					    if (this.instance) {
 | 
				
			||||||
 | 
					      this.instance.setId(this.id);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					import Feature from 'ol/format/Feature';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export class FormatComponent {
 | 
				
			||||||
 | 
					  public instance: Feature;
 | 
				
			||||||
 | 
					  public componentType = 'format';
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										27
									
								
								projects/ng-openlayers/src/lib/formats/mvt.component.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								projects/ng-openlayers/src/lib/formats/mvt.component.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
				
			|||||||
 | 
					import { Component, forwardRef, Input } from '@angular/core';
 | 
				
			||||||
 | 
					import { FormatComponent } from './format.component';
 | 
				
			||||||
 | 
					import { MVT } from 'ol/format';
 | 
				
			||||||
 | 
					import { FeatureClass } from 'ol/Feature';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-format-mvt',
 | 
				
			||||||
 | 
					  template: '',
 | 
				
			||||||
 | 
					  providers: [{ provide: FormatComponent, useExisting: forwardRef(() => FormatMVTComponent) }],
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class FormatMVTComponent extends FormatComponent {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  featureClass: FeatureClass;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  geometryName: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  layerName: string;
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  layers: string[];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  instance: MVT;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor() {
 | 
				
			||||||
 | 
					    super();
 | 
				
			||||||
 | 
					    this.instance = new MVT(this);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,28 @@
 | 
				
			|||||||
 | 
					import { Component, Input, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					import { FeatureComponent } from '../feature.component';
 | 
				
			||||||
 | 
					import { Circle } from 'ol/geom';
 | 
				
			||||||
 | 
					import { SimpleGeometryComponent } from './simplegeometry.component';
 | 
				
			||||||
 | 
					import { MapComponent } from '../map.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-geometry-circle',
 | 
				
			||||||
 | 
					  template: ` <ng-content></ng-content> `,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class GeometryCircleComponent extends SimpleGeometryComponent implements OnInit {
 | 
				
			||||||
 | 
					  @Input()
 | 
				
			||||||
 | 
					  get radius(): number {
 | 
				
			||||||
 | 
					    return this.instance.getRadius();
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  set radius(radius: number) {
 | 
				
			||||||
 | 
					    this.instance.setRadius(radius);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  public componentType = 'geometry-circle';
 | 
				
			||||||
 | 
					  public instance: Circle;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(map: MapComponent, host: FeatureComponent) {
 | 
				
			||||||
 | 
					    super(map, host);
 | 
				
			||||||
 | 
					    // defaulting coordinates to [0,0]. To be overridden in child component.
 | 
				
			||||||
 | 
					    this.instance = new Circle([0, 0]);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					import { Component, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					import { FeatureComponent } from '../feature.component';
 | 
				
			||||||
 | 
					import { SimpleGeometryComponent } from './simplegeometry.component';
 | 
				
			||||||
 | 
					import { MapComponent } from '../map.component';
 | 
				
			||||||
 | 
					import { LineString } from 'ol/geom';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'aol-geometry-linestring',
 | 
				
			||||||
 | 
					  template: ` <ng-content></ng-content> `,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class GeometryLinestringComponent extends SimpleGeometryComponent implements OnInit {
 | 
				
			||||||
 | 
					  public componentType = 'geometry-linestring';
 | 
				
			||||||
 | 
					  public instance: LineString;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  constructor(map: MapComponent, host: FeatureComponent) {
 | 
				
			||||||
 | 
					    super(map, host);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit() {
 | 
				
			||||||
 | 
					    this.instance = new LineString([
 | 
				
			||||||
 | 
					      [0, 0],
 | 
				
			||||||
 | 
					      [1, 1],
 | 
				
			||||||
 | 
					    ]);
 | 
				
			||||||
 | 
					    super.ngOnInit();
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user