geonetwork-ui 2.4.0-dev.e97caaf2 → 2.4.0-dev.f5019723
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.
- package/esm2022/libs/api/metadata-converter/src/index.mjs +4 -1
- package/esm2022/libs/api/metadata-converter/src/lib/common/license.mjs +64 -0
- package/esm2022/libs/api/metadata-converter/src/lib/common/url.mjs +14 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.mjs +254 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/index.mjs +2 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.mjs +17 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.mjs +196 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.mjs +46 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.mjs +74 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.mjs +2 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.mjs +27 -0
- package/esm2022/libs/api/metadata-converter/src/lib/find-converter.mjs +11 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +10 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +6 -6
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +7 -4
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +17 -29
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +8 -15
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +6 -6
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +54 -54
- package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +35 -3
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +78 -39
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +41 -7
- package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- package/esm2022/libs/data-access/gn4/src/fixtures/site.fixtures.mjs +5 -5
- package/esm2022/libs/data-access/gn4/src/fixtures/ui.fixtures.mjs +3 -3
- package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +7 -4
- package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +6 -6
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/feature-dataviz.module.mjs +10 -7
- package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +40 -50
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +5 -5
- package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +4 -16
- package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +4 -2
- package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +95 -0
- package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +71 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +109 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +15 -32
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date-updated/form-field-date-updated.component.mjs +19 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +23 -10
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +38 -60
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +148 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +86 -11
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +4 -8
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +36 -7
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +35 -59
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +14 -5
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/wizard/wizard.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +41 -7
- package/esm2022/libs/feature/editor/src/lib/models/editor-config.model.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +5 -5
- package/esm2022/libs/feature/map/src/index.mjs +2 -9
- package/esm2022/libs/feature/map/src/lib/+state/map.actions.mjs +4 -7
- package/esm2022/libs/feature/map/src/lib/+state/map.facade.mjs +9 -15
- package/esm2022/libs/feature/map/src/lib/+state/map.reducer.mjs +13 -44
- package/esm2022/libs/feature/map/src/lib/+state/map.selectors.mjs +3 -2
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +16 -16
- package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +16 -10
- package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +10 -8
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +11 -7
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +10 -6
- package/esm2022/libs/feature/map/src/lib/constant/index.mjs +1 -2
- package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +4 -44
- package/esm2022/libs/feature/map/src/lib/geocoding/geocoding.component.mjs +43 -29
- package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +17 -8
- package/esm2022/libs/feature/map/src/lib/map-state-container/map-state-container.component.mjs +27 -0
- package/esm2022/libs/feature/map/src/lib/style/map-style.fixtures.mjs +3 -3
- package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +4 -168
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +21 -17
- package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +14 -8
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +40 -52
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -2
- package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +12 -6
- package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +7 -7
- package/esm2022/libs/ui/catalog/src/lib/ui-catalog.module.mjs +1 -6
- package/esm2022/libs/ui/dataviz/src/lib/table/table.fixtures.mjs +3 -3
- package/esm2022/libs/ui/elements/src/index.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +1 -1
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +6 -6
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/index.mjs +5 -1
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +7 -4
- package/esm2022/libs/ui/inputs/src/lib/badge/badge.component.mjs +5 -3
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +8 -1
- package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +11 -4
- package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +9 -3
- package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +87 -0
- package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +5 -4
- package/esm2022/libs/ui/inputs/src/lib/search-input/search-input.component.mjs +6 -4
- package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +4 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +2 -7
- package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/index.mjs +3 -1
- package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +5 -3
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.mjs +29 -0
- package/esm2022/libs/ui/layout/src/lib/sortable-list/sortable-list.component.mjs +43 -0
- package/esm2022/libs/ui/map/src/index.mjs +4 -3
- package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +8 -6
- package/esm2022/libs/ui/map/src/lib/components/map-container/map-container.component.mjs +137 -0
- package/esm2022/libs/ui/map/src/lib/components/map-container/map-settings.token.mjs +13 -0
- package/esm2022/libs/ui/map/src/lib/map-utils.mjs +37 -0
- package/esm2022/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.mjs +7 -7
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +8 -8
- package/esm2022/libs/util/app-config/src/index.mjs +2 -1
- package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +10 -10
- package/esm2022/libs/util/app-config/src/lib/map-layers.mjs +27 -0
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +1 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +1 -1
- package/esm2022/libs/util/shared/src/lib/services/theme.service.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -1
- package/esm2022/translations/de.json +28 -2
- package/esm2022/translations/en.json +59 -33
- package/esm2022/translations/es.json +26 -0
- package/esm2022/translations/fr.json +90 -64
- package/esm2022/translations/it.json +28 -2
- package/esm2022/translations/nl.json +26 -0
- package/esm2022/translations/pt.json +26 -0
- package/fesm2022/geonetwork-ui.mjs +9462 -8515
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/index.d.ts +3 -0
- package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/license.d.ts +3 -0
- package/libs/api/metadata-converter/src/lib/common/license.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/common/url.d.ts +7 -0
- package/libs/api/metadata-converter/src/lib/common/url.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.d.ts +13 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/index.d.ts +2 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/index.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.d.ts +16 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.d.ts +20 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.d.ts +9 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.d.ts +8 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.d.ts +2 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.d.ts +6 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/find-converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts +3 -3
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +2 -2
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +1 -2
- package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +4 -5
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +10 -11
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +58 -0
- package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +12 -7
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +21 -2
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -1
- package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +6 -6
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +15 -0
- package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +7 -0
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts +2 -2
- package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts.map +1 -1
- package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts +1 -1
- package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts.map +1 -1
- package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts +2 -1
- package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +2 -2
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts +10 -9
- package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts +13 -20
- package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +6 -6
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +3 -3
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
- package/libs/feature/editor/src/index.d.ts +1 -0
- package/libs/feature/editor/src/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +1 -5
- package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts +2 -1
- package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts +34 -0
- package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts +15 -0
- package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.d.ts +38 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +2 -5
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date-updated/form-field-date-updated.component.d.ts +9 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date-updated/form-field-date-updated.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +5 -2
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +6 -13
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts +35 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +20 -2
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +1 -3
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +7 -2
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +9 -15
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +5 -3
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +3 -2
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts +10 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +6 -0
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/services/editor.service.d.ts +2 -2
- package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
- package/libs/feature/map/src/index.d.ts +1 -8
- package/libs/feature/map/src/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/+state/map.actions.d.ts +13 -39
- package/libs/feature/map/src/lib/+state/map.actions.d.ts.map +1 -1
- package/libs/feature/map/src/lib/+state/map.facade.d.ts +9 -10
- package/libs/feature/map/src/lib/+state/map.facade.d.ts.map +1 -1
- package/libs/feature/map/src/lib/+state/map.reducer.d.ts +4 -2
- package/libs/feature/map/src/lib/+state/map.reducer.d.ts.map +1 -1
- package/libs/feature/map/src/lib/+state/map.selectors.d.ts +6 -1
- package/libs/feature/map/src/lib/+state/map.selectors.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +7 -9
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +2 -2
- package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/constant/index.d.ts +0 -1
- package/libs/feature/map/src/lib/constant/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/feature-map.module.d.ts +12 -18
- package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
- package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts +7 -7
- package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +4 -3
- package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/map-state-container/map-state-container.component.d.ts +14 -0
- package/libs/feature/map/src/lib/map-state-container/map-state-container.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts +2 -2
- package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts.map +1 -1
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts +0 -30
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +3 -3
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +10 -7
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/feature-record.module.d.ts +13 -11
- package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +14 -20
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +5 -3
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
- package/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.d.ts +1 -1
- package/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.d.ts.map +1 -1
- package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts +9 -10
- package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts +2 -2
- package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +1 -1
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -7
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
- package/libs/ui/inputs/src/index.d.ts +4 -0
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/badge/badge.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts +24 -0
- package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/search-input/search-input.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/search-input/search-input.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +0 -1
- package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -26
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/layout/src/index.d.ts +2 -0
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts +2 -2
- package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.d.ts +1 -1
- package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts +20 -0
- package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts +14 -0
- package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -0
- package/libs/ui/map/src/index.d.ts +3 -2
- package/libs/ui/map/src/index.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts +3 -4
- package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts +37 -0
- package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts.map +1 -0
- package/libs/ui/map/src/lib/components/map-container/map-settings.token.d.ts +18 -0
- package/libs/ui/map/src/lib/components/map-container/map-settings.token.d.ts.map +1 -0
- package/libs/ui/map/src/lib/map-utils.d.ts +7 -0
- package/libs/ui/map/src/lib/map-utils.d.ts.map +1 -0
- package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts +3 -3
- package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +3 -3
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/libs/util/app-config/src/index.d.ts +1 -0
- package/libs/util/app-config/src/index.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/fixtures.d.ts +8 -8
- package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/map-layers.d.ts +4 -0
- package/libs/util/app-config/src/lib/map-layers.d.ts.map +1 -0
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +6 -6
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/libs/util/shared/src/lib/services/theme.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -1
- package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -1
- package/package.json +5 -3
- package/src/libs/api/metadata-converter/src/index.ts +3 -0
- package/src/libs/api/metadata-converter/src/lib/common/license.ts +66 -0
- package/src/libs/api/metadata-converter/src/lib/common/url.ts +15 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.ts +378 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/index.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.ts +17 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.ts +370 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.ts +95 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/individual-name.ts +20 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/keyword.mapper.ts +16 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/role.mapper.ts +48 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.ts +97 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/status.mapper.ts +19 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/update-frequency.mapper.ts +67 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.ts +68 -0
- package/src/libs/api/metadata-converter/src/lib/find-converter.ts +13 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/eu.dcat-ap.records.ts +272 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/opendataswiss.records.ts +110 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/sextant.records.ts +85 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/vlaanderen.dcat-ap.records.ts +73 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +18 -16
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +5 -6
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +12 -4
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +21 -43
- package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +5 -14
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +13 -15
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +133 -156
- package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +37 -2
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +132 -68
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +47 -3
- package/src/libs/common/domain/src/lib/model/record/contact.model.ts +1 -1
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +7 -7
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +26 -0
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +10 -0
- package/src/libs/common/fixtures/src/index.ts +4 -1
- package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +37 -37
- package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-request.ts → aggregations-request.fixtures.ts} +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-response.ts → aggregations-response.fixtures.ts} +6 -8
- package/src/libs/common/fixtures/src/lib/elasticsearch/{full-response.ts → full-response.fixtures.ts} +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/index.ts +5 -5
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata.fixtures.ts +1739 -1742
- package/src/libs/common/fixtures/src/lib/elasticsearch/{search-requests.ts → search-requests.fixtures.ts} +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/{search-responses.ts → search-responses.fixtures.ts} +4 -6
- package/src/libs/common/fixtures/src/lib/geojson.fixtures.ts +57178 -57195
- package/src/libs/common/fixtures/src/lib/gn4/groups.fixtures.ts +2 -4
- package/src/libs/common/fixtures/src/lib/individual.fixtures.ts +61 -0
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +233 -164
- package/src/libs/common/fixtures/src/lib/map/index.ts +1 -0
- package/src/libs/common/fixtures/src/lib/map/map-context.fixtures.ts +53 -0
- package/src/libs/common/fixtures/src/lib/ol-feature.fixtures.ts +10 -0
- package/src/libs/common/fixtures/src/lib/organisations.fixture.ts +35 -11
- package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +9 -7
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +9 -9
- package/src/libs/common/fixtures/src/lib/repository.fixtures.ts +4 -4
- package/src/libs/common/fixtures/src/lib/search/aggregations.ts +2 -3
- package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +14 -15
- package/src/libs/common/fixtures/src/lib/user.fixtures.ts +45 -15
- package/src/libs/data-access/gn4/src/fixtures/site.fixtures.ts +4 -4
- package/src/libs/data-access/gn4/src/fixtures/ui.fixtures.ts +2 -2
- package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +5 -1
- package/src/libs/feature/catalog/src/lib/sources/sources.fixture.ts +1 -1
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +3 -3
- package/src/libs/feature/dataviz/src/lib/feature-dataviz.module.ts +6 -2
- package/src/libs/feature/dataviz/src/lib/figure/figure.fixtures.ts +2 -2
- package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.html +5 -2
- package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.ts +38 -78
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +6 -6
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -4
- package/src/libs/feature/editor/src/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +11 -4
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +12 -24
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +1 -13
- package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.html +47 -0
- package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +132 -0
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.html +35 -0
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +79 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.html +40 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.ts +170 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.css +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +13 -23
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +11 -50
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-resource-updated/form-field-resource-updated.component.ts → form-field-date-updated/form-field-date-updated.component.ts} +4 -4
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +3 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +35 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.css +8 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +1 -4
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts +41 -83
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html +34 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts +182 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +11 -5
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +93 -4
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +13 -6
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +0 -9
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +7 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +62 -6
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.css +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +23 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +37 -69
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.css +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.html +16 -14
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +1 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +34 -20
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +12 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -1
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +31 -29
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +2 -1
- package/src/libs/feature/editor/src/lib/components/wizard/wizard.component.html +2 -6
- package/src/libs/feature/editor/src/lib/fields.config.ts +45 -6
- package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +12 -0
- package/src/libs/feature/editor/src/lib/services/editor.service.ts +7 -3
- package/src/libs/feature/map/src/index.ts +1 -8
- package/src/libs/feature/map/src/lib/+state/map.actions.ts +10 -25
- package/src/libs/feature/map/src/lib/+state/map.facade.ts +11 -15
- package/src/libs/feature/map/src/lib/+state/map.reducer.ts +16 -53
- package/src/libs/feature/map/src/lib/+state/map.selectors.ts +7 -2
- package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +18 -21
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +17 -11
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +11 -12
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +12 -10
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +11 -9
- package/src/libs/feature/map/src/lib/constant/index.ts +0 -1
- package/src/libs/feature/map/src/lib/feature-map.module.ts +0 -26
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.ts +38 -20
- package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.html +2 -2
- package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +15 -5
- package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.html +4 -0
- package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.ts +29 -0
- package/src/libs/feature/map/src/lib/style/map-style.fixtures.ts +29 -27
- package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +1 -229
- package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +3 -3
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +29 -20
- package/src/libs/feature/record/src/lib/feature-record.module.ts +11 -3
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +4 -4
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +45 -72
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +5 -1
- package/src/libs/feature/router/src/lib/default/state/router.facade.ts +1 -1
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -0
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +5 -1
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +14 -3
- package/src/libs/feature/search/src/lib/state/fixtures/search-state.fixtures.ts +2 -2
- package/src/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.ts +8 -1
- package/src/libs/ui/catalog/src/lib/ui-catalog.module.ts +0 -3
- package/src/libs/ui/dataviz/src/lib/chart/chart.fixtures.ts +2 -2
- package/src/libs/ui/dataviz/src/lib/table/table.fixtures.ts +2 -2
- package/src/libs/ui/elements/src/index.ts +1 -1
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +4 -4
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +7 -7
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -3
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +13 -20
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -1
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +5 -0
- package/src/libs/ui/inputs/src/index.ts +4 -0
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.css +25 -18
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +38 -24
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +4 -1
- package/src/libs/ui/inputs/src/lib/badge/badge.component.html +11 -3
- package/src/libs/ui/inputs/src/lib/badge/badge.component.ts +2 -1
- package/src/libs/ui/inputs/src/lib/button/button.component.ts +15 -1
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +7 -2
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +14 -6
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +7 -1
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.css +7 -2
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.html +28 -23
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +7 -1
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +4 -0
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +7 -3
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +2 -1
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.css +4 -0
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +30 -22
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +2 -1
- package/src/libs/ui/inputs/src/lib/search-input/search-input.component.ts +5 -1
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.css +4 -3
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +0 -1
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +1 -2
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +1 -1
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +1 -1
- package/src/libs/ui/layout/src/index.ts +2 -0
- package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +8 -3
- package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +4 -3
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.css +1 -1
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +2 -2
- package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.html +15 -0
- package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.ts +44 -0
- package/src/libs/ui/layout/src/lib/sortable-list/sortable-list.component.html +37 -0
- package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.ts +13 -16
- package/src/libs/ui/map/src/index.ts +3 -2
- package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.html +1 -1
- package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.ts +8 -5
- package/src/libs/ui/map/src/lib/components/map-container/map-container.component.css +0 -0
- package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +203 -0
- package/src/libs/ui/map/src/lib/components/map-container/map-settings.token.ts +23 -0
- package/src/libs/ui/map/src/lib/map-utils.ts +54 -0
- package/src/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.ts +7 -6
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +20 -9
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +5 -6
- package/src/libs/util/app-config/src/index.ts +1 -0
- package/src/libs/util/app-config/src/lib/fixtures.ts +9 -9
- package/src/libs/util/app-config/src/lib/map-layers.ts +31 -0
- package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +4 -3
- package/src/libs/util/shared/src/lib/links/link-utils.ts +6 -6
- package/src/libs/util/shared/src/lib/services/theme.service.ts +1 -0
- package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +4 -1
- package/tailwind.base.config.js +1 -0
- package/tailwind.base.css +38 -6
- package/translations/de.json +28 -2
- package/translations/en.json +59 -33
- package/translations/es.json +26 -0
- package/translations/fr.json +90 -64
- package/translations/it.json +28 -2
- package/translations/nl.json +26 -0
- package/translations/pt.json +26 -0
- package/translations/sk.json +26 -0
- package/esm2022/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.mjs +0 -96
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +0 -19
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.mjs +0 -17
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.mjs +0 -17
- package/esm2022/libs/feature/map/src/lib/+state/map.effects.mjs +0 -15
- package/esm2022/libs/feature/map/src/lib/+state/map.models.mjs +0 -2
- package/esm2022/libs/feature/map/src/lib/constant/map-options.mjs +0 -8
- package/esm2022/libs/feature/map/src/lib/constant/style.constant.mjs +0 -17
- package/esm2022/libs/feature/map/src/lib/feature-info/feature-info.service.mjs +0 -38
- package/esm2022/libs/feature/map/src/lib/manager/map-instance.directive.mjs +0 -19
- package/esm2022/libs/feature/map/src/lib/manager/map-manager.service.mjs +0 -19
- package/esm2022/libs/feature/map/src/lib/map-container/map-container.component.mjs +0 -27
- package/esm2022/libs/feature/map/src/lib/map-context/component/map-context.component.mjs +0 -46
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +0 -10
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +0 -289
- package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +0 -39
- package/esm2022/libs/ui/map/src/lib/components/map/map.component.mjs +0 -40
- package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +0 -33
- package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts +0 -27
- package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +0 -9
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts +0 -8
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts +0 -8
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts.map +0 -1
- package/libs/feature/map/src/lib/+state/map.effects.d.ts +0 -9
- package/libs/feature/map/src/lib/+state/map.effects.d.ts.map +0 -1
- package/libs/feature/map/src/lib/+state/map.models.d.ts +0 -9
- package/libs/feature/map/src/lib/+state/map.models.d.ts.map +0 -1
- package/libs/feature/map/src/lib/constant/map-options.d.ts +0 -9
- package/libs/feature/map/src/lib/constant/map-options.d.ts.map +0 -1
- package/libs/feature/map/src/lib/constant/style.constant.d.ts +0 -4
- package/libs/feature/map/src/lib/constant/style.constant.d.ts.map +0 -1
- package/libs/feature/map/src/lib/feature-info/feature-info.service.d.ts +0 -16
- package/libs/feature/map/src/lib/feature-info/feature-info.service.d.ts.map +0 -1
- package/libs/feature/map/src/lib/manager/map-instance.directive.d.ts +0 -9
- package/libs/feature/map/src/lib/manager/map-instance.directive.d.ts.map +0 -1
- package/libs/feature/map/src/lib/manager/map-manager.service.d.ts +0 -11
- package/libs/feature/map/src/lib/manager/map-manager.service.d.ts.map +0 -1
- package/libs/feature/map/src/lib/map-container/map-container.component.d.ts +0 -12
- package/libs/feature/map/src/lib/map-container/map-container.component.d.ts.map +0 -1
- package/libs/feature/map/src/lib/map-context/component/map-context.component.d.ts +0 -26
- package/libs/feature/map/src/lib/map-context/component/map-context.component.d.ts.map +0 -1
- package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +0 -77
- package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +0 -1
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts +0 -26
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +0 -1
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +0 -17
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +0 -1
- package/libs/ui/map/src/lib/components/map/map.component.d.ts +0 -19
- package/libs/ui/map/src/lib/components/map/map.component.d.ts.map +0 -1
- package/libs/ui/map/src/lib/ui-map.module.d.ts +0 -13
- package/libs/ui/map/src/lib/ui-map.module.d.ts.map +0 -1
- package/src/libs/common/fixtures/src/lib/ol-feature.fixture.ts +0 -7
- package/src/libs/common/fixtures/src/lib/utils/freeze.ts +0 -10
- package/src/libs/common/fixtures/src/lib/utils/index.ts +0 -1
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +0 -9
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +0 -113
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.html +0 -7
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.ts +0 -16
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.html +0 -13
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.ts +0 -16
- package/src/libs/feature/map/src/lib/+state/map.effects.ts +0 -7
- package/src/libs/feature/map/src/lib/+state/map.models.ts +0 -9
- package/src/libs/feature/map/src/lib/constant/map-options.ts +0 -17
- package/src/libs/feature/map/src/lib/feature-info/feature-info.service.ts +0 -42
- package/src/libs/feature/map/src/lib/manager/map-instance.directive.ts +0 -10
- package/src/libs/feature/map/src/lib/manager/map-manager.service.ts +0 -13
- package/src/libs/feature/map/src/lib/map-container/map-container.component.html +0 -1
- package/src/libs/feature/map/src/lib/map-container/map-container.component.ts +0 -26
- package/src/libs/feature/map/src/lib/map-context/component/map-context.component.html +0 -1
- package/src/libs/feature/map/src/lib/map-context/component/map-context.component.ts +0 -57
- package/src/libs/feature/map/src/lib/map-context/map-context.fixtures.ts +0 -51
- package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +0 -95
- package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +0 -318
- package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +0 -29
- package/src/libs/ui/map/src/lib/components/map/map.component.ts +0 -57
- package/src/libs/ui/map/src/lib/ui-map.module.ts +0 -19
- /package/src/libs/feature/editor/src/lib/components/{overview-upload/overview-upload.component.css → import-record/import-record.component.css} +0 -0
- /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.css → online-resource-card/online-resource-card.component.css} +0 -0
- /package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.css → form-field-contacts/form-field-contacts.component.css} +0 -0
- /package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.css → form-field-date-updated/form-field-date-updated.component.css} +0 -0
- /package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-resource-updated/form-field-resource-updated.component.html → form-field-date-updated/form-field-date-updated.component.html} +0 -0
- /package/src/libs/feature/{map/src/lib/map-container/map-container.component.css → editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.css} +0 -0
- /package/src/libs/feature/map/src/lib/{map-context/component/map-context.component.css → map-state-container/map-state-container.component.css} +0 -0
- /package/src/libs/ui/{map/src/lib/components/map/map.component.css → layout/src/lib/modal-dialog/modal-dialog.component.css} +0 -0
- /package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.css +0 -0
- /package/src/libs/ui/map/src/lib/components/{map/map.component.html → map-container/map-container.component.html} +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
EventEmitter,
|
|
5
|
-
Input,
|
|
6
|
-
OnChanges,
|
|
7
|
-
Output,
|
|
8
|
-
} from '@angular/core'
|
|
9
|
-
import { MapUtilsService } from '../../utils/map-utils.service'
|
|
10
|
-
import Feature from 'ol/Feature'
|
|
11
|
-
import { Geometry } from 'ol/geom'
|
|
12
|
-
|
|
13
|
-
import Map from 'ol/Map'
|
|
14
|
-
import { FeatureInfoService } from '../../feature-info/feature-info.service'
|
|
15
|
-
import { MapManagerService } from '../../manager/map-manager.service'
|
|
16
|
-
import { MapContextModel } from '../map-context.model'
|
|
17
|
-
import { MapContextService } from '../map-context.service'
|
|
18
|
-
import { MapConfig } from '../../../../../../../libs/util/app-config/src'
|
|
19
|
-
|
|
20
|
-
@Component({
|
|
21
|
-
selector: 'gn-ui-map-context',
|
|
22
|
-
templateUrl: './map-context.component.html',
|
|
23
|
-
styleUrls: ['./map-context.component.css'],
|
|
24
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
25
|
-
})
|
|
26
|
-
export class MapContextComponent implements OnChanges {
|
|
27
|
-
@Input() context: MapContextModel
|
|
28
|
-
@Input() mapConfig: MapConfig
|
|
29
|
-
@Output() featureClicked = new EventEmitter<Feature<Geometry>[]>()
|
|
30
|
-
|
|
31
|
-
map: Map
|
|
32
|
-
|
|
33
|
-
constructor(
|
|
34
|
-
private service: MapContextService,
|
|
35
|
-
private featureInfo: FeatureInfoService,
|
|
36
|
-
private manager: MapManagerService,
|
|
37
|
-
private utils: MapUtilsService
|
|
38
|
-
) {
|
|
39
|
-
this.map = manager.map
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
ngOnChanges() {
|
|
43
|
-
if (this.context?.view) {
|
|
44
|
-
if (this.context.view.extent && !this.map.getSize()) {
|
|
45
|
-
this.map.once('change:size', () => {
|
|
46
|
-
this.service.resetMapFromContext(
|
|
47
|
-
this.map,
|
|
48
|
-
this.context,
|
|
49
|
-
this.mapConfig
|
|
50
|
-
)
|
|
51
|
-
})
|
|
52
|
-
} else {
|
|
53
|
-
this.service.resetMapFromContext(this.map, this.context, this.mapConfig)
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { FEATURE_COLLECTION_POLYGON_FIXTURE_4326 } from '../../../../../../libs/common/fixtures/src'
|
|
2
|
-
import { Extent } from 'ol/extent'
|
|
3
|
-
import {
|
|
4
|
-
MapContextLayerGeojsonModel,
|
|
5
|
-
MapContextLayerModel,
|
|
6
|
-
MapContextLayerTypeEnum,
|
|
7
|
-
MapContextModel,
|
|
8
|
-
MapContextViewModel,
|
|
9
|
-
} from '../map-context/map-context.model'
|
|
10
|
-
|
|
11
|
-
export const MAP_CTX_LAYER_XYZ_FIXTURE: MapContextLayerModel = {
|
|
12
|
-
type: MapContextLayerTypeEnum.XYZ,
|
|
13
|
-
url: 'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
|
14
|
-
}
|
|
15
|
-
export const MAP_CTX_LAYER_WMS_FIXTURE: MapContextLayerModel = {
|
|
16
|
-
type: MapContextLayerTypeEnum.WMS,
|
|
17
|
-
url: 'https://www.geograndest.fr/geoserver/region-grand-est/ows?REQUEST=GetCapabilities&SERVICE=WMS',
|
|
18
|
-
name: 'commune_actuelle_3857',
|
|
19
|
-
}
|
|
20
|
-
export const MAP_CTX_LAYER_WFS_FIXTURE: MapContextLayerModel = {
|
|
21
|
-
type: MapContextLayerTypeEnum.WFS,
|
|
22
|
-
url: 'https://www.geograndest.fr/geoserver/region-grand-est/ows?REQUEST=GetCapabilities&SERVICE=WFS&VERSION=1.1.0',
|
|
23
|
-
name: 'ms:commune_actuelle_3857',
|
|
24
|
-
}
|
|
25
|
-
export const MAP_CTX_LAYER_GEOJSON_FIXTURE: MapContextLayerGeojsonModel = {
|
|
26
|
-
type: MapContextLayerTypeEnum.GEOJSON,
|
|
27
|
-
data: FEATURE_COLLECTION_POLYGON_FIXTURE_4326,
|
|
28
|
-
}
|
|
29
|
-
export const MAP_CTX_LAYER_GEOJSON_REMOTE_FIXTURE: MapContextLayerGeojsonModel =
|
|
30
|
-
{
|
|
31
|
-
type: MapContextLayerTypeEnum.GEOJSON,
|
|
32
|
-
url: 'https://my.host.com/data/regions.json',
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export const MAP_CTX_VIEW_FIXTURE: MapContextViewModel = {
|
|
36
|
-
center: [7.75, 48.6],
|
|
37
|
-
zoom: 9,
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export const MAP_CTX_FIXTURE: MapContextModel = {
|
|
41
|
-
layers: [
|
|
42
|
-
MAP_CTX_LAYER_XYZ_FIXTURE,
|
|
43
|
-
MAP_CTX_LAYER_WMS_FIXTURE,
|
|
44
|
-
MAP_CTX_LAYER_GEOJSON_FIXTURE,
|
|
45
|
-
],
|
|
46
|
-
view: MAP_CTX_VIEW_FIXTURE,
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export const MAP_CTX_EXTENT_FIXTURE: Extent = [
|
|
50
|
-
171083.69713494915, 6246047.945419401, 476970.39956295764, 6631079.362882684,
|
|
51
|
-
]
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import type { FeatureCollection } from 'geojson'
|
|
2
|
-
import { Coordinate } from 'ol/coordinate'
|
|
3
|
-
import type { Extent } from 'ol/extent'
|
|
4
|
-
|
|
5
|
-
export enum MapContextLayerTypeEnum {
|
|
6
|
-
XYZ = 'xyz',
|
|
7
|
-
WMS = 'wms',
|
|
8
|
-
WMTS = 'wmts',
|
|
9
|
-
WFS = 'wfs',
|
|
10
|
-
GEOJSON = 'geojson',
|
|
11
|
-
OGCAPI = 'ogcapi',
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface MapContextModel {
|
|
15
|
-
layers: MapContextLayerModel[]
|
|
16
|
-
view?: MapContextViewModel
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface MapContextLayerWmsModel {
|
|
20
|
-
type: 'wms'
|
|
21
|
-
url: string
|
|
22
|
-
name: string
|
|
23
|
-
attributions?: string
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface MapContextLayerWmtsModel {
|
|
27
|
-
type: 'wmts'
|
|
28
|
-
url: string
|
|
29
|
-
name: string
|
|
30
|
-
attributions?: string
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface MapContextLayerWfsModel {
|
|
34
|
-
type: 'wfs'
|
|
35
|
-
url: string
|
|
36
|
-
name: string
|
|
37
|
-
attributions?: string
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface MapContextLayerOgcapiModel {
|
|
41
|
-
type: 'ogcapi'
|
|
42
|
-
url: string
|
|
43
|
-
name: string
|
|
44
|
-
layerType: 'feature' | 'vectorTiles' | 'mapTiles' | 'record'
|
|
45
|
-
attributions?: string
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface LayerXyzModel {
|
|
49
|
-
type: 'xyz'
|
|
50
|
-
name?: string
|
|
51
|
-
attributions?: string
|
|
52
|
-
}
|
|
53
|
-
interface LayerXyzModelWithUrl extends LayerXyzModel {
|
|
54
|
-
url: string
|
|
55
|
-
urls?: never
|
|
56
|
-
}
|
|
57
|
-
interface LayerXyzModelWithUrls extends LayerXyzModel {
|
|
58
|
-
urls: string[]
|
|
59
|
-
url?: never
|
|
60
|
-
}
|
|
61
|
-
export type MapContextLayerXyzModel =
|
|
62
|
-
| LayerXyzModelWithUrl
|
|
63
|
-
| LayerXyzModelWithUrls
|
|
64
|
-
|
|
65
|
-
interface LayerGeojson {
|
|
66
|
-
type: 'geojson'
|
|
67
|
-
attributions?: string
|
|
68
|
-
}
|
|
69
|
-
interface LayerGeojsonWithUrl extends LayerGeojson {
|
|
70
|
-
url: string
|
|
71
|
-
data?: never
|
|
72
|
-
}
|
|
73
|
-
interface LayerGeojsonWithData extends LayerGeojson {
|
|
74
|
-
data: FeatureCollection | string
|
|
75
|
-
url?: never
|
|
76
|
-
}
|
|
77
|
-
export type MapContextLayerGeojsonModel =
|
|
78
|
-
| LayerGeojsonWithUrl
|
|
79
|
-
| LayerGeojsonWithData
|
|
80
|
-
|
|
81
|
-
export type MapContextLayerModel =
|
|
82
|
-
| MapContextLayerWmsModel
|
|
83
|
-
| MapContextLayerWmtsModel
|
|
84
|
-
| MapContextLayerWfsModel
|
|
85
|
-
| MapContextLayerXyzModel
|
|
86
|
-
| MapContextLayerGeojsonModel
|
|
87
|
-
| MapContextLayerOgcapiModel
|
|
88
|
-
|
|
89
|
-
export interface MapContextViewModel {
|
|
90
|
-
center?: Coordinate // expressed in long/lat (EPSG:4326)
|
|
91
|
-
zoom?: number
|
|
92
|
-
extent?: Extent // expressed in long/lat (EPSG:4326)
|
|
93
|
-
maxZoom?: number
|
|
94
|
-
maxExtent?: Extent // expressed in long/lat (EPSG:4326)
|
|
95
|
-
}
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core'
|
|
2
|
-
import { MapStyleService } from '../style/map-style.service'
|
|
3
|
-
import {
|
|
4
|
-
MapContextLayerModel,
|
|
5
|
-
MapContextLayerTypeEnum,
|
|
6
|
-
MapContextLayerXyzModel,
|
|
7
|
-
MapContextModel,
|
|
8
|
-
MapContextViewModel,
|
|
9
|
-
} from './map-context.model'
|
|
10
|
-
import Map from 'ol/Map'
|
|
11
|
-
import View from 'ol/View'
|
|
12
|
-
import Layer from 'ol/layer/Base'
|
|
13
|
-
import VectorLayer from 'ol/layer/Vector'
|
|
14
|
-
import TileWMS from 'ol/source/TileWMS'
|
|
15
|
-
import TileLayer from 'ol/layer/Tile'
|
|
16
|
-
import XYZ from 'ol/source/XYZ'
|
|
17
|
-
import VectorSource from 'ol/source/Vector'
|
|
18
|
-
import GeoJSON from 'ol/format/GeoJSON'
|
|
19
|
-
import { MapUtilsService } from '../utils/map-utils.service'
|
|
20
|
-
import { bbox as bboxStrategy } from 'ol/loadingstrategy'
|
|
21
|
-
import { LayerConfig, MapConfig } from '../../../../../../libs/util/app-config/src'
|
|
22
|
-
import { FeatureCollection } from 'geojson'
|
|
23
|
-
import { fromLonLat } from 'ol/proj'
|
|
24
|
-
import WMTS from 'ol/source/WMTS'
|
|
25
|
-
import { Geometry } from 'ol/geom'
|
|
26
|
-
import Feature from 'ol/Feature'
|
|
27
|
-
import { WfsEndpoint, WmtsEndpoint } from '@camptocamp/ogc-client'
|
|
28
|
-
import OGCVectorTile from 'ol/source/OGCVectorTile.js'
|
|
29
|
-
import { MVT } from 'ol/format'
|
|
30
|
-
import VectorTileLayer from 'ol/layer/VectorTile'
|
|
31
|
-
import OGCMapTile from 'ol/source/OGCMapTile.js'
|
|
32
|
-
import ImageLayer from 'ol/layer/Image'
|
|
33
|
-
import ImageWMS from 'ol/source/ImageWMS'
|
|
34
|
-
|
|
35
|
-
export const DEFAULT_BASELAYER_CONTEXT: MapContextLayerXyzModel = {
|
|
36
|
-
type: MapContextLayerTypeEnum.XYZ,
|
|
37
|
-
urls: [
|
|
38
|
-
`https://a.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png`,
|
|
39
|
-
`https://b.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png`,
|
|
40
|
-
`https://c.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png`,
|
|
41
|
-
],
|
|
42
|
-
attributions: `<span>© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://carto.com/">Carto</a></span>`,
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export const DEFAULT_VIEW: MapContextViewModel = {
|
|
46
|
-
center: [0, 15],
|
|
47
|
-
zoom: 2,
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export const WFS_MAX_FEATURES = 10000
|
|
51
|
-
|
|
52
|
-
@Injectable({
|
|
53
|
-
providedIn: 'root',
|
|
54
|
-
})
|
|
55
|
-
export class MapContextService {
|
|
56
|
-
constructor(
|
|
57
|
-
private mapUtils: MapUtilsService,
|
|
58
|
-
private styleService: MapStyleService
|
|
59
|
-
) {}
|
|
60
|
-
|
|
61
|
-
resetMapFromContext(
|
|
62
|
-
map: Map,
|
|
63
|
-
mapContext: MapContextModel,
|
|
64
|
-
mapConfig?: MapConfig
|
|
65
|
-
): Map {
|
|
66
|
-
if (mapConfig) {
|
|
67
|
-
mapContext = this.mergeMapConfigWithContext(mapContext, mapConfig)
|
|
68
|
-
} else {
|
|
69
|
-
mapContext.layers = this.addDefaultBaselayerContext(mapContext.layers)
|
|
70
|
-
}
|
|
71
|
-
if (
|
|
72
|
-
!mapContext.view?.extent &&
|
|
73
|
-
(!mapContext.view?.center || !mapContext.view?.zoom)
|
|
74
|
-
) {
|
|
75
|
-
mapContext.view = this.getFallbackView(mapConfig)
|
|
76
|
-
}
|
|
77
|
-
map.setView(this.createView(mapContext.view, map))
|
|
78
|
-
map.getLayers().clear()
|
|
79
|
-
mapContext.layers.forEach((layer) =>
|
|
80
|
-
map.addLayer(this.createLayer(layer, mapConfig))
|
|
81
|
-
)
|
|
82
|
-
return map
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
createLayer(layerModel: MapContextLayerModel, mapConfig?: MapConfig): Layer {
|
|
86
|
-
const { type } = layerModel
|
|
87
|
-
const style = this.styleService.styles.default
|
|
88
|
-
switch (type) {
|
|
89
|
-
case MapContextLayerTypeEnum.OGCAPI:
|
|
90
|
-
if (layerModel.layerType === 'vectorTiles') {
|
|
91
|
-
return new VectorTileLayer({
|
|
92
|
-
source: new OGCVectorTile({
|
|
93
|
-
url: layerModel.url,
|
|
94
|
-
format: new MVT(),
|
|
95
|
-
attributions: layerModel.attributions,
|
|
96
|
-
}),
|
|
97
|
-
})
|
|
98
|
-
} else if (layerModel.layerType === 'mapTiles') {
|
|
99
|
-
return new TileLayer({
|
|
100
|
-
source: new OGCMapTile({
|
|
101
|
-
url: layerModel.url,
|
|
102
|
-
attributions: layerModel.attributions,
|
|
103
|
-
}),
|
|
104
|
-
})
|
|
105
|
-
} else {
|
|
106
|
-
return new VectorLayer({
|
|
107
|
-
source: new VectorSource({
|
|
108
|
-
format: new GeoJSON(),
|
|
109
|
-
url: layerModel.url,
|
|
110
|
-
attributions: layerModel.attributions,
|
|
111
|
-
}),
|
|
112
|
-
style,
|
|
113
|
-
})
|
|
114
|
-
}
|
|
115
|
-
case MapContextLayerTypeEnum.XYZ:
|
|
116
|
-
return new TileLayer({
|
|
117
|
-
source: new XYZ({
|
|
118
|
-
url: 'url' in layerModel ? layerModel.url : undefined,
|
|
119
|
-
urls: 'urls' in layerModel ? layerModel.urls : undefined,
|
|
120
|
-
attributions: layerModel.attributions,
|
|
121
|
-
}),
|
|
122
|
-
})
|
|
123
|
-
case MapContextLayerTypeEnum.WMS:
|
|
124
|
-
if (mapConfig?.DO_NOT_TILE_WMS) {
|
|
125
|
-
return new ImageLayer({
|
|
126
|
-
source: new ImageWMS({
|
|
127
|
-
url: layerModel.url,
|
|
128
|
-
params: { LAYERS: layerModel.name },
|
|
129
|
-
attributions: layerModel.attributions,
|
|
130
|
-
}),
|
|
131
|
-
})
|
|
132
|
-
} else {
|
|
133
|
-
return new TileLayer({
|
|
134
|
-
source: new TileWMS({
|
|
135
|
-
url: layerModel.url,
|
|
136
|
-
params: { LAYERS: layerModel.name, TILED: true },
|
|
137
|
-
attributions: layerModel.attributions,
|
|
138
|
-
}),
|
|
139
|
-
})
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
case MapContextLayerTypeEnum.WMTS: {
|
|
143
|
-
// TODO: isolate this in utils service
|
|
144
|
-
const olLayer = new TileLayer({})
|
|
145
|
-
const endpoint = new WmtsEndpoint(layerModel.url)
|
|
146
|
-
endpoint.isReady().then(async (endpoint) => {
|
|
147
|
-
const layerName = endpoint.getSingleLayerName() ?? layerModel.name
|
|
148
|
-
const layer = endpoint.getLayerByName(layerName)
|
|
149
|
-
const matrixSet = layer.matrixSets[0]
|
|
150
|
-
const tileGrid = await endpoint.getOpenLayersTileGrid(layer.name)
|
|
151
|
-
const resourceUrl = layer.resourceLinks[0]
|
|
152
|
-
const dimensions = endpoint.getDefaultDimensions(layer.name)
|
|
153
|
-
olLayer.setSource(
|
|
154
|
-
new WMTS({
|
|
155
|
-
layer: layer.name,
|
|
156
|
-
style: layer.defaultStyle,
|
|
157
|
-
matrixSet: matrixSet.identifier,
|
|
158
|
-
format: resourceUrl.format,
|
|
159
|
-
url: resourceUrl.url,
|
|
160
|
-
requestEncoding: resourceUrl.encoding,
|
|
161
|
-
tileGrid,
|
|
162
|
-
projection: matrixSet.crs,
|
|
163
|
-
dimensions,
|
|
164
|
-
attributions: layerModel.attributions,
|
|
165
|
-
})
|
|
166
|
-
)
|
|
167
|
-
})
|
|
168
|
-
return olLayer
|
|
169
|
-
}
|
|
170
|
-
case MapContextLayerTypeEnum.WFS: {
|
|
171
|
-
const olLayer = new VectorLayer({
|
|
172
|
-
style,
|
|
173
|
-
})
|
|
174
|
-
new WfsEndpoint(layerModel.url).isReady().then((endpoint) => {
|
|
175
|
-
const featureType =
|
|
176
|
-
endpoint.getSingleFeatureTypeName() ?? layerModel.name
|
|
177
|
-
olLayer.setSource(
|
|
178
|
-
new VectorSource({
|
|
179
|
-
format: new GeoJSON(),
|
|
180
|
-
url: function (extent: [number, number, number, number]) {
|
|
181
|
-
return endpoint.getFeatureUrl(featureType, {
|
|
182
|
-
maxFeatures: WFS_MAX_FEATURES,
|
|
183
|
-
asJson: true,
|
|
184
|
-
outputCrs: 'EPSG:3857',
|
|
185
|
-
extent,
|
|
186
|
-
extentCrs: 'EPSG:3857',
|
|
187
|
-
})
|
|
188
|
-
},
|
|
189
|
-
strategy: bboxStrategy,
|
|
190
|
-
attributions: layerModel.attributions,
|
|
191
|
-
})
|
|
192
|
-
)
|
|
193
|
-
})
|
|
194
|
-
return olLayer
|
|
195
|
-
}
|
|
196
|
-
case MapContextLayerTypeEnum.GEOJSON: {
|
|
197
|
-
if ('url' in layerModel) {
|
|
198
|
-
return new VectorLayer({
|
|
199
|
-
source: new VectorSource({
|
|
200
|
-
format: new GeoJSON(),
|
|
201
|
-
url: layerModel.url,
|
|
202
|
-
}),
|
|
203
|
-
style,
|
|
204
|
-
})
|
|
205
|
-
} else {
|
|
206
|
-
let geojson = layerModel.data
|
|
207
|
-
if (typeof geojson === 'string') {
|
|
208
|
-
try {
|
|
209
|
-
geojson = JSON.parse(geojson)
|
|
210
|
-
} catch (e) {
|
|
211
|
-
console.warn('A layer could not be created', layerModel, e)
|
|
212
|
-
geojson = { type: 'FeatureCollection', features: [] }
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
const features = this.mapUtils.readFeatureCollection(
|
|
216
|
-
geojson as FeatureCollection
|
|
217
|
-
) as Feature<Geometry>[]
|
|
218
|
-
return new VectorLayer({
|
|
219
|
-
source: new VectorSource({
|
|
220
|
-
features,
|
|
221
|
-
}),
|
|
222
|
-
style,
|
|
223
|
-
})
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
default:
|
|
227
|
-
throw new Error(`Unrecognized layer type: ${layerModel.type}`)
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
createView(viewModel: MapContextViewModel, map?: Map): View {
|
|
232
|
-
const { center: centerInViewProj, zoom, maxZoom, maxExtent } = viewModel
|
|
233
|
-
const center = centerInViewProj
|
|
234
|
-
? fromLonLat(centerInViewProj, 'EPSG:3857')
|
|
235
|
-
: [0, 0]
|
|
236
|
-
const view = new View({
|
|
237
|
-
center,
|
|
238
|
-
zoom,
|
|
239
|
-
maxZoom,
|
|
240
|
-
extent: maxExtent,
|
|
241
|
-
multiWorld: false,
|
|
242
|
-
constrainResolution: true,
|
|
243
|
-
})
|
|
244
|
-
if (viewModel.extent && map) {
|
|
245
|
-
view.fit(viewModel.extent, {
|
|
246
|
-
size: map.getSize(),
|
|
247
|
-
})
|
|
248
|
-
}
|
|
249
|
-
return view
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
addDefaultBaselayerContext(
|
|
253
|
-
layers: MapContextLayerModel[]
|
|
254
|
-
): MapContextLayerModel[] {
|
|
255
|
-
return layers.includes(DEFAULT_BASELAYER_CONTEXT)
|
|
256
|
-
? layers
|
|
257
|
-
: [DEFAULT_BASELAYER_CONTEXT, ...layers]
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
mergeMapConfigWithContext(
|
|
261
|
-
mapContext: MapContextModel,
|
|
262
|
-
mapConfig: MapConfig
|
|
263
|
-
): MapContextModel {
|
|
264
|
-
return {
|
|
265
|
-
...mapContext,
|
|
266
|
-
view: {
|
|
267
|
-
...mapContext.view,
|
|
268
|
-
...(mapConfig.MAX_ZOOM && {
|
|
269
|
-
maxZoom: mapConfig.MAX_ZOOM,
|
|
270
|
-
}),
|
|
271
|
-
...(mapConfig.MAX_EXTENT && {
|
|
272
|
-
maxExtent: mapConfig.MAX_EXTENT,
|
|
273
|
-
}),
|
|
274
|
-
},
|
|
275
|
-
layers: [
|
|
276
|
-
...(mapConfig.DO_NOT_USE_DEFAULT_BASEMAP
|
|
277
|
-
? []
|
|
278
|
-
: [DEFAULT_BASELAYER_CONTEXT]),
|
|
279
|
-
...mapConfig.MAP_LAYERS.map(this.getContextLayerFromConfig),
|
|
280
|
-
...mapContext.layers,
|
|
281
|
-
],
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
getFallbackView(mapConfig: MapConfig): MapContextViewModel {
|
|
286
|
-
return mapConfig?.MAX_EXTENT
|
|
287
|
-
? { extent: mapConfig.MAX_EXTENT }
|
|
288
|
-
: DEFAULT_VIEW
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
getContextLayerFromConfig(config: LayerConfig): MapContextLayerModel {
|
|
292
|
-
switch (config.TYPE) {
|
|
293
|
-
case 'wms':
|
|
294
|
-
return {
|
|
295
|
-
type: 'wms',
|
|
296
|
-
url: config.URL,
|
|
297
|
-
name: config.NAME,
|
|
298
|
-
}
|
|
299
|
-
case 'wfs':
|
|
300
|
-
return {
|
|
301
|
-
type: 'wfs',
|
|
302
|
-
url: config.URL,
|
|
303
|
-
name: config.NAME,
|
|
304
|
-
}
|
|
305
|
-
case 'xyz':
|
|
306
|
-
return {
|
|
307
|
-
type: config.TYPE,
|
|
308
|
-
url: config.URL,
|
|
309
|
-
name: config.NAME,
|
|
310
|
-
}
|
|
311
|
-
case 'geojson':
|
|
312
|
-
return {
|
|
313
|
-
type: config.TYPE,
|
|
314
|
-
...(config.DATA ? { data: config.DATA } : { url: config.URL }),
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<div
|
|
2
|
-
cdkDropList
|
|
3
|
-
class="sortable-list flex flex-col gap-3 p-2"
|
|
4
|
-
(cdkDropListDropped)="drop($event)"
|
|
5
|
-
>
|
|
6
|
-
<ng-container
|
|
7
|
-
*ngFor="let element of elements; index as index; trackBy: trackByFn"
|
|
8
|
-
>
|
|
9
|
-
<div class="sortable-box bg-white flex items-center" cdkDrag>
|
|
10
|
-
<span
|
|
11
|
-
cdkDragHandle
|
|
12
|
-
class="material-symbols-outlined mx-[10px] cursor-grab gn-ui-icon-medium flex-none"
|
|
13
|
-
>
|
|
14
|
-
drag_handle
|
|
15
|
-
</span>
|
|
16
|
-
<div class="flex-1">
|
|
17
|
-
<ng-container
|
|
18
|
-
*ngComponentOutlet="element.component; inputs: element.inputs"
|
|
19
|
-
></ng-container>
|
|
20
|
-
</div>
|
|
21
|
-
<span
|
|
22
|
-
(click)="removeElement(index)"
|
|
23
|
-
class="material-symbols-outlined mx-[10px] cursor-pointer gn-ui-icon-medium flex-none"
|
|
24
|
-
>
|
|
25
|
-
close
|
|
26
|
-
</span>
|
|
27
|
-
</div>
|
|
28
|
-
</ng-container>
|
|
29
|
-
</div>
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AfterViewInit,
|
|
3
|
-
ChangeDetectionStrategy,
|
|
4
|
-
Component,
|
|
5
|
-
ElementRef,
|
|
6
|
-
Input,
|
|
7
|
-
OnInit,
|
|
8
|
-
ViewChild,
|
|
9
|
-
} from '@angular/core'
|
|
10
|
-
import Map from 'ol/Map'
|
|
11
|
-
import { fromEvent, merge, Observable, of, timer } from 'rxjs'
|
|
12
|
-
import { delay, map, startWith, switchMap } from 'rxjs/operators'
|
|
13
|
-
|
|
14
|
-
@Component({
|
|
15
|
-
selector: 'gn-ui-map',
|
|
16
|
-
templateUrl: './map.component.html',
|
|
17
|
-
styleUrls: ['./map.component.css'],
|
|
18
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
-
})
|
|
20
|
-
export class MapComponent implements OnInit, AfterViewInit {
|
|
21
|
-
@Input() map: Map
|
|
22
|
-
@ViewChild('map') container: ElementRef
|
|
23
|
-
resizeObserver = new ResizeObserver(() => {
|
|
24
|
-
this.map.updateSize()
|
|
25
|
-
this.resizeObserver.unobserve(this.container.nativeElement)
|
|
26
|
-
})
|
|
27
|
-
mapMuted$: Observable<boolean>
|
|
28
|
-
cancelMapmuted$: Observable<boolean>
|
|
29
|
-
displayMessage$: Observable<boolean>
|
|
30
|
-
|
|
31
|
-
constructor(private _element: ElementRef) {}
|
|
32
|
-
|
|
33
|
-
ngOnInit() {
|
|
34
|
-
// this will show the message when a 'mapmuted' event is received and hide it a few seconds later
|
|
35
|
-
// 'movestart' and 'singleclick' will cancel displaying the message in particular for two finger interactions on mobile
|
|
36
|
-
this.displayMessage$ = merge(
|
|
37
|
-
fromEvent(this.map, 'mapmuted').pipe(map(() => true)),
|
|
38
|
-
fromEvent(this.map, 'movestart').pipe(map(() => false)),
|
|
39
|
-
fromEvent(this.map, 'singleclick').pipe(map(() => false))
|
|
40
|
-
).pipe(
|
|
41
|
-
switchMap((muted) =>
|
|
42
|
-
muted
|
|
43
|
-
? timer(2000).pipe(
|
|
44
|
-
map(() => false),
|
|
45
|
-
startWith(true),
|
|
46
|
-
delay(400)
|
|
47
|
-
)
|
|
48
|
-
: of(false)
|
|
49
|
-
)
|
|
50
|
-
)
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
ngAfterViewInit() {
|
|
54
|
-
this.map.setTarget(this.container.nativeElement)
|
|
55
|
-
this.resizeObserver.observe(this.container.nativeElement)
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { HttpClientModule } from '@angular/common/http'
|
|
2
|
-
import { NgModule } from '@angular/core'
|
|
3
|
-
import { CommonModule } from '@angular/common'
|
|
4
|
-
import { MapComponent } from './components/map/map.component'
|
|
5
|
-
import { FeatureDetailComponent } from './components/feature-detail/feature-detail.component'
|
|
6
|
-
import { TranslateModule } from '@ngx-translate/core'
|
|
7
|
-
import { MatIconModule } from '@angular/material/icon'
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
declarations: [MapComponent, FeatureDetailComponent],
|
|
11
|
-
imports: [
|
|
12
|
-
CommonModule,
|
|
13
|
-
HttpClientModule,
|
|
14
|
-
MatIconModule,
|
|
15
|
-
TranslateModule.forChild(),
|
|
16
|
-
],
|
|
17
|
-
exports: [MapComponent, FeatureDetailComponent],
|
|
18
|
-
})
|
|
19
|
-
export class UiMapModule {}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|