geonetwork-ui 2.2.0-dev.9ae0a68b → 2.2.0-dev.aecf1900

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.mjs +2 -1
  2. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  3. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +5 -4
  4. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +1 -1
  5. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +106 -0
  6. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +64 -0
  7. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +8 -2
  8. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +5 -3
  9. package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +3 -1
  10. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +1 -1
  11. package/esm2022/libs/ui/elements/src/index.mjs +2 -1
  12. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +27 -0
  13. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
  14. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
  15. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +12 -7
  16. package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +3 -3
  17. package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +7 -3
  18. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +8 -3
  19. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
  20. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +2 -2
  21. package/esm2022/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.mjs +1 -1
  22. package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +1 -1
  23. package/esm2022/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.mjs +1 -1
  24. package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +1 -1
  25. package/esm2022/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.mjs +1 -1
  26. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +29 -13
  27. package/esm2022/translations/de.json +101 -94
  28. package/esm2022/translations/en.json +26 -19
  29. package/esm2022/translations/es.json +7 -0
  30. package/esm2022/translations/fr.json +10 -3
  31. package/esm2022/translations/it.json +10 -3
  32. package/esm2022/translations/nl.json +7 -0
  33. package/esm2022/translations/pt.json +7 -0
  34. package/fesm2022/geonetwork-ui.mjs +441 -185
  35. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  36. package/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.d.ts.map +1 -1
  37. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +1 -0
  38. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  39. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +15 -2
  40. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  41. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +22 -0
  42. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -0
  43. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +22 -0
  44. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -0
  45. package/libs/feature/map/src/lib/feature-map.module.d.ts +14 -12
  46. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  47. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts +1 -0
  48. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
  49. package/libs/ui/elements/src/index.d.ts +1 -0
  50. package/libs/ui/elements/src/index.d.ts.map +1 -1
  51. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  52. package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts +10 -0
  53. package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts.map +1 -0
  54. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +1 -0
  55. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
  56. package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts +3 -2
  57. package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts.map +1 -1
  58. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +12 -11
  59. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  60. package/libs/util/shared/src/lib/links/link-utils.d.ts +19 -7
  61. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  62. package/package.json +1 -1
  63. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.ts +1 -0
  64. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +1 -0
  65. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +8 -5
  66. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.css +0 -0
  67. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +21 -0
  68. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +107 -0
  69. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.css +0 -0
  70. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +37 -0
  71. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +64 -0
  72. package/src/libs/feature/map/src/lib/feature-map.module.ts +4 -0
  73. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.html +6 -2
  74. package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +6 -0
  75. package/src/libs/ui/elements/src/index.ts +1 -0
  76. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.css +0 -0
  77. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +29 -0
  78. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts +15 -0
  79. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +52 -52
  80. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +1 -1
  81. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +4 -0
  82. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +56 -27
  83. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +5 -0
  84. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +1 -1
  85. package/src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts +4 -0
  86. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +3 -0
  87. package/src/libs/ui/inputs/src/lib/button/button.component.css +1 -1
  88. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +1 -1
  89. package/src/libs/util/shared/src/lib/links/link-utils.ts +34 -11
  90. package/translations/de.json +101 -94
  91. package/translations/en.json +26 -19
  92. package/translations/es.json +7 -0
  93. package/translations/fr.json +10 -3
  94. package/translations/it.json +10 -3
  95. package/translations/nl.json +7 -0
  96. package/translations/pt.json +7 -0
  97. package/translations/sk.json +7 -0
@@ -1 +1 @@
1
- {"version":3,"file":"gn4.metadata.mapper.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AA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AAiB;6CAAjB,iBAAiB;CAwC7B"}
@@ -57,6 +57,7 @@ export interface DatasetDownloadDistribution {
57
57
  sizeBytes?: number;
58
58
  name?: string;
59
59
  description?: string;
60
+ accessServiceProtocol?: ServiceProtocol;
60
61
  }
61
62
  export interface OnlineLinkResource {
62
63
  type: 'link';
@@ -1 +1 @@
1
- {"version":3,"file":"metadata.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/common/domain/src/lib/model/record/metadata.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,KAAK,IAAI,GAAG,MAAM,CAAA;AASlB,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,YAAY,GACZ,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,CAAA;AAOd,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,EAAE,MAAM,CAAA;IACpB,GAAG,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;CACvC,CAAA;AACD,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,qBAAqB,CAAA;AAEzE,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,CAAA;AAQ9C,eAAO,MAAM,kBAAkB,UAM9B,CAAA;AACD,MAAM,MAAM,YAAY,GAAG,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAA;AAE5D,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAA;AAC7E,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,oBAAoB,CAAA;CAC3B;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,GAAG,CAAA;CACV,CAAA;AAED,MAAM,MAAM,yBAAyB,GACjC,M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AC3C,eAAe,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAA;IAC7C,qBAAqB,CAAC,EAAE,yBAAyB,CAAA;CAClD;AAED,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG,MAAM,CAAA;AAE3D,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,GAAG,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,UAAU,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,MAAM,qBAAqB,GAAG,CAAC,eAAe,GAAG,kBAAkB,CAAC,GAAG;IAC3E,IAAI,EAAE,yBAAyB,CAAA;CAChC,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,IAAI,EAAE,SAAS,CAAA;IACf,eAAe,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAA;CAC9C;AAED,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,aAAa,CAAA"}
1
+ {"version":3,"file":"metadata.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/common/domain/src/lib/model/record/metadata.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,KAAK,IAAI,GAAG,MAAM,CAAA;AASlB,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,YAAY,GACZ,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,CAAA;AAOd,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,EAAE,MAAM,CAAA;IACpB,GAAG,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;CACvC,CAAA;AACD,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,qBAAqB,CAAA;AAEzE,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,CAAA;AAQ9C,eAAO,MAAM,kBAAkB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,EAAE,IAAI,CAAA;IACX,GAAG,EAAE,IAAI,CAAA;IACT,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,IAAI,EAAE,SAAS,CAAA;IACf,mBAAmB,EAAE,KAAK,CAAC,UAAU,CAAC,CAAA;IACtC,MAAM,EAAE,YAAY,CAAA;IACpB,cAAc,CAAC,EAAE,IAAI,CAAA;IACrB,cAAc,CAAC,EAAE,IAAI,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAA;IACzC,cAAc,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAA;IAC3C,eAAe,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAA;IAC7C,qBAAqB,CAAC,EAAE,yBAAyB,CAAA;CAClD;AAED,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG,MAAM,CAAA;AAE3D,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,GAAG,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,UAAU,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,MAAM,qBAAqB,GAAG,CAAC,eAAe,GAAG,kBAAkB,CAAC,GAAG;IAC3E,IAAI,EAAE,yBAAyB,CAAA;CAChC,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,IAAI,EAAE,SAAS,CAAA;IACf,eAAe,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAA;CAC9C;AAED,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,aAAa,CAAA"}
@@ -1,14 +1,26 @@
1
+ import { WfsVersion } from '@camptocamp/ogc-client';
1
2
  import { BaseReader } from '../../../../../../libs/util/data-fetcher/src';
2
3
  import { ProxyService } from '../../../../../../libs/util/shared/src';
3
4
  import type { FeatureCollection } from 'geojson';
4
5
  import { Observable } from 'rxjs';
5
6
  import { DatasetDistribution, DatasetServiceDistribution } from '../../../../../../libs/common/domain/src/lib/model/record';
6
7
  import * as i0 from "@angular/core";
8
+ interface WfsDownloadUrls {
9
+ all: {
10
+ [format: string]: string;
11
+ };
12
+ geojson: string;
13
+ gml: {
14
+ featureUrl: string;
15
+ namespace: string;
16
+ wfsVersion: WfsVersion;
17
+ };
18
+ }
7
19
  export declare class DataService {
8
20
  private proxy;
9
21
  constructor(proxy: ProxyService);
10
- private getDownloadUrlsFromWfs;
11
- private getDownloadUrlFromEsriRest;
22
+ getDownloadUrlsFromWfs(wfsUrl: string, featureTypeName: string): Observable<WfsDownloadUrls>;
23
+ getDownloadUrlFromEsriRest(apiUrl: string, format: string): string;
12
24
  getDownloadLinksFromWfs(wfsLink: DatasetServiceDistribution): Observable<DatasetDistribution[]>;
13
25
  getDownloadLinksFromEsriRest(esriRestLink: DatasetServiceDistribution): DatasetDistribution[];
14
26
  readAsGeoJson(link: DatasetDistribution): Observable<FeatureCollection>;
@@ -16,4 +28,5 @@ export declare class DataService {
16
28
  static ɵfac: i0.ɵɵFactoryDeclaration<DataService, never>;
17
29
  static ɵprov: i0.ɵɵInjectableDeclaration<DataService>;
18
30
  }
31
+ export {};
19
32
  //# sourceMappingURL=data.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data.service.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/dataviz/src/lib/service/data.service.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EAKX,MAAM,8CAA8C,CAAA;AACrD,OAAO,EAIL,YAAY,EACb,MAAM,wCAAwC,CAAA;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,EAAQ,UAAU,EAAc,MAAM,MAAM,CAAA;AAEnD,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,2DAA2D,CAAA;;AAmBlE,qBAGa,WAAW;IACV,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,YAAY;IAEvC,OAAO,CAAC,sBAAsB;IA2E9B,OAAO,CAAC,0BAA0B;IAMlC,uBAAuB,CACrB,OAAO,EAAE,0BAA0B,GAClC,UAAU,CAAC,mBAAmB,EAAE,CAAC;IAiBpC,4BAA4B,CAC1B,YAAY,EAAE,0BAA0B,GACvC,mBAAmB,EAAE;IAUxB,aAAa,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAUvE,UAAU,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU,CAAC,UAAU,CAAC;yCA7HlD,WAAW;6CAAX,WAAW;CAmKvB"}
1
+ {"version":3,"file":"data.service.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/dataviz/src/lib/service/data.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAChE,OAAO,EACL,UAAU,EAKX,MAAM,8CAA8C,CAAA;AACrD,OAAO,EAIL,YAAY,EACb,MAAM,wCAAwC,CAAA;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,EAAQ,UAAU,EAAc,MAAM,MAAM,CAAA;AAEnD,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,2DAA2D,CAAA;;AAalE,UAAU,eAAe;IACvB,GAAG,EAAE;QAAE,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,UAAU,CAAA;KAAE,CAAA;CACvE;AAED,qBAGa,WAAW;IACV,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,YAAY;IAEvC,sBAAsB,CACpB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,MAAM,GACtB,UAAU,CAAC,eAAe,CAAC;IAwE9B,0BAA0B,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;IAMlE,uBAAuB,CACrB,OAAO,EAAE,0BAA0B,GAClC,UAAU,CAAC,mBAAmB,EAAE,CAAC;IAoBpC,4BAA4B,CAC1B,YAAY,EAAE,0BAA0B,GACvC,mBAAmB,EAAE;IAUxB,aAAa,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAUvE,UAAU,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU,CAAC,UAAU,CAAC;yCAhIlD,WAAW;6CAAX,WAAW;CAsKvB"}
@@ -0,0 +1,22 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { MapFacade } from '../+state/map.facade';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AddLayerFromFileComponent {
5
+ private mapFacade;
6
+ private changeDetectorRef;
7
+ errorMessage: string | null;
8
+ successMessage: string | null;
9
+ loading: boolean;
10
+ readonly acceptedMimeType: string[];
11
+ readonly maxFileSize = 5000000;
12
+ constructor(mapFacade: MapFacade, changeDetectorRef: ChangeDetectorRef);
13
+ handleFileChange(file: File): Promise<void>;
14
+ private addLayer;
15
+ private addGeoJsonLayer;
16
+ private isFileFormatValid;
17
+ private getFileExtension;
18
+ private displayMessage;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddLayerFromFileComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddLayerFromFileComponent, "gn-ui-add-layer-from-file", never, {}, {}, never, never, false, never>;
21
+ }
22
+ //# sourceMappingURL=add-layer-from-file.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-layer-from-file.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAa,MAAM,eAAe,CAAA;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;;AAIhD,qBAKa,yBAAyB;IAQlC,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,iBAAiB;IAR3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAO;IAClC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAO;IACpC,OAAO,UAAQ;IACf,QAAQ,CAAC,gBAAgB,WAAe;IACxC,QAAQ,CAAC,WAAW,WAAU;gBAGpB,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,iBAAiB;IAGxC,gBAAgB,CAAC,IAAI,EAAE,IAAI;YAYnB,QAAQ;IA0BtB,OAAO,CAAC,eAAe;IAuBvB,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,cAAc;yCAlFX,yBAAyB;2CAAzB,yBAAyB;CA+FrC"}
@@ -0,0 +1,22 @@
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { WfsEndpoint, WfsFeatureTypeBrief } from '@camptocamp/ogc-client';
3
+ import { Subject } from 'rxjs';
4
+ import { MapFacade } from '../+state/map.facade';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AddLayerFromWfsComponent implements OnInit {
7
+ private mapFacade;
8
+ private changeDetectorRef;
9
+ wfsUrl: string;
10
+ loading: boolean;
11
+ layers: WfsFeatureTypeBrief[];
12
+ wfsEndpoint: WfsEndpoint | null;
13
+ urlChange: Subject<string>;
14
+ errorMessage: string | null;
15
+ constructor(mapFacade: MapFacade, changeDetectorRef: ChangeDetectorRef);
16
+ ngOnInit(): void;
17
+ loadLayers(): Promise<void>;
18
+ addLayer(layer: WfsFeatureTypeBrief): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddLayerFromWfsComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddLayerFromWfsComponent, "gn-ui-add-layer-from-wfs", never, {}, {}, never, never, false, never>;
21
+ }
22
+ //# sourceMappingURL=add-layer-from-wfs.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-layer-from-wfs.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAa,MAAM,EAAE,MAAM,eAAe,CAAA;AACpE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAK9B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;;AAGhD,qBAKa,wBAAyB,YAAW,MAAM;IASnD,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,iBAAiB;IAT3B,MAAM,SAAK;IACX,OAAO,UAAQ;IACf,MAAM,EAAE,mBAAmB,EAAE,CAAK;IAClC,WAAW,EAAE,WAAW,GAAG,IAAI,CAAO;IACtC,SAAS,kBAAwB;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAO;gBAGxB,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,iBAAiB;IAG9C,QAAQ;IAIF,UAAU;IAuBhB,QAAQ,CAAC,KAAK,EAAE,mBAAmB;yCAxCxB,wBAAwB;2CAAxB,wBAAwB;CAgDpC"}
@@ -6,20 +6,22 @@ import * as i4 from "./add-layer-from-catalog/add-layer-from-catalog.component";
6
6
  import * as i5 from "./map-container/map-container.component";
7
7
  import * as i6 from "./add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component";
8
8
  import * as i7 from "./add-layer-from-wms/add-layer-from-wms.component";
9
- import * as i8 from "@angular/common";
10
- import * as i9 from "../../../../ui/map/src/lib/ui-map.module";
11
- import * as i10 from "../../../../ui/layout/src/lib/ui-layout.module";
12
- import * as i11 from "@angular/material/icon";
13
- import * as i12 from "@angular/material/tabs";
14
- import * as i13 from "@ngx-translate/core";
15
- import * as i14 from "../../../search/src/lib/feature-search.module";
16
- import * as i15 from "@ngrx/store";
17
- import * as i16 from "@ngrx/effects";
18
- import * as i17 from "../../../../ui/elements/src/lib/ui-elements.module";
19
- import * as i18 from "../../../../ui/inputs/src/lib/ui-inputs.module";
9
+ import * as i8 from "./add-layer-from-file/add-layer-from-file.component";
10
+ import * as i9 from "./add-layer-from-wfs/add-layer-from-wfs.component";
11
+ import * as i10 from "@angular/common";
12
+ import * as i11 from "../../../../ui/map/src/lib/ui-map.module";
13
+ import * as i12 from "../../../../ui/layout/src/lib/ui-layout.module";
14
+ import * as i13 from "@angular/material/icon";
15
+ import * as i14 from "@angular/material/tabs";
16
+ import * as i15 from "@ngx-translate/core";
17
+ import * as i16 from "../../../search/src/lib/feature-search.module";
18
+ import * as i17 from "@ngrx/store";
19
+ import * as i18 from "@ngrx/effects";
20
+ import * as i19 from "../../../../ui/elements/src/lib/ui-elements.module";
21
+ import * as i20 from "../../../../ui/inputs/src/lib/ui-inputs.module";
20
22
  export declare class FeatureMapModule {
21
23
  static ɵfac: i0.ɵɵFactoryDeclaration<FeatureMapModule, never>;
22
- static ɵmod: i0.ɵɵNgModuleDeclaration<FeatureMapModule, [typeof i1.MapContextComponent, typeof i2.MapInstanceDirective, typeof i3.LayersPanelComponent, typeof i4.AddLayerFromCatalogComponent, typeof i5.MapContainerComponent, typeof i6.AddLayerRecordPreviewComponent, typeof i7.AddLayerFromWmsComponent], [typeof i8.CommonModule, typeof i9.UiMapModule, typeof i10.UiLayoutModule, typeof i11.MatIconModule, typeof i12.MatTabsModule, typeof i13.TranslateModule, typeof i14.FeatureSearchModule, typeof i15.StoreFeatureModule, typeof i16.EffectsFeatureModule, typeof i17.UiElementsModule, typeof i18.UiInputsModule], [typeof i1.MapContextComponent, typeof i2.MapInstanceDirective, typeof i3.LayersPanelComponent, typeof i4.AddLayerFromCatalogComponent, typeof i5.MapContainerComponent]>;
24
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FeatureMapModule, [typeof i1.MapContextComponent, typeof i2.MapInstanceDirective, typeof i3.LayersPanelComponent, typeof i4.AddLayerFromCatalogComponent, typeof i5.MapContainerComponent, typeof i6.AddLayerRecordPreviewComponent, typeof i7.AddLayerFromWmsComponent, typeof i8.AddLayerFromFileComponent, typeof i9.AddLayerFromWfsComponent], [typeof i10.CommonModule, typeof i11.UiMapModule, typeof i12.UiLayoutModule, typeof i13.MatIconModule, typeof i14.MatTabsModule, typeof i15.TranslateModule, typeof i16.FeatureSearchModule, typeof i17.StoreFeatureModule, typeof i18.EffectsFeatureModule, typeof i19.UiElementsModule, typeof i20.UiInputsModule], [typeof i1.MapContextComponent, typeof i2.MapInstanceDirective, typeof i3.LayersPanelComponent, typeof i4.AddLayerFromCatalogComponent, typeof i5.MapContainerComponent]>;
23
25
  static ɵinj: i0.ɵɵInjectorDeclaration<FeatureMapModule>;
24
26
  }
25
27
  //# sourceMappingURL=feature-map.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature-map.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/feature/map/src/lib/feature-map.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAwBA,qBAsCa,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
1
+ {"version":3,"file":"feature-map.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/feature/map/src/lib/feature-map.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0BA,qBAwCa,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
@@ -8,6 +8,7 @@ import { LayerConfig, MapConfig } from '../../../../../../libs/util/app-config/s
8
8
  import * as i0 from "@angular/core";
9
9
  export declare const DEFAULT_BASELAYER_CONTEXT: MapContextLayerXyzModel;
10
10
  export declare const DEFAULT_VIEW: MapContextViewModel;
11
+ export declare const WFS_MAX_FEATURES = 10000;
11
12
  export declare class MapContextService {
12
13
  private mapUtils;
13
14
  private styleService;
@@ -1 +1 @@
1
- {"version":3,"file":"map-context.service.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/map/src/lib/map-context/map-context.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EACL,oBAAoB,EAEpB,uBAAuB,EACvB,eAAe,EACf,mBAAmB,EACpB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,GAAG,MAAM,QAAQ,CAAA;AACxB,OAAO,IAAI,MAAM,SAAS,CAAA;AAC1B,OAAO,KAAK,MAAM,eAAe,CAAA;AAOjC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAA;;AAQnF,eAAO,MAAM,yBAAyB,EAAE,uBAOvC,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,mBAG1B,CAAA;AAED,qBAGa,iBAAiB;IAE1B,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,YAAY;gBADZ,QAAQ,EAAE,eAAe,EACzB,YAAY,EAAE,eAAe;IAGvC,mBAAmB,CACjB,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,eAAe,EAC3B,SAAS,CAAC,EAAE,SAAS,GACpB,GAAG;IAgBN,WAAW,CAAC,UAAU,EAAE,oBAAoB,GAAG,KAAK;IAmFpD,UAAU,CAAC,SAAS,EAAE,mBAAmB,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI;IAqB3D,yBAAyB,CACvB,UAAU,EAAE,eAAe,EAC3B,SAAS,EAAE,SAAS,GACnB,eAAe;IAsBlB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,mBAAmB;IAM1D,yBAAyB,CAAC,MAAM,EAAE,WAAW,GAAG,oBAAoB;yCAjKzD,iBAAiB;6CAAjB,iBAAiB;CA4L7B"}
1
+ {"version":3,"file":"map-context.service.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/map/src/lib/map-context/map-context.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EACL,oBAAoB,EAEpB,uBAAuB,EACvB,eAAe,EACf,mBAAmB,EACpB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,GAAG,MAAM,QAAQ,CAAA;AACxB,OAAO,IAAI,MAAM,SAAS,CAAA;AAC1B,OAAO,KAAK,MAAM,eAAe,CAAA;AAOjC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAA;;AAQnF,eAAO,MAAM,yBAAyB,EAAE,uBAOvC,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,mBAG1B,CAAA;AAED,eAAO,MAAM,gBAAgB,QAAQ,CAAA;AAErC,qBAGa,iBAAiB;IAE1B,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,YAAY;gBADZ,QAAQ,EAAE,eAAe,EACzB,YAAY,EAAE,eAAe;IAGvC,mBAAmB,CACjB,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,eAAe,EAC3B,SAAS,CAAC,EAAE,SAAS,GACpB,GAAG;IAgBN,WAAW,CAAC,UAAU,EAAE,oBAAoB,GAAG,KAAK;IAuFpD,UAAU,CAAC,SAAS,EAAE,mBAAmB,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI;IAqB3D,yBAAyB,CACvB,UAAU,EAAE,eAAe,EAC3B,SAAS,EAAE,SAAS,GACnB,eAAe;IAsBlB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,mBAAmB;IAM1D,yBAAyB,CAAC,MAAM,EAAE,WAAW,GAAG,oBAAoB;yCArKzD,iBAAiB;6CAAjB,iBAAiB;CAgM7B"}
@@ -20,4 +20,5 @@ export * from './lib/search-results-error/search-results-error.component';
20
20
  export * from './lib/user-preview/user-preview.component';
21
21
  export * from './lib/record-api-form/record-api-form.component';
22
22
  export * from './lib/markdown-parser/markdown-parser.component';
23
+ export * from './lib/image-overlay-preview/image-overlay-preview.component';
23
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/elements/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,6CAA6C,CAAA;AAC3D,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,6DAA6D,CAAA;AAC3E,cAAc,2DAA2D,CAAA;AACzE,cAAc,qCAAqC,CAAA;AACnD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,uDAAuD,CAAA;AACrE,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,qCAAqC,CAAA;AACnD,cAAc,uCAAuC,CAAA;AACrD,cAAc,yDAAyD,CAAA;AACvE,cAAc,2DAA2D,CAAA;AACzE,cAAc,2CAA2C,CAAA;AACzD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,iDAAiD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/elements/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,6CAA6C,CAAA;AAC3D,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,6DAA6D,CAAA;AAC3E,cAAc,2DAA2D,CAAA;AACzE,cAAc,qCAAqC,CAAA;AACnD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,uDAAuD,CAAA;AACrE,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,qCAAqC,CAAA;AACnD,cAAc,uCAAuC,CAAA;AACrD,cAAc,yDAAyD,CAAA;AACvE,cAAc,2DAA2D,CAAA;AACzE,cAAc,2CAA2C,CAAA;AACzD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,iDAAiD,CAAA;AAC/D,cAAc,6DAA6D,CAAA"}
@@ -14,7 +14,7 @@ export declare class DownloadsListComponent {
14
14
  isFilterActive(filter: FilterFormat): boolean;
15
15
  getFilterFormatTitle(format: FilterFormat): any;
16
16
  isLinkOfFormat(link: DatasetDistribution, format: FilterFormat): boolean;
17
- getLinkFormat(link: DatasetDistribution): "json" | "pdf" | "geojson" | "svg" | "csv" | "excel" | "shp" | "kml" | "gpkg" | "zip" | "jpg";
17
+ getLinkFormat(link: DatasetDistribution): "json" | "pdf" | "geojson" | "svg" | "csv" | "excel" | "shp" | "gml" | "kml" | "gpkg" | "zip" | "jpg" | "dxf";
18
18
  getLinkColor(link: DatasetDistribution): string;
19
19
  isFromWfs(link: DatasetDistribution): boolean;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<DownloadsListComponent, never>;
@@ -0,0 +1,10 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ImageOverlayPreviewComponent {
4
+ imageUrl: string;
5
+ isPlaceholderShown: EventEmitter<boolean>;
6
+ openLightbox(src: string): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageOverlayPreviewComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageOverlayPreviewComponent, "gn-ui-image-overlay-preview", never, { "imageUrl": { "alias": "imageUrl"; "required": false; }; }, { "isPlaceholderShown": "isPlaceholderShown"; }, never, never, false, never>;
9
+ }
10
+ //# sourceMappingURL=image-overlay-preview.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-overlay-preview.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAA;;AAGtE,qBAKa,4BAA4B;IAC9B,QAAQ,EAAE,MAAM,CAAA;IACf,kBAAkB,wBAA8B;IAC1D,YAAY,CAAC,GAAG,EAAE,MAAM;yCAHb,4BAA4B;2CAA5B,4BAA4B;CAMxC"}
@@ -11,6 +11,7 @@ export declare class MetadataInfoComponent {
11
11
  get updateFrequency(): string;
12
12
  fieldReady(propName: string): boolean;
13
13
  onKeywordClick(keyword: string): void;
14
+ copyText(): void;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<MetadataInfoComponent, never>;
15
16
  static ɵcmp: i0.ɵɵComponentDeclaration<MetadataInfoComponent, "gn-ui-metadata-info", never, { "metadata": { "alias": "metadata"; "required": false; }; "incomplete": { "alias": "incomplete"; "required": false; }; }, { "keyword": "keyword"; }, never, never, false, never>;
16
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"metadata-info.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;;AAEzF,qBAMa,qBAAqB;IACvB,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IAClB,OAAO,uBAA6B;IAC9C,YAAY,EAAE,MAAM,CAAA;IAEpB,IAAI,QAAQ,kBAMX;IAED,IAAI,MAAM,IAAI,MAAM,EAAE,CASrB;IAED,IAAI,eAAe,IAAI,MAAM,CAS5B;IAED,UAAU,CAAC,QAAQ,EAAE,MAAM;IAI3B,cAAc,CAAC,OAAO,EAAE,MAAM;yCAxCnB,qBAAqB;2CAArB,qBAAqB;CA2CjC"}
1
+ {"version":3,"file":"metadata-info.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;;AAEzF,qBAMa,qBAAqB;IACvB,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IAClB,OAAO,uBAA6B;IAC9C,YAAY,EAAE,MAAM,CAAA;IAEpB,IAAI,QAAQ,kBAMX;IAED,IAAI,MAAM,IAAI,MAAM,EAAE,CASrB;IAED,IAAI,eAAe,IAAI,MAAM,CAS5B;IAED,UAAU,CAAC,QAAQ,EAAE,MAAM;IAI3B,cAAc,CAAC,OAAO,EAAE,MAAM;IAI9B,QAAQ;yCA5CG,qBAAqB;2CAArB,qBAAqB;CAgDjC"}
@@ -1,4 +1,4 @@
1
- import { ElementRef, InjectionToken, OnChanges, OnInit, SimpleChanges } from '@angular/core';
1
+ import { ElementRef, InjectionToken, OnChanges, OnInit, SimpleChanges, EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare const THUMBNAIL_PLACEHOLDER: InjectionToken<string>;
4
4
  type FitOptions = 'cover' | 'contain' | 'scale-down';
@@ -8,6 +8,7 @@ export declare class ThumbnailComponent implements OnInit, OnChanges {
8
8
  fit: FitOptions | FitOptions[];
9
9
  imgElement: ElementRef<HTMLImageElement>;
10
10
  containerElement: ElementRef<HTMLDivElement>;
11
+ placeholderShown: EventEmitter<boolean>;
11
12
  imgUrl: string;
12
13
  imgFit: FitOptions;
13
14
  placeholderUrl: string;
@@ -22,7 +23,7 @@ export declare class ThumbnailComponent implements OnInit, OnChanges {
22
23
  useFallback(): void;
23
24
  setObjectFit(): void;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ThumbnailComponent, [{ optional: true; }]>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<ThumbnailComponent, "gn-ui-thumbnail", never, { "thumbnailUrl": { "alias": "thumbnailUrl"; "required": false; }; "fit": { "alias": "fit"; "required": false; }; }, {}, never, never, false, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThumbnailComponent, "gn-ui-thumbnail", never, { "thumbnailUrl": { "alias": "thumbnailUrl"; "required": false; }; "fit": { "alias": "fit"; "required": false; }; }, { "placeholderShown": "placeholderShown"; }, never, never, false, never>;
26
27
  }
27
28
  export {};
28
29
  //# sourceMappingURL=thumbnail.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"thumbnail.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEV,cAAc,EAEd,SAAS,EACT,MAAM,EAEN,aAAa,EAEd,MAAM,eAAe,CAAA;;AAEtB,eAAO,MAAM,qBAAqB,wBAEjC,CAAA;AAUD,KAAK,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,YAAY,CAAA;AAEpD,qBAKa,kBAAmB,YAAW,MAAM,EAAE,SAAS;IAgBxD,OAAO,CAAC,sBAAsB;IAfvB,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B,GAAG,EAAE,UAAU,GAAG,UAAU,EAAE,CAAU;IACtB,UAAU,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;IACpC,gBAAgB,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;IAC3E,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,UAAU,CAAA;IAClB,cAAc,SAAqD;IACnE,IAAI,aAAa,YAEhB;IACD,OAAO,CAAC,MAAM,CAA6B;gBAKjC,sBAAsB,EAAE,MAAM;IAGxC,QAAQ;IAIR,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAOzC,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,cAAc;IAItB,WAAW;IASX,YAAY;yCArED,kBAAkB;2CAAlB,kBAAkB;CA+E9B"}
1
+ {"version":3,"file":"thumbnail.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEV,cAAc,EAEd,SAAS,EACT,MAAM,EAEN,aAAa,EAGb,YAAY,EACb,MAAM,eAAe,CAAA;;AAEtB,eAAO,MAAM,qBAAqB,wBAEjC,CAAA;AAUD,KAAK,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,YAAY,CAAA;AAEpD,qBAKa,kBAAmB,YAAW,MAAM,EAAE,SAAS;IAiBxD,OAAO,CAAC,sBAAsB;IAhBvB,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B,GAAG,EAAE,UAAU,GAAG,UAAU,EAAE,CAAU;IACtB,UAAU,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;IACpC,gBAAgB,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;IACjE,gBAAgB,wBAA8B;IACxD,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,UAAU,CAAA;IAClB,cAAc,SAAqD;IACnE,IAAI,aAAa,YAEhB;IACD,OAAO,CAAC,MAAM,CAA6B;gBAKjC,sBAAsB,EAAE,MAAM;IAGxC,QAAQ;IAIR,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAOzC,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,cAAc;IAItB,WAAW;IASX,YAAY;yCAvED,kBAAkB;2CAAlB,kBAAkB;CAiF9B"}
@@ -20,19 +20,20 @@ import * as i18 from "./pagination-buttons/pagination-buttons.component";
20
20
  import * as i19 from "./max-lines/max-lines.component";
21
21
  import * as i20 from "./record-api-form/record-api-form.component";
22
22
  import * as i21 from "./markdown-parser/markdown-parser.component";
23
- import * as i22 from "@angular/common";
24
- import * as i23 from "@angular/material/icon";
25
- import * as i24 from "@angular/material/tooltip";
26
- import * as i25 from "../../../widgets/src/lib/ui-widgets.module";
27
- import * as i26 from "../../../layout/src/lib/ui-layout.module";
28
- import * as i27 from "@ngx-translate/core";
29
- import * as i28 from "../../../../util/shared/src/lib/util-shared.module";
30
- import * as i29 from "@angular/router";
31
- import * as i30 from "../../../inputs/src/lib/ui-inputs.module";
32
- import * as i31 from "@angular/forms";
23
+ import * as i22 from "./image-overlay-preview/image-overlay-preview.component";
24
+ import * as i23 from "@angular/common";
25
+ import * as i24 from "@angular/material/icon";
26
+ import * as i25 from "@angular/material/tooltip";
27
+ import * as i26 from "../../../widgets/src/lib/ui-widgets.module";
28
+ import * as i27 from "../../../layout/src/lib/ui-layout.module";
29
+ import * as i28 from "@ngx-translate/core";
30
+ import * as i29 from "../../../../util/shared/src/lib/util-shared.module";
31
+ import * as i30 from "@angular/router";
32
+ import * as i31 from "../../../inputs/src/lib/ui-inputs.module";
33
+ import * as i32 from "@angular/forms";
33
34
  export declare class UiElementsModule {
34
35
  static ɵfac: i0.ɵɵFactoryDeclaration<UiElementsModule, never>;
35
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiElementsModule, [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i14.ThumbnailComponent, typeof i15.AvatarComponent, typeof i16.UserPreviewComponent, typeof i17.GnUiLinkifyDirective, typeof i18.PaginationButtonsComponent, typeof i19.MaxLinesComponent, typeof i20.RecordApiFormComponent, typeof i21.MarkdownParserComponent], [typeof i22.CommonModule, typeof i23.MatIconModule, typeof i24.MatTooltipModule, typeof i25.UiWidgetsModule, typeof i26.UiLayoutModule, typeof i27.TranslateModule, typeof i28.UtilSharedModule, typeof i29.RouterModule, typeof i30.UiInputsModule, typeof i31.FormsModule, typeof i22.NgOptimizedImage], [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i14.ThumbnailComponent, typeof i15.AvatarComponent, typeof i16.UserPreviewComponent, typeof i18.PaginationButtonsComponent, typeof i20.RecordApiFormComponent, typeof i21.MarkdownParserComponent]>;
36
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiElementsModule, [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i14.ThumbnailComponent, typeof i15.AvatarComponent, typeof i16.UserPreviewComponent, typeof i17.GnUiLinkifyDirective, typeof i18.PaginationButtonsComponent, typeof i19.MaxLinesComponent, typeof i20.RecordApiFormComponent, typeof i21.MarkdownParserComponent, typeof i22.ImageOverlayPreviewComponent], [typeof i23.CommonModule, typeof i24.MatIconModule, typeof i25.MatTooltipModule, typeof i26.UiWidgetsModule, typeof i27.UiLayoutModule, typeof i28.TranslateModule, typeof i29.UtilSharedModule, typeof i30.RouterModule, typeof i31.UiInputsModule, typeof i32.FormsModule, typeof i23.NgOptimizedImage], [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i14.ThumbnailComponent, typeof i15.AvatarComponent, typeof i16.UserPreviewComponent, typeof i18.PaginationButtonsComponent, typeof i20.RecordApiFormComponent, typeof i21.MarkdownParserComponent, typeof i22.ImageOverlayPreviewComponent]>;
36
37
  static ɵinj: i0.ɵɵInjectorDeclaration<UiElementsModule>;
37
38
  }
38
39
  //# sourceMappingURL=ui-elements.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-elements.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/elements/src/lib/ui-elements.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,qBA2Da,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
1
+ {"version":3,"file":"ui-elements.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/elements/src/lib/ui-elements.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,qBA6Da,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
@@ -30,47 +30,59 @@ export declare const FORMATS: {
30
30
  readonly color: "#328556";
31
31
  readonly mimeTypes: readonly ["x-gis/x-shapefile"];
32
32
  };
33
+ readonly gml: {
34
+ readonly extensions: readonly ["gml"];
35
+ readonly priority: 5;
36
+ readonly color: "#c92bce";
37
+ readonly mimeTypes: readonly ["application/gml+xml", "text/xml; subtype=gml"];
38
+ };
33
39
  readonly kml: {
34
40
  readonly extensions: readonly ["kml", "kmz"];
35
- readonly priority: 5;
41
+ readonly priority: 6;
36
42
  readonly color: "#348009";
37
43
  readonly mimeTypes: readonly ["application/vnd.google-earth.kml+xml", "application/vnd.google-earth.kmz"];
38
44
  };
39
45
  readonly gpkg: {
40
46
  readonly extensions: readonly ["gpkg", "geopackage"];
41
- readonly priority: 6;
47
+ readonly priority: 7;
42
48
  readonly color: "#ea79ba";
43
49
  readonly mimeTypes: readonly ["application/geopackage+sqlite3"];
44
50
  };
45
51
  readonly zip: {
46
52
  readonly extensions: readonly ["zip", "tar.gz"];
47
- readonly priority: 7;
53
+ readonly priority: 8;
48
54
  readonly color: "#f2bb3a";
49
55
  readonly mimeTypes: readonly ["application/zip", "application/x-zip"];
50
56
  };
51
57
  readonly pdf: {
52
58
  readonly extensions: readonly ["pdf"];
53
- readonly priority: 8;
59
+ readonly priority: 9;
54
60
  readonly color: "#db544a";
55
61
  readonly mimeTypes: readonly ["application/pdf"];
56
62
  };
57
63
  readonly jpg: {
58
64
  readonly extensions: readonly ["jpg", "jpeg", "jfif", "pjpeg", "pjp"];
59
- readonly priority: 8;
65
+ readonly priority: 9;
60
66
  readonly color: "#673ab7";
61
67
  readonly mimeTypes: readonly ["image/jpg"];
62
68
  };
63
69
  readonly svg: {
64
70
  readonly extensions: readonly ["svg"];
65
- readonly priority: 9;
71
+ readonly priority: 10;
66
72
  readonly color: "#d98294";
67
73
  readonly mimeTypes: readonly ["image/svg+xml"];
68
74
  };
75
+ readonly dxf: {
76
+ readonly extensions: readonly ["dxf"];
77
+ readonly priority: 11;
78
+ readonly color: "#de630b";
79
+ readonly mimeTypes: readonly ["application/x-dxf", "image/x-dxf"];
80
+ };
69
81
  };
70
82
  export type FileFormat = keyof typeof FORMATS;
71
83
  export declare function getFormatPriority(linkFormat: FileFormat): number;
72
84
  export declare function getLinkPriority(link: DatasetDistribution): number;
73
- export declare function extensionToFormat(extension: string): FileFormat;
85
+ export declare function getFileFormatFromServiceOutput(serviceOutput: string): FileFormat | null;
74
86
  export declare function getFileFormat(link: DatasetDistribution): FileFormat;
75
87
  export declare function isFormatInQueryParam(link: DatasetDistribution, alias: string): boolean;
76
88
  export declare function mimeTypeToFormat(mimeType: string): FileFormat;
@@ -1 +1 @@
1
- {"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAA;AAI/F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+EV,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAUhE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAEjE;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAO/D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU,CAcnE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,MAAM,GACZ,OAAO,CAQT;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAO7D;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,mBAAmB,EACzB,MAAM,EAAE,UAAU,GACjB,OAAO,CAMT;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAQ5D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CA0B9D;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAEtE"}
1
+ {"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAA;AAI/F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FV,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAUhE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAEjE;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,GACpB,UAAU,GAAG,IAAI,CAgBnB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU,CAcnE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,MAAM,GACZ,OAAO,CAQT;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAO7D;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,mBAAmB,EACzB,MAAM,EAAE,UAAU,GACjB,OAAO,CAMT;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAQ5D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CA0B9D;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAEtE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonetwork-ui",
3
- "version": "2.2.0-dev.9ae0a68b",
3
+ "version": "2.2.0-dev.aecf1900",
4
4
  "engines": {
5
5
  "node": ">=14.17.0"
6
6
  },
@@ -34,6 +34,7 @@ export class Gn4MetadataMapper extends MetadataBaseMapper<Gn4Record> {
34
34
  useLimitations: [],
35
35
  spatialExtents: [],
36
36
  temporalExtents: [],
37
+ overviews: [],
37
38
  }
38
39
  const record: CatalogRecord = Object.keys(_source).reduce(
39
40
  (prev, fieldName) =>
@@ -122,6 +122,7 @@ export interface DatasetDownloadDistribution {
122
122
  // textEncoding?: string
123
123
  name?: string
124
124
  description?: string
125
+ accessServiceProtocol?: ServiceProtocol
125
126
  }
126
127
 
127
128
  export interface OnlineLinkResource {
@@ -9,8 +9,8 @@ import {
9
9
  SupportedTypes,
10
10
  } from '../../../../../../libs/util/data-fetcher/src'
11
11
  import {
12
- extensionToFormat,
13
12
  getFileFormat,
13
+ getFileFormatFromServiceOutput,
14
14
  getMimeTypeForFormat,
15
15
  ProxyService,
16
16
  } from '../../../../../../libs/util/shared/src'
@@ -45,7 +45,7 @@ interface WfsDownloadUrls {
45
45
  export class DataService {
46
46
  constructor(private proxy: ProxyService) {}
47
47
 
48
- private getDownloadUrlsFromWfs(
48
+ getDownloadUrlsFromWfs(
49
49
  wfsUrl: string,
50
50
  featureTypeName: string
51
51
  ): Observable<WfsDownloadUrls> {
@@ -120,7 +120,7 @@ export class DataService {
120
120
  )
121
121
  }
122
122
 
123
- private getDownloadUrlFromEsriRest(apiUrl: string, format: string): string {
123
+ getDownloadUrlFromEsriRest(apiUrl: string, format: string): string {
124
124
  return this.proxy.getProxiedUrl(
125
125
  `${apiUrl}/query?f=${format}&where=1=1&outFields=*`
126
126
  )
@@ -138,8 +138,11 @@ export class DataService {
138
138
  map((urls) =>
139
139
  Object.keys(urls).map((format) => ({
140
140
  ...wfsLink,
141
+ type: 'download',
141
142
  url: new URL(urls[format]),
142
- mimeType: getMimeTypeForFormat(extensionToFormat(format)) || format,
143
+ mimeType: getMimeTypeForFormat(
144
+ getFileFormatFromServiceOutput(format)
145
+ ),
143
146
  }))
144
147
  )
145
148
  )
@@ -153,7 +156,7 @@ export class DataService {
153
156
  url: new URL(
154
157
  this.getDownloadUrlFromEsriRest(esriRestLink.url.toString(), format)
155
158
  ),
156
- mimeType: getMimeTypeForFormat(extensionToFormat(format)) || format,
159
+ mimeType: getMimeTypeForFormat(getFileFormatFromServiceOutput(format)),
157
160
  }))
158
161
  }
159
162
 
@@ -0,0 +1,21 @@
1
+ <div class="flex flex-col gap-2 my-2">
2
+ <div class="flex items-center gap-4">
3
+ <div class="flex-grow rounded-md border-2 border-gray-200">
4
+ <gn-ui-drag-and-drop-file-input
5
+ (fileChange)="handleFileChange($event)"
6
+ [accept]="acceptedMimeType.join(',')"
7
+ [placeholder]="'map.addFromFile.placeholder' | translate"
8
+ class="placeholder-grey"
9
+ ></gn-ui-drag-and-drop-file-input>
10
+ </div>
11
+ </div>
12
+ <p class="text-sm text-gray-600" translate>map.help.addFromFile</p>
13
+ </div>
14
+
15
+ <div *ngIf="errorMessage" class="text-red-500 mt-2">
16
+ {{ errorMessage }}
17
+ </div>
18
+
19
+ <div *ngIf="successMessage" class="text-green-500 mt-2">
20
+ {{ successMessage }}
21
+ </div>
@@ -0,0 +1,107 @@
1
+ import { ChangeDetectorRef, Component } from '@angular/core'
2
+ import { MapContextLayerModel } from '../map-context/map-context.model'
3
+ import { MapFacade } from '../+state/map.facade'
4
+
5
+ const INVALID_FILE_FORMAT_ERROR_MESSAGE = 'Invalid file format'
6
+
7
+ @Component({
8
+ selector: 'gn-ui-add-layer-from-file',
9
+ templateUrl: './add-layer-from-file.component.html',
10
+ styleUrls: ['./add-layer-from-file.component.css'],
11
+ })
12
+ export class AddLayerFromFileComponent {
13
+ errorMessage: string | null = null
14
+ successMessage: string | null = null
15
+ loading = false
16
+ readonly acceptedMimeType = ['.geojson']
17
+ readonly maxFileSize = 5000000
18
+
19
+ constructor(
20
+ private mapFacade: MapFacade,
21
+ private changeDetectorRef: ChangeDetectorRef
22
+ ) {}
23
+
24
+ async handleFileChange(file: File) {
25
+ if (!file) {
26
+ this.displayMessage(INVALID_FILE_FORMAT_ERROR_MESSAGE, 'error')
27
+ return
28
+ }
29
+ if (file.size > this.maxFileSize) {
30
+ this.displayMessage('File size exceeds the limit of 5MB', 'error')
31
+ return
32
+ }
33
+ await this.addLayer(file)
34
+ }
35
+
36
+ private async addLayer(file: File) {
37
+ this.errorMessage = null
38
+ this.loading = true
39
+ try {
40
+ if (!this.isFileFormatValid(file)) {
41
+ this.displayMessage(INVALID_FILE_FORMAT_ERROR_MESSAGE, 'error')
42
+ return
43
+ }
44
+
45
+ const fileExtension = this.getFileExtension(file)
46
+ switch (fileExtension) {
47
+ case 'geojson':
48
+ await this.addGeoJsonLayer(file)
49
+ break
50
+ default:
51
+ this.displayMessage(INVALID_FILE_FORMAT_ERROR_MESSAGE, 'error')
52
+ break
53
+ }
54
+ } catch (error) {
55
+ const err = error as Error
56
+ this.displayMessage('Error loading file: ' + err.message, 'error')
57
+ } finally {
58
+ this.loading = false
59
+ }
60
+ }
61
+
62
+ private addGeoJsonLayer(file: File) {
63
+ return new Promise<void>((resolve, reject) => {
64
+ try {
65
+ const reader = new FileReader()
66
+ reader.onload = () => {
67
+ const result = reader.result as string
68
+ const title = file.name.split('.').slice(0, -1).join('.')
69
+ const layerToAdd: MapContextLayerModel = {
70
+ type: 'geojson',
71
+ data: result,
72
+ }
73
+ this.mapFacade.addLayer({ ...layerToAdd, title: title })
74
+ this.displayMessage('File successfully added to map', 'success')
75
+ resolve()
76
+ }
77
+ reader.onerror = reject
78
+ reader.readAsText(file)
79
+ } catch (error) {
80
+ reject(error)
81
+ }
82
+ })
83
+ }
84
+
85
+ private isFileFormatValid(file: File): boolean {
86
+ const fileExtension = this.getFileExtension(file)
87
+ return this.acceptedMimeType.includes(`.${fileExtension}`)
88
+ }
89
+
90
+ private getFileExtension(file: File): string | undefined {
91
+ return file.name.split('.').pop()
92
+ }
93
+
94
+ private displayMessage(message: string, type: 'success' | 'error') {
95
+ if (type === 'success') {
96
+ this.successMessage = message
97
+ } else if (type === 'error') {
98
+ this.errorMessage = message
99
+ }
100
+
101
+ setTimeout(() => {
102
+ this.successMessage = null
103
+ this.errorMessage = null
104
+ this.changeDetectorRef.detectChanges()
105
+ }, 5000)
106
+ }
107
+ }