From eb62569763646c2a4a578c6d7042a47dc5731935 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Mon, 27 Jan 2025 11:23:22 +0100 Subject: [PATCH 01/57] add initial bgw client files --- packages/clients/bgw/CHANGELOG.md | 5 + packages/clients/bgw/README.md | 9 + packages/clients/bgw/services.ts | 117 ++++++++++ packages/clients/bgw/src/index.html | 29 +++ packages/clients/bgw/src/mapConfiguration.ts | 218 +++++++++++++++++++ packages/clients/bgw/src/polar-client.ts | 176 +++++++++++++++ 6 files changed, 554 insertions(+) create mode 100644 packages/clients/bgw/CHANGELOG.md create mode 100644 packages/clients/bgw/README.md create mode 100644 packages/clients/bgw/services.ts create mode 100644 packages/clients/bgw/src/index.html create mode 100644 packages/clients/bgw/src/mapConfiguration.ts create mode 100644 packages/clients/bgw/src/polar-client.ts diff --git a/packages/clients/bgw/CHANGELOG.md b/packages/clients/bgw/CHANGELOG.md new file mode 100644 index 000000000..1237beb10 --- /dev/null +++ b/packages/clients/bgw/CHANGELOG.md @@ -0,0 +1,5 @@ +# CHANGELOG + +## unpublished + +Initial release. diff --git a/packages/clients/bgw/README.md b/packages/clients/bgw/README.md new file mode 100644 index 000000000..070f5846e --- /dev/null +++ b/packages/clients/bgw/README.md @@ -0,0 +1,9 @@ +# POLAR client BGW + +## Content + +- + +## Usage + +- diff --git a/packages/clients/bgw/services.ts b/packages/clients/bgw/services.ts new file mode 100644 index 000000000..188bae46b --- /dev/null +++ b/packages/clients/bgw/services.ts @@ -0,0 +1,117 @@ +export default [ + { + id: '9001', + name: 'Basemap', + url: 'https://sgx.geodatenzentrum.de/wms_basemapde', + typ: 'WMS', + format: 'image/png', + version: '1.1.1', + minScale: 0, + maxScale: 1000000, + transparent: true, + layers: 'de_basemapde_web_raster_farbe', + singleTile: false, + tilesize: 256, + legendURL: + 'https://sgx.geodatenzentrum.de/wms_basemapde?format=image%2Fpng&layer=de_basemapde_web_raster_farbe&sld_version=1.1.0&request=GetLegendGraphic&service=WMS&version=1.1.1&styles=', + }, + { + id: '9002', + name: 'Basemap (Graustufen)', + url: 'https://sgx.geodatenzentrum.de/wms_basemapde', + typ: 'WMS', + format: 'image/png', + version: '1.1.1', + minScale: 0, + maxScale: 1000000, + transparent: true, + layers: 'de_basemapde_web_raster_grau', + singleTile: false, + tilesize: 256, + legendURL: + 'https://sgx.geodatenzentrum.de/wms_basemapde?format=image%2Fpng&layer=de_basemapde_web_raster_grau&sld_version=1.1.0&request=GetLegendGraphic&service=WMS&version=1.1.1&styles=', + }, + { + id: '9003', + name: 'Luftbilder', + url: 'https://geoportale.dp.dsecurecloud.de/mapproxy/bgw/service', + typ: 'WMS', + format: 'image/png', + version: '1.3.0', + minScale: 0, + maxScale: 1000000, + legendURL: 'ignore', + transparent: true, + layers: 'DOP_20', + singleTile: false, + tilesize: 256, + }, + { + id: '14000', + name: 'Verwaltungsgrenzen', + url: 'https://dienste.gdi-sh.de/WMS_SH_ALKIS_Fluren_Gemarkungen', + typ: 'WMS', + format: 'image/png', + version: '1.1.1', + minScale: 0, + maxScale: 1000000, + legendURL: 'ignore', + transparent: true, + layers: 'Kreise_Aemter_Gemeinden', + singleTile: false, + tilesize: 256, + }, + { + id: '14001', + name: 'ad:Address', + url: 'https://umweltgeodienste.schleswig-holstein.de/WFS_BGW', + typ: 'WFS', + featureType: 'app:badestraende', + version: '1.1.0', + outputFormat: 'XML', + gfiAttributes: 'showAll', + layerAttribution: 'nicht vorhanden', + hitTolerance: '0', + datasets: [], + }, + { + id: '14002', + name: 'ad:Address', + url: 'https://umweltgeodienste.schleswig-holstein.de/WFS_BGW', + typ: 'WFS', + featureType: 'app:betrachtungsbereiche', + version: '1.1.0', + outputFormat: 'XML', + gfiAttributes: 'showAll', + layerAttribution: 'nicht vorhanden', + hitTolerance: '0', + datasets: [], + }, + { + id: '14003', + name: 'ad:Address', + url: 'https://umweltgeodienste.schleswig-holstein.de/WFS_BGW', + typ: 'WFS', + featureType: 'app:badestellen', + version: '1.1.0', + outputFormat: 'XML', + gfiAttributes: 'showAll', + layerAttribution: 'nicht vorhanden', + hitTolerance: '0', + datasets: [], + clusterDistance: 20, + }, + { + id: '14004', + name: 'ad:Address', + url: 'https://umweltgeodienste.schleswig-holstein.de/WFS_BGW', + typ: 'WFS', + featureType: 'app:probenahmestellen', + version: '1.1.0', + outputFormat: 'XML', + gfiAttributes: 'showAll', + layerAttribution: 'nicht vorhanden', + hitTolerance: '0', + datasets: [], + }, +] diff --git a/packages/clients/bgw/src/index.html b/packages/clients/bgw/src/index.html new file mode 100644 index 000000000..b9c33c38c --- /dev/null +++ b/packages/clients/bgw/src/index.html @@ -0,0 +1,29 @@ + + + + + + + + POLAR – BGW example + + + + +
+
+
+ + + diff --git a/packages/clients/bgw/src/mapConfiguration.ts b/packages/clients/bgw/src/mapConfiguration.ts new file mode 100644 index 000000000..3ef5e22ea --- /dev/null +++ b/packages/clients/bgw/src/mapConfiguration.ts @@ -0,0 +1,218 @@ +import { MapConfig } from '../../../types/custom' + +const mapConfig: MapConfig = { + epsg: 'EPSG:25832', + namedProjections: [ + [ + 'EPSG:25832', + '+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs', + ], + [ + 'EPSG:4326', + '+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs', + ], + ], + extent: [106281, 5223179, 1021520, 6126916], + startCenter: [552874, 6005140], + startResolution: 260.591595229, + options: [ + { resolution: 260.591595229, scale: 1000000, zoomLevel: 0 }, + { resolution: 132.291595229, scale: 500000, zoomLevel: 1 }, + { resolution: 52.9166380916821, scale: 200000, zoomLevel: 2 }, + { resolution: 26.458319045841044, scale: 100000, zoomLevel: 3 }, + { resolution: 19.84373928438079, scale: 75000, zoomLevel: 4 }, + { resolution: 13.229159522920526, scale: 50000, zoomLevel: 5 }, + { resolution: 5.2916638091682096, scale: 20000, zoomLevel: 6 }, + { resolution: 3.9687478568761576, scale: 15000, zoomLevel: 7 }, + { resolution: 2.6458319045841048, scale: 10000, zoomLevel: 8 }, + { resolution: 1.3229159522920524, scale: 5000, zoomLevel: 9 }, + { resolution: 1.058332761833642, scale: 4000, zoomLevel: 10 }, + { resolution: 0.7937495713752315, scale: 3000, zoomLevel: 11 }, + { resolution: 0.529166380916821, scale: 2000, zoomLevel: 12 }, + { resolution: 0.2645831904584105, scale: 1000, zoomLevel: 13 }, + { resolution: 0.1322915952292052, scale: 500, zoomLevel: 14 }, + ], + locales: [ + { + type: 'de', + resources: { + plugins: { + filter: { + layerName: { + 14003: 'Badestellen', + }, + category: { + 14003: { + title: { + bgw_gwkategory: 'Gewässerkategorie', + }, + bgw_gwkategory: { + 'Küstengewässer ': 'Küstengewässer', + See: 'See', + Fließgewässer: 'Fließgewässer', + Übergangsgewässer: 'Übergangsgewässer', + }, + }, + }, + }, + }, + }, + }, + ], + layers: [ + { id: '9001', name: 'Basemap', type: 'background', visibility: true }, + { id: '9002', name: 'Basemap (Grau)', type: 'background' }, + { id: '9003', name: 'Luftbilder', type: 'background' }, + { id: '14000', name: 'Verwaltungsgrenzen', type: 'mask' }, + { + id: '14003', + visibility: true, + name: 'Badestellen', + type: 'mask', + }, + { + id: '14001', + visibility: true, + name: 'Ausdehnung der Badestellen', + type: 'mask', + }, + { + id: '14004', + visibility: true, + name: 'Probenahmestellen', + type: 'mask', + }, + ], + attributions: { + layerAttributions: [ + { id: '9001', title: 'Basemap © GeoBasis-DE / BKG CC BY 4.0' }, + { + id: '9002', + title: 'Basemap (Grau) © GeoBasis-DE / BKG CC BY 4.0', + }, + { + id: '9003', + title: 'Luftbilder © GeoBasis-DE/LVermGeo SH/CC BY-SA 4.0', + }, + { + id: '14000', + title: 'Verwaltungsgrenzen © GeoBasis-DE/LVermGeo SH/CC BY 4.0', + }, + { + id: '14001', + title: + 'Ausdehnung der Badestellen © Ministerium für Soziales, Gesundheit, Jugend, Familie und Senioren des Landes Schleswig-Holstein', + }, + { + id: '14002', + title: + 'Badestellen © Ministerium für Soziales, Gesundheit, Jugend, Familie und Senioren des Landes Schleswig-Holstein', + }, + { + id: '14003', + title: + 'Probenahmestellen © Ministerium für Soziales, Gesundheit, Jugend, Familie und Senioren des Landes Schleswig-Holstein', + }, + ], + }, + addressSearch: { + addLoading: 'plugin/loadingIndicator/addLoadingKey', + removeLoading: 'plugin/loadingIndicator/removeLoadingKey', + minLength: 3, + waitMs: 300, + searchMethods: [ + { + queryParameters: { + filter: { + bundesland: 'Schleswig-Holstein', + }, + }, + type: 'bkg', + url: 'https://gisdemo.dp.dsecurecloud.de/bkg_geosearch3', + }, + ], + // ? + // customSearchMethods: { dish: search, autocomplete }, + // customSelectResult: { categoryDenkmalsucheAutocomplete: selectResult }, + }, + pins: { + toZoomLevel: 7, + }, + filter: { + layers: { + 14003: { + categories: [ + { + selectAll: true, + targetProperty: 'bgw_gwkategory', + knownValues: [ + 'Küstengewässer ', + 'See', + 'Fließgewässer', + 'Übergangsgewässer', + ], + }, + ], + }, + }, + }, + extendedMasterportalapiMarkers: { + layers: ['14003'], + defaultStyle: { + stroke: '#FFFFFF', + fill: '#005CA9', + }, + hoverStyle: { + stroke: '#46688E', + fill: '#8BA1B8', + }, + selectionStyle: { + stroke: '#FFFFFF', + fill: '#E10019', + }, + clusterClickZoom: true, + dispatchOnMapSelect: ['plugin/iconMenu/openMenuById', 'gfi'], + }, + gfi: { + mode: 'bboxDot', + activeLayerPath: 'plugin/layerChooser/activeMaskIds', + featureList: { + mode: 'visible', + pageLength: 10, + text: [ + (feature) => feature.get('bgw_name'), + (feature) => feature.get('bgw_gwkategory'), + ], + bindWithCoreHoverSelect: true, + }, + layers: { + 14003: { + window: true, + geometry: false, + properties: { + bgw_name: 'Name', + fid: 'EU-IRD', + ort: 'Gemeinde', + bgw_kreis: 'Kreis', + bgw_gwkategory: 'Gewässerkategorie', + bgw_laenge: 'geographische Länge', + bgw_breite: 'geographische Breite', + bgw_laenge_bgw: 'Länge Uferlinie (m)', + bgw_umfeld: 'Umfeld (Infrastruktur)', + }, + showTooltip: (feature) => + feature.get('features').length > 1 + ? [ + ['h2', 'Mehrere Badestellen'], + ['span', 'Klicken zum Zoomen'], + ] + : [ + ['h2', feature.get('features')[0].get('bgw_name')], + ['span', feature.get('features')[0].get('bgw_gwkategory')], + ], + }, + }, + }, +} + +export default mapConfig diff --git a/packages/clients/bgw/src/polar-client.ts b/packages/clients/bgw/src/polar-client.ts new file mode 100644 index 000000000..0b6594f9c --- /dev/null +++ b/packages/clients/bgw/src/polar-client.ts @@ -0,0 +1,176 @@ +import core, { + setLayout, + NineLayout, + NineLayoutTag, + PolarCore, +} from '@polar/core' +import { MapConfig, Menu } from '@polar/lib-custom-types' +import AddressSearch from '@polar/plugin-address-search' +import Attributions from '@polar/plugin-attributions' +import Filter from '@polar/plugin-filter' +import Fullscreen from '@polar/plugin-fullscreen' +import GeoLocation from '@polar/plugin-geo-location' +import Gfi from '@polar/plugin-gfi' +import IconMenu from '@polar/plugin-icon-menu' +import LayerChooser from '@polar/plugin-layer-chooser' +import Legend from '@polar/plugin-legend' +import LoadingIndicator from '@polar/plugin-loading-indicator' +import Pins from '@polar/plugin-pins' +import Scale from '@polar/plugin-scale' +import Toast from '@polar/plugin-toast' +import Zoom from '@polar/plugin-zoom' +import packageInfo from '../package.json' + +/* TODO + * The types below do not match. This is intentional due to this file setting + * a base for later configuration; it is not meant to contain a full config. + * + * We should work something out to make types partial, and maybe identify what's + * left to do as a type on a per-client basis. + */ + +type PluginName = + | 'address-search' + | 'attributions' + | 'draw' + | 'export' + | 'filter' + | 'fullscreen' + | 'geo-location' + | 'gfi' + | 'icon-menu' + | 'layer-chooser' + | 'legend' + | 'loading-indicator' + | 'pins' + | 'reverse-geocoder' + | 'scale' + | 'toast' + | 'zoom' + +// eslint-disable-next-line no-console +console.info(`@polar/client-bgw: running in v${packageInfo.version}.`) + +setLayout(NineLayout) + +// this is fine for list-like setup functions +// eslint-disable-next-line max-lines-per-function +const addPlugins = (coreInstance: PolarCore, enabledPlugins: PluginName[]) => { + const iconMenu = + enabledPlugins.includes('icon-menu') && + IconMenu({ + displayComponent: true, + menus: [ + enabledPlugins.includes('layer-chooser') && { + plugin: LayerChooser({}), + icon: 'fa-layer-group', + id: 'layerChooser', + }, + enabledPlugins.includes('filter') && { + plugin: Filter({ + layers: {}, + }), + icon: 'fa-filter', + id: 'filter', + }, + enabledPlugins.includes('gfi') && { + plugin: Gfi({ + renderType: 'iconMenu', + coordinateSources: [], + layers: {}, + }), + icon: 'fa-location-pin', + id: 'gfi', + }, + enabledPlugins.includes('zoom') && { + plugin: Zoom({ renderType: 'iconMenu' }), + id: 'zoom', + }, + enabledPlugins.includes('fullscreen') && { + plugin: Fullscreen({ renderType: 'iconMenu' }), + id: 'fullscreen', + }, + enabledPlugins.includes('geo-location') && { + plugin: GeoLocation({ + renderType: 'iconMenu', + }), + id: 'geoLocation', + }, + enabledPlugins.includes('attributions') && { + plugin: Attributions({ + renderType: 'iconMenu', + }), + icon: 'fa-regular fa-copyright', + id: 'attributions', + }, + ].filter((x) => x) as Menu[], + layoutTag: NineLayoutTag.TOP_RIGHT, + }) + + coreInstance.addPlugins( + [ + iconMenu, + enabledPlugins.includes('address-search') && + AddressSearch({ + layoutTag: NineLayoutTag.TOP_LEFT, + searchMethods: [], + }), + enabledPlugins.includes('pins') && Pins({}), + enabledPlugins.includes('legend') && + Legend({ + layoutTag: NineLayoutTag.BOTTOM_RIGHT, + displayComponent: true, + }), + enabledPlugins.includes('loading-indicator') && + LoadingIndicator({ + layoutTag: NineLayoutTag.MIDDLE_MIDDLE, + }), + enabledPlugins.includes('scale') && + Scale({ + layoutTag: NineLayoutTag.BOTTOM_RIGHT, + displayComponent: true, + }), + enabledPlugins.includes('toast') && + Toast({ + layoutTag: NineLayoutTag.BOTTOM_MIDDLE, + displayComponent: true, + }), + ].filter((x) => x) + ) +} + +export const createMap = ({ + services, + mapConfiguration, + enabledPlugins = [], + modifyLayerConfiguration = (x) => x, +}: { + services: object[] + mapConfiguration: MapConfig + enabledPlugins: Array + modifyLayerConfiguration: (layerConf: object[]) => object[] +}) => + new Promise((resolve) => { + const coreInstance = { ...core } + + addPlugins(coreInstance, enabledPlugins) + + coreInstance.rawLayerList.initializeLayerList( + services, + async (layerConf) => { + const client = await coreInstance.createMap({ + containerId: 'polarstern', + mapConfiguration: { + ...mapConfiguration, + layerConf: modifyLayerConfiguration(layerConf), + }, + }) + + resolve(client) + } + ) + }) + +export default { + createMap, +} From 46816950e11ff3b1fbba88e89a2e6e5ea38ccaa0 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Mon, 27 Jan 2025 15:15:57 +0100 Subject: [PATCH 02/57] edit configurations --- packages/clients/bgw/src/addPlugins.ts | 111 +++++++++++ packages/clients/bgw/src/index.html | 2 +- packages/clients/bgw/src/mapConfiguration.ts | 10 +- packages/clients/bgw/src/polar-client.ts | 183 ++----------------- packages/clients/bgw/{ => src}/services.ts | 0 5 files changed, 133 insertions(+), 173 deletions(-) create mode 100644 packages/clients/bgw/src/addPlugins.ts rename packages/clients/bgw/{ => src}/services.ts (100%) diff --git a/packages/clients/bgw/src/addPlugins.ts b/packages/clients/bgw/src/addPlugins.ts new file mode 100644 index 000000000..593161b9d --- /dev/null +++ b/packages/clients/bgw/src/addPlugins.ts @@ -0,0 +1,111 @@ +import { setLayout, NineLayout, NineLayoutTag } from '@polar/core' +import AddressSearch from '@polar/plugin-address-search' +import Attributions from '@polar/plugin-attributions' +import Filter from '@polar/plugin-filter' +import Fullscreen from '@polar/plugin-fullscreen' +import GeoLocation from '@polar/plugin-geo-location' +import Gfi from '@polar/plugin-gfi' +import IconMenu from '@polar/plugin-icon-menu' +import LayerChooser from '@polar/plugin-layer-chooser' +import Legend from '@polar/plugin-legend' +import LoadingIndicator from '@polar/plugin-loading-indicator' +import Pins from '@polar/plugin-pins' +import Scale from '@polar/plugin-scale' +import Toast from '@polar/plugin-toast' +import Zoom from '@polar/plugin-zoom' +import merge from 'lodash.merge' + +const defaultOptions = { + displayComponent: true, + layoutTag: NineLayoutTag.TOP_LEFT, + } + +export default (core) => { + setLayout(NineLayout) + + +const iconMenu = IconMenu({ + displayComponent: true, + menus: [ + { + plugin: LayerChooser({}), + icon: 'fa-layer-group', + id: 'layerChooser', + }, + { + plugin: Filter({ + layers: {}, + }), + icon: 'fa-filter', + id: 'filter', + }, + { + plugin: Gfi( + merge({}, defaultOptions, + { + renderType: 'iconMenu', + coordinateSources: ['plugin/addressSearch/chosenAddress'], + }) + ), + icon: 'fa-location-pin', + id: 'gfi', + }, + { + plugin: Zoom({ renderType: 'iconMenu' }), + id: 'zoom', + }, + { + plugin: Fullscreen({ renderType: 'iconMenu' }), + id: 'fullscreen', + }, + { + plugin: GeoLocation({ + renderType: 'iconMenu', + }), + id: 'geoLocation', + }, + { + plugin: Attributions({ + renderType: 'iconMenu', + }), + icon: 'fa-regular fa-copyright', + id: 'attributions', + } + ], +}) + +core.addPlugins([ + iconMenu, + AddressSearch( + merge({}, defaultOptions, { + addLoading: 'plugin/loadingIndicator/addLoadingKey', + removeLoading: 'plugin/loadingIndicator/removeLoadingKey', + }) + ), + Pins({ + appearOnClick: { show: true, atZoomLevel: 6 }, + coordinateSource: 'plugin/addressSearch/chosenAddress', + }), + Legend( + merge({}, defaultOptions, { + layoutTag: NineLayoutTag.BOTTOM_RIGHT, + maxWidth: 500, + }) + ), + LoadingIndicator( + merge({}, defaultOptions, { + layoutTag: NineLayoutTag.MIDDLE_MIDDLE, + }), + ), + Scale( + merge({}, defaultOptions, { + layoutTag: NineLayoutTag.BOTTOM_RIGHT, + }) + ), + Toast( + merge({}, defaultOptions, { + layoutTag: NineLayoutTag.BOTTOM_MIDDLE, + }), + ), + ]) +} diff --git a/packages/clients/bgw/src/index.html b/packages/clients/bgw/src/index.html index b9c33c38c..3033f49d0 100644 --- a/packages/clients/bgw/src/index.html +++ b/packages/clients/bgw/src/index.html @@ -11,7 +11,7 @@ content="no-cache, no-store, must-revalidate, max-age=0" /> - POLAR – BGW example + POLAR – Badegewässer + + +
+
+
+ + + From 7e577fbb4501ec448fffdd06699889b1cbcdf5dc Mon Sep 17 00:00:00 2001 From: bruehlca Date: Tue, 28 Jan 2025 14:49:56 +0100 Subject: [PATCH 18/57] update readme --- packages/clients/bgw/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/clients/bgw/README.md b/packages/clients/bgw/README.md index 070f5846e..8d65999fc 100644 --- a/packages/clients/bgw/README.md +++ b/packages/clients/bgw/README.md @@ -2,8 +2,10 @@ ## Content -- +The Badegewässer map client offers citizens information about bathing areas in Schleswig-Holstein. + +Please see the `CHANGELOG.md` for all changes after the initial release. ## Usage -- +Usage as a HTML page is simply offered by hosting the client package with the included .html file. From 9872faa92c33c2d92bd6f252130a0d25bd436877 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Tue, 28 Jan 2025 14:59:57 +0100 Subject: [PATCH 19/57] change gfi configuration --- packages/clients/bgw/src/addPlugins.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/clients/bgw/src/addPlugins.ts b/packages/clients/bgw/src/addPlugins.ts index ef19a4a27..47356205b 100644 --- a/packages/clients/bgw/src/addPlugins.ts +++ b/packages/clients/bgw/src/addPlugins.ts @@ -38,6 +38,16 @@ export default (core) => { icon: 'fa-filter', id: 'filter', }, + { + plugin: Gfi({ + layers: {}, + renderType: 'iconMenu', + activeLayerPath: 'plugin/layerChooser/activeMaskIds', + coordinateSources: ['plugin/addressSearch/chosenAddress'], + }), + icon: 'fa-location-pin', + id: 'gfi', + }, { plugin: Fullscreen({ renderType: 'iconMenu' }), id: 'fullscreen', @@ -57,14 +67,6 @@ export default (core) => { customSelectResult: { badestellen: badestellenSearchResult }, }) ), - Gfi( - merge({}, defaultOptions, { - layoutTag: NineLayoutTag.BOTTOM_LEFT, - renderType: 'iconMenu', - activeLayerPath: 'plugin/layerChooser/activeMaskIds', - coordinateSources: ['plugin/addressSearch/chosenAddress'], - }) - ), Pins({ appearOnClick: { show: true, atZoomLevel: 6 }, coordinateSource: 'plugin/addressSearch/chosenAddress', From c96c76e1c908f81624041a8d0c1ce6c7ca9685dd Mon Sep 17 00:00:00 2001 From: bruehlca Date: Tue, 28 Jan 2025 15:06:27 +0100 Subject: [PATCH 20/57] add license --- packages/clients/bgw/LICENSE | 287 +++++++++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 packages/clients/bgw/LICENSE diff --git a/packages/clients/bgw/LICENSE b/packages/clients/bgw/LICENSE new file mode 100644 index 000000000..c29ce2f83 --- /dev/null +++ b/packages/clients/bgw/LICENSE @@ -0,0 +1,287 @@ + EUROPEAN UNION PUBLIC LICENCE v. 1.2 + EUPL © the European Union 2007, 2016 + +This European Union Public Licence (the ‘EUPL’) applies to the Work (as defined +below) which is provided under the terms of this Licence. Any use of the Work, +other than as authorised under this Licence is prohibited (to the extent such +use is covered by a right of the copyright holder of the Work). + +The Work is provided under the terms of this Licence when the Licensor (as +defined below) has placed the following notice immediately following the +copyright notice for the Work: + + Licensed under the EUPL + +or has expressed by any other means his willingness to license under the EUPL. + +1. Definitions + +In this Licence, the following terms have the following meaning: + +- ‘The Licence’: this Licence. + +- ‘The Original Work’: the work or software distributed or communicated by the + Licensor under this Licence, available as Source Code and also as Executable + Code as the case may be. + +- ‘Derivative Works’: the works or software that could be created by the + Licensee, based upon the Original Work or modifications thereof. This Licence + does not define the extent of modification or dependence on the Original Work + required in order to classify a work as a Derivative Work; this extent is + determined by copyright law applicable in the country mentioned in Article 15. + +- ‘The Work’: the Original Work or its Derivative Works. + +- ‘The Source Code’: the human-readable form of the Work which is the most + convenient for people to study and modify. + +- ‘The Executable Code’: any code which has generally been compiled and which is + meant to be interpreted by a computer as a program. + +- ‘The Licensor’: the natural or legal person that distributes or communicates + the Work under the Licence. + +- ‘Contributor(s)’: any natural or legal person who modifies the Work under the + Licence, or otherwise contributes to the creation of a Derivative Work. + +- ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of + the Work under the terms of the Licence. + +- ‘Distribution’ or ‘Communication’: any act of selling, giving, lending, + renting, distributing, communicating, transmitting, or otherwise making + available, online or offline, copies of the Work or providing access to its + essential functionalities at the disposal of any other natural or legal + person. + +2. Scope of the rights granted by the Licence + +The Licensor hereby grants You a worldwide, royalty-free, non-exclusive, +sublicensable licence to do the following, for the duration of copyright vested +in the Original Work: + +- use the Work in any circumstance and for all usage, +- reproduce the Work, +- modify the Work, and make Derivative Works based upon the Work, +- communicate to the public, including the right to make available or display + the Work or copies thereof to the public and perform publicly, as the case may + be, the Work, +- distribute the Work or copies thereof, +- lend and rent the Work or copies thereof, +- sublicense rights in the Work or copies thereof. + +Those rights can be exercised on any media, supports and formats, whether now +known or later invented, as far as the applicable law permits so. + +In the countries where moral rights apply, the Licensor waives his right to +exercise his moral right to the extent allowed by law in order to make effective +the licence of the economic rights here above listed. + +The Licensor grants to the Licensee royalty-free, non-exclusive usage rights to +any patents held by the Licensor, to the extent necessary to make use of the +rights granted on the Work under this Licence. + +3. Communication of the Source Code + +The Licensor may provide the Work either in its Source Code form, or as +Executable Code. If the Work is provided as Executable Code, the Licensor +provides in addition a machine-readable copy of the Source Code of the Work +along with each copy of the Work that the Licensor distributes or indicates, in +a notice following the copyright notice attached to the Work, a repository where +the Source Code is easily and freely accessible for as long as the Licensor +continues to distribute or communicate the Work. + +4. Limitations on copyright + +Nothing in this Licence is intended to deprive the Licensee of the benefits from +any exception or limitation to the exclusive rights of the rights owners in the +Work, of the exhaustion of those rights or of other applicable limitations +thereto. + +5. Obligations of the Licensee + +The grant of the rights mentioned above is subject to some restrictions and +obligations imposed on the Licensee. Those obligations are the following: + +Attribution right: The Licensee shall keep intact all copyright, patent or +trademarks notices and all notices that refer to the Licence and to the +disclaimer of warranties. The Licensee must include a copy of such notices and a +copy of the Licence with every copy of the Work he/she distributes or +communicates. The Licensee must cause any Derivative Work to carry prominent +notices stating that the Work has been modified and the date of modification. + +Copyleft clause: If the Licensee distributes or communicates copies of the +Original Works or Derivative Works, this Distribution or Communication will be +done under the terms of this Licence or of a later version of this Licence +unless the Original Work is expressly distributed only under this version of the +Licence — for example by communicating ‘EUPL v. 1.2 only’. The Licensee +(becoming Licensor) cannot offer or impose any additional terms or conditions on +the Work or Derivative Work that alter or restrict the terms of the Licence. + +Compatibility clause: If the Licensee Distributes or Communicates Derivative +Works or copies thereof based upon both the Work and another work licensed under +a Compatible Licence, this Distribution or Communication can be done under the +terms of this Compatible Licence. For the sake of this clause, ‘Compatible +Licence’ refers to the licences listed in the appendix attached to this Licence. +Should the Licensee's obligations under the Compatible Licence conflict with +his/her obligations under this Licence, the obligations of the Compatible +Licence shall prevail. + +Provision of Source Code: When distributing or communicating copies of the Work, +the Licensee will provide a machine-readable copy of the Source Code or indicate +a repository where this Source will be easily and freely available for as long +as the Licensee continues to distribute or communicate the Work. + +Legal Protection: This Licence does not grant permission to use the trade names, +trademarks, service marks, or names of the Licensor, except as required for +reasonable and customary use in describing the origin of the Work and +reproducing the content of the copyright notice. + +6. Chain of Authorship + +The original Licensor warrants that the copyright in the Original Work granted +hereunder is owned by him/her or licensed to him/her and that he/she has the +power and authority to grant the Licence. + +Each Contributor warrants that the copyright in the modifications he/she brings +to the Work are owned by him/her or licensed to him/her and that he/she has the +power and authority to grant the Licence. + +Each time You accept the Licence, the original Licensor and subsequent +Contributors grant You a licence to their contributions to the Work, under the +terms of this Licence. + +7. Disclaimer of Warranty + +The Work is a work in progress, which is continuously improved by numerous +Contributors. It is not a finished work and may therefore contain defects or +‘bugs’ inherent to this type of development. + +For the above reason, the Work is provided under the Licence on an ‘as is’ basis +and without warranties of any kind concerning the Work, including without +limitation merchantability, fitness for a particular purpose, absence of defects +or errors, accuracy, non-infringement of intellectual property rights other than +copyright as stated in Article 6 of this Licence. + +This disclaimer of warranty is an essential part of the Licence and a condition +for the grant of any rights to the Work. + +8. Disclaimer of Liability + +Except in the cases of wilful misconduct or damages directly caused to natural +persons, the Licensor will in no event be liable for any direct or indirect, +material or moral, damages of any kind, arising out of the Licence or of the use +of the Work, including without limitation, damages for loss of goodwill, work +stoppage, computer failure or malfunction, loss of data or any commercial +damage, even if the Licensor has been advised of the possibility of such damage. +However, the Licensor will be liable under statutory product liability laws as +far such laws apply to the Work. + +9. Additional agreements + +While distributing the Work, You may choose to conclude an additional agreement, +defining obligations or services consistent with this Licence. However, if +accepting obligations, You may act only on your own behalf and on your sole +responsibility, not on behalf of the original Licensor or any other Contributor, +and only if You agree to indemnify, defend, and hold each Contributor harmless +for any liability incurred by, or claims asserted against such Contributor by +the fact You have accepted any warranty or additional liability. + +10. Acceptance of the Licence + +The provisions of this Licence can be accepted by clicking on an icon ‘I agree’ +placed under the bottom of a window displaying the text of this Licence or by +affirming consent in any other similar way, in accordance with the rules of +applicable law. Clicking on that icon indicates your clear and irrevocable +acceptance of this Licence and all of its terms and conditions. + +Similarly, you irrevocably accept this Licence and all of its terms and +conditions by exercising any rights granted to You by Article 2 of this Licence, +such as the use of the Work, the creation by You of a Derivative Work or the +Distribution or Communication by You of the Work or copies thereof. + +11. Information to the public + +In case of any Distribution or Communication of the Work by means of electronic +communication by You (for example, by offering to download the Work from a +remote location) the distribution channel or media (for example, a website) must +at least provide to the public the information requested by the applicable law +regarding the Licensor, the Licence and the way it may be accessible, concluded, +stored and reproduced by the Licensee. + +12. Termination of the Licence + +The Licence and the rights granted hereunder will terminate automatically upon +any breach by the Licensee of the terms of the Licence. + +Such a termination will not terminate the licences of any person who has +received the Work from the Licensee under the Licence, provided such persons +remain in full compliance with the Licence. + +13. Miscellaneous + +Without prejudice of Article 9 above, the Licence represents the complete +agreement between the Parties as to the Work. + +If any provision of the Licence is invalid or unenforceable under applicable +law, this will not affect the validity or enforceability of the Licence as a +whole. Such provision will be construed or reformed so as necessary to make it +valid and enforceable. + +The European Commission may publish other linguistic versions or new versions of +this Licence or updated versions of the Appendix, so far this is required and +reasonable, without reducing the scope of the rights granted by the Licence. New +versions of the Licence will be published with a unique version number. + +All linguistic versions of this Licence, approved by the European Commission, +have identical value. Parties can take advantage of the linguistic version of +their choice. + +14. Jurisdiction + +Without prejudice to specific agreement between parties, + +- any litigation resulting from the interpretation of this License, arising + between the European Union institutions, bodies, offices or agencies, as a + Licensor, and any Licensee, will be subject to the jurisdiction of the Court + of Justice of the European Union, as laid down in article 272 of the Treaty on + the Functioning of the European Union, + +- any litigation arising between other parties and resulting from the + interpretation of this License, will be subject to the exclusive jurisdiction + of the competent court where the Licensor resides or conducts its primary + business. + +15. Applicable Law + +Without prejudice to specific agreement between parties, + +- this Licence shall be governed by the law of the European Union Member State + where the Licensor has his seat, resides or has his registered office, + +- this licence shall be governed by Belgian law if the Licensor has no seat, + residence or registered office inside a European Union Member State. + +Appendix + +‘Compatible Licences’ according to Article 5 EUPL are: + +- GNU General Public License (GPL) v. 2, v. 3 +- GNU Affero General Public License (AGPL) v. 3 +- Open Software License (OSL) v. 2.1, v. 3.0 +- Eclipse Public License (EPL) v. 1.0 +- CeCILL v. 2.0, v. 2.1 +- Mozilla Public Licence (MPL) v. 2 +- GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3 +- Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for + works other than software +- European Union Public Licence (EUPL) v. 1.1, v. 1.2 +- Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong + Reciprocity (LiLiQ-R+). + +The European Commission may update this Appendix to later versions of the above +licences without producing a new version of the EUPL, as long as they provide +the rights granted in Article 2 of this Licence and protect the covered Source +Code from exclusive appropriation. + +All other changes or additions to this Appendix require the production of a new +EUPL version. \ No newline at end of file From 6c559a76df90ed0c3ebe9d4abe7833698be1a3a8 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Tue, 28 Jan 2025 15:27:28 +0100 Subject: [PATCH 21/57] add missing scripts --- package-lock.json | 1 + package.json | 2 ++ packages/clients/bgw/package.json | 7 +++---- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index ce7791625..f5cbed3dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16479,6 +16479,7 @@ } }, "packages/clients/bgw": { + "name": "@polar/client-bgw", "version": "1.0.0", "license": "EUPL-1.2", "devDependencies": { diff --git a/package.json b/package.json index 997add30e..42cf2fbcd 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,8 @@ "afm:build": "nx build @polar/client-afm && npm run docs:afm", "afm:build:serve": "http-server ./packages/clients/afm -o /example/prod-example.html", "afm:dev": "nx dev @polar/client-afm", + "bgw:build": "nx build @polar/client-bgw", + "bgw:build:serve": "http-server ./packages/clients/bgw -o /example/index.html", "bgw:dev": "nx dev @polar/client-bgw", "generic:build": "nx build @polar/client-generic", "dish:build": "nx build @polar/client-dish", diff --git a/packages/clients/bgw/package.json b/packages/clients/bgw/package.json index f453572be..70f59a861 100644 --- a/packages/clients/bgw/package.json +++ b/packages/clients/bgw/package.json @@ -14,9 +14,8 @@ }, "files": [ "dist/**/**.*", - "docs/**/**.*", - "CHANGELOG.md", - "API.md" + "example/**/**.*", + "CHANGELOG.md" ], "scripts": { "prepublishOnly": "npm run build", @@ -48,6 +47,6 @@ "lodash.merge": "^4.6.2" }, "nx": { - "includedScripts": ["dev"] + "includedScripts": ["build", "dev"] } } From 048fb2414d2195a56c077d653ac818ef3d29f0b3 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Tue, 28 Jan 2025 17:59:14 +0100 Subject: [PATCH 22/57] fix build scripts --- package.json | 2 +- packages/clients/bgw/{example => src/html}/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename packages/clients/bgw/{example => src/html}/index.html (92%) diff --git a/package.json b/package.json index 42cf2fbcd..0f6399381 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "afm:build:serve": "http-server ./packages/clients/afm -o /example/prod-example.html", "afm:dev": "nx dev @polar/client-afm", "bgw:build": "nx build @polar/client-bgw", - "bgw:build:serve": "http-server ./packages/clients/bgw -o /example/index.html", + "bgw:build:serve": "http-server ./packages/clients/bgw -o /dist/index.html", "bgw:dev": "nx dev @polar/client-bgw", "generic:build": "nx build @polar/client-generic", "dish:build": "nx build @polar/client-dish", diff --git a/packages/clients/bgw/example/index.html b/packages/clients/bgw/src/html/index.html similarity index 92% rename from packages/clients/bgw/example/index.html rename to packages/clients/bgw/src/html/index.html index 57bd7eb28..2c08fdd36 100644 --- a/packages/clients/bgw/example/index.html +++ b/packages/clients/bgw/src/html/index.html @@ -25,5 +25,5 @@
- + From 25802749137f3b81dfe54bd9e550804fa533664a Mon Sep 17 00:00:00 2001 From: bruehlca Date: Thu, 30 Jan 2025 11:18:46 +0100 Subject: [PATCH 23/57] remove icon style --- packages/clients/bgw/src/style.json | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/clients/bgw/src/style.json b/packages/clients/bgw/src/style.json index afbed5790..b5c2e2acf 100644 --- a/packages/clients/bgw/src/style.json +++ b/packages/clients/bgw/src/style.json @@ -11,19 +11,6 @@ } ] }, - { - "styleId": "badestellen", - "rules": [ - { - "style": { - "type": "icon", - "imageName": "/assets/badestellen.png", - "clusterImageName": "/assets/badestellen.png", - "imageScale": 0.3 - } - } - ] - }, { "styleId": "ausdehnungBadestellen", "rules": [ From e750c75200d24eee26edf002dc7ae45d90bb4c7e Mon Sep 17 00:00:00 2001 From: bruehlca Date: Thu, 30 Jan 2025 11:48:16 +0100 Subject: [PATCH 24/57] change layer order --- packages/clients/bgw/src/mapConfiguration.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/clients/bgw/src/mapConfiguration.ts b/packages/clients/bgw/src/mapConfiguration.ts index be9ac58c5..6c14a156e 100644 --- a/packages/clients/bgw/src/mapConfiguration.ts +++ b/packages/clients/bgw/src/mapConfiguration.ts @@ -66,17 +66,17 @@ const mapConfig = { { id: '9003', name: 'Luftbilder', type: 'background' }, { id: '14000', name: 'Verwaltungsgrenzen', type: 'mask' }, { - id: '14003', - styleId: 'badestellen', + id: '14001', + styleId: 'ausdehnungBadestellen', visibility: true, - name: 'Badestellen', + name: 'Ausdehnung der Badestellen', type: 'mask', }, { - id: '14001', - styleId: 'ausdehnungBadestellen', + id: '14003', + styleId: 'badestellen', visibility: true, - name: 'Ausdehnung der Badestellen', + name: 'Badestellen', type: 'mask', }, { From 03413896c6ed381c2211adcc9b06e1c7b21ca179 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Thu, 30 Jan 2025 15:52:43 +0100 Subject: [PATCH 25/57] edit tab sizes for linting --- packages/clients/bgw/vite.config.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/clients/bgw/vite.config.js b/packages/clients/bgw/vite.config.js index e88701cf4..bde45798b 100644 --- a/packages/clients/bgw/vite.config.js +++ b/packages/clients/bgw/vite.config.js @@ -1,10 +1,10 @@ import { getClientConfig } from '../../../viteConfigs' export default getClientConfig({ - build: { - lib: { - entry: 'polar-client.ts', - name: 'POLAR Badegewässer Client', - }, + build: { + lib: { + entry: 'polar-client.ts', + name: 'POLAR Badegewässer Client', }, - }) + }, +}) From 5dc0563c20758bfd7564372c52a3df7eaca4bd1d Mon Sep 17 00:00:00 2001 From: Pascal Roehling Date: Thu, 30 Jan 2025 16:05:51 +0100 Subject: [PATCH 26/57] Add missing local link --- package-lock.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package-lock.json b/package-lock.json index 34fdc754a..411271868 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16737,6 +16737,10 @@ "vuex": "^3.x" } }, + "packages/clients/bgw/node_modules/@polar/lib-custom-types": { + "resolved": "packages/types/custom", + "link": true + }, "packages/clients/dish": { "name": "@polar/client-dish", "version": "1.1.1", From be441b4720a705d461238601a7a7464c855009e1 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Thu, 30 Jan 2025 16:10:22 +0100 Subject: [PATCH 27/57] fix linting error --- packages/clients/bgw/src/polar-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clients/bgw/src/polar-client.ts b/packages/clients/bgw/src/polar-client.ts index e16aeadb8..557add2a3 100644 --- a/packages/clients/bgw/src/polar-client.ts +++ b/packages/clients/bgw/src/polar-client.ts @@ -13,7 +13,7 @@ addPlugins(client) async function initializeClient() { client.rawLayerList.initializeLayerList(services) - const instance = await client.createMap({ + await client.createMap({ containerId, mapConfiguration: { ...mapConfiguration, From bda4e05033a6194c842e8f8a78f2afe8bf130973 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Thu, 30 Jan 2025 16:36:11 +0100 Subject: [PATCH 28/57] add zoom to icon menu --- packages/clients/bgw/src/addPlugins.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/clients/bgw/src/addPlugins.ts b/packages/clients/bgw/src/addPlugins.ts index 47356205b..b69bca2bc 100644 --- a/packages/clients/bgw/src/addPlugins.ts +++ b/packages/clients/bgw/src/addPlugins.ts @@ -48,6 +48,12 @@ export default (core) => { icon: 'fa-location-pin', id: 'gfi', }, + { + plugin: Zoom({ + renderType: 'iconMenu', + }), + id: 'zoom', + }, { plugin: Fullscreen({ renderType: 'iconMenu' }), id: 'fullscreen', @@ -73,6 +79,7 @@ export default (core) => { }), Legend( merge({}, defaultOptions, { + renderType: 'independent', layoutTag: NineLayoutTag.BOTTOM_RIGHT, maxWidth: 500, }) @@ -87,12 +94,6 @@ export default (core) => { layoutTag: NineLayoutTag.BOTTOM_MIDDLE, }) ), - Zoom( - merge({}, defaultOptions, { - renderType: 'independent', - layoutTag: NineLayoutTag.MIDDLE_RIGHT, - }) - ), Attributions( merge({}, defaultOptions, { renderType: 'independent', From 68cab83c899da57a61db36764d44c740cd918e41 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Thu, 30 Jan 2025 16:40:28 +0100 Subject: [PATCH 29/57] add attributions to icon menu --- packages/clients/bgw/src/addPlugins.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/packages/clients/bgw/src/addPlugins.ts b/packages/clients/bgw/src/addPlugins.ts index b69bca2bc..3a675a2bf 100644 --- a/packages/clients/bgw/src/addPlugins.ts +++ b/packages/clients/bgw/src/addPlugins.ts @@ -58,6 +58,11 @@ export default (core) => { plugin: Fullscreen({ renderType: 'iconMenu' }), id: 'fullscreen', }, + { + plugin: Attributions({ renderType: 'iconMenu' }), + icon: 'fa-regular fa-copyright', + id: 'attributions', + }, ], displayComponent: true, initiallyOpen: 'layerChooser', @@ -94,14 +99,6 @@ export default (core) => { layoutTag: NineLayoutTag.BOTTOM_MIDDLE, }) ), - Attributions( - merge({}, defaultOptions, { - renderType: 'independent', - icon: 'fa-regular fa-copyright', - id: 'attributions', - layoutTag: NineLayoutTag.BOTTOM_RIGHT, - }) - ), Scale( merge({}, defaultOptions, { layoutTag: NineLayoutTag.BOTTOM_RIGHT, From d1523498a174ed83ff849545ab0f1aefd2a5427f Mon Sep 17 00:00:00 2001 From: bruehlca Date: Fri, 31 Jan 2025 09:38:02 +0100 Subject: [PATCH 30/57] add API.md --- packages/clients/bgw/API.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 packages/clients/bgw/API.md diff --git a/packages/clients/bgw/API.md b/packages/clients/bgw/API.md new file mode 100644 index 000000000..6c1234426 --- /dev/null +++ b/packages/clients/bgw/API.md @@ -0,0 +1,5 @@ +# POLAR client DiPlanKarten + +This client is a work-in-progress. This document will contain use cases and configuration examples when done. + +For all additional details, check the [full documentation](https://dataport.github.io/polar/docs/bgw/client-bgw.html). \ No newline at end of file From 58a5c35ac6e98421c8d45370b3a0354427316a18 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Fri, 31 Jan 2025 09:40:20 +0100 Subject: [PATCH 31/57] add script to make docs --- package.json | 1 + packages/clients/bgw/package.json | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0f6399381..794dfce38 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "pages:build:serve": "http-server pages -o index.html", "clean": "nx reset && rimraf --glob packages/**/{.cache,dist,docs} && rimraf --glob {.cache,dist} && node ./scripts/clean", "docs:afm": "node ./scripts/makeDocs afm", + "docs:bgw": "node ./scripts/makeDocs bgw", "docs:generic": "node ./scripts/makeDocs generic", "docs:meldemichel": "node ./scripts/makeDocs meldemichel && npm run meldemichel:build && cp -r ./packages/clients/meldemichel/dist ./packages/clients/meldemichel/example ./packages/clients/meldemichel/docs", "docs:snowbox": "node ./scripts/makeDocs snowbox", diff --git a/packages/clients/bgw/package.json b/packages/clients/bgw/package.json index 70f59a861..71736a307 100644 --- a/packages/clients/bgw/package.json +++ b/packages/clients/bgw/package.json @@ -14,8 +14,9 @@ }, "files": [ "dist/**/**.*", - "example/**/**.*", - "CHANGELOG.md" + "docs/**/**.*", + "CHANGELOG.md", + "API.md" ], "scripts": { "prepublishOnly": "npm run build", From d0bff165156e58c574a2b0ce11bd8a132ffbf883 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Fri, 31 Jan 2025 09:45:19 +0100 Subject: [PATCH 32/57] fix client name --- packages/clients/bgw/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clients/bgw/API.md b/packages/clients/bgw/API.md index 6c1234426..ac2ff890d 100644 --- a/packages/clients/bgw/API.md +++ b/packages/clients/bgw/API.md @@ -1,4 +1,4 @@ -# POLAR client DiPlanKarten +# POLAR client BGW This client is a work-in-progress. This document will contain use cases and configuration examples when done. From f675a17c06d3f38fbad74fcabd0bf8d5f1e83f03 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Fri, 31 Jan 2025 10:50:43 +0100 Subject: [PATCH 33/57] add prod-example.html --- .../clients/bgw/example/prod-example.html | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/clients/bgw/example/prod-example.html diff --git a/packages/clients/bgw/example/prod-example.html b/packages/clients/bgw/example/prod-example.html new file mode 100644 index 000000000..1e875d4e4 --- /dev/null +++ b/packages/clients/bgw/example/prod-example.html @@ -0,0 +1,30 @@ + + + + + + + + + POLAR – Badegewässer + + + + +
+
+
+ + + From 9a183f5391f3f36b566ae28943595006871bb8e6 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Fri, 31 Jan 2025 12:06:44 +0100 Subject: [PATCH 34/57] copy style.json to dist --- packages/clients/bgw/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clients/bgw/package.json b/packages/clients/bgw/package.json index 71736a307..91cb7e73f 100644 --- a/packages/clients/bgw/package.json +++ b/packages/clients/bgw/package.json @@ -20,7 +20,7 @@ ], "scripts": { "prepublishOnly": "npm run build", - "build": "rimraf dist && vite build && copyfiles -f src/html/**/* dist", + "build": "rimraf dist && vite build && copyfiles -f src/html/**/* dist && copyfiles -f src/style.json dist", "dev": "vite --host" }, "devDependencies": { From 6a18a4a5c8c306585d1dc80823db30b9ea97b891 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Fri, 31 Jan 2025 12:27:14 +0100 Subject: [PATCH 35/57] add TODO for API.md --- packages/clients/bgw/API.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/clients/bgw/API.md b/packages/clients/bgw/API.md index ac2ff890d..ed2340185 100644 --- a/packages/clients/bgw/API.md +++ b/packages/clients/bgw/API.md @@ -2,4 +2,6 @@ This client is a work-in-progress. This document will contain use cases and configuration examples when done. -For all additional details, check the [full documentation](https://dataport.github.io/polar/docs/bgw/client-bgw.html). \ No newline at end of file +For all additional details, check the [full documentation](https://dataport.github.io/polar/docs/bgw/client-bgw.html). + +TODO \ No newline at end of file From cb3d652cdf0cbd328493ab56836eb12da75f9b94 Mon Sep 17 00:00:00 2001 From: Pascal Roehling Date: Thu, 6 Feb 2025 10:13:55 +0100 Subject: [PATCH 36/57] Use latest versions of @polar-packages in @polar/client-bgw --- package-lock.json | 32 +++++++++++++++---------------- packages/clients/bgw/package.json | 32 +++++++++++++++---------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0bd777c22..45d2d19db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17812,22 +17812,22 @@ "version": "1.0.0", "license": "EUPL-1.2", "devDependencies": { - "@polar/core": "^2.0.0", - "@polar/lib-custom-types": "^1.5.0", - "@polar/plugin-address-search": "^2.0.0", - "@polar/plugin-attributions": "^1.3.0", - "@polar/plugin-draw": "^2.0.0", - "@polar/plugin-export": "^1.2.1", - "@polar/plugin-filter": "^2.0.0", - "@polar/plugin-gfi": "^2.0.0", - "@polar/plugin-icon-menu": "^1.3.0", - "@polar/plugin-layer-chooser": "^1.2.1", - "@polar/plugin-legend": "^1.1.1", - "@polar/plugin-loading-indicator": "^1.2.0", - "@polar/plugin-pins": "^2.0.0", - "@polar/plugin-scale": "^2.0.0", - "@polar/plugin-toast": "^1.1.1", - "@polar/plugin-zoom": "^1.3.0" + "@polar/core": "^3.0.0", + "@polar/lib-custom-types": "^2.0.0", + "@polar/plugin-address-search": "^3.0.0", + "@polar/plugin-attributions": "^1.4.0", + "@polar/plugin-draw": "^3.0.0", + "@polar/plugin-export": "^1.2.2", + "@polar/plugin-filter": "^3.0.0", + "@polar/plugin-gfi": "^3.0.0", + "@polar/plugin-icon-menu": "^1.3.1", + "@polar/plugin-layer-chooser": "^2.0.0", + "@polar/plugin-legend": "^1.1.2", + "@polar/plugin-loading-indicator": "^1.2.1", + "@polar/plugin-pins": "^3.0.0", + "@polar/plugin-scale": "^3.0.0", + "@polar/plugin-toast": "^1.1.2", + "@polar/plugin-zoom": "^1.4.0" }, "peerDependencies": { "@repositoryname/vuex-generators": "^1.1.2", diff --git a/packages/clients/bgw/package.json b/packages/clients/bgw/package.json index 91cb7e73f..ad29c70d9 100644 --- a/packages/clients/bgw/package.json +++ b/packages/clients/bgw/package.json @@ -24,22 +24,22 @@ "dev": "vite --host" }, "devDependencies": { - "@polar/core": "^2.0.0", - "@polar/lib-custom-types": "^1.5.0", - "@polar/plugin-address-search": "^2.0.0", - "@polar/plugin-attributions": "^1.3.0", - "@polar/plugin-draw": "^2.0.0", - "@polar/plugin-export": "^1.2.1", - "@polar/plugin-filter": "^2.0.0", - "@polar/plugin-gfi": "^2.0.0", - "@polar/plugin-icon-menu": "^1.3.0", - "@polar/plugin-layer-chooser": "^1.2.1", - "@polar/plugin-legend": "^1.1.1", - "@polar/plugin-loading-indicator": "^1.2.0", - "@polar/plugin-pins": "^2.0.0", - "@polar/plugin-scale": "^2.0.0", - "@polar/plugin-toast": "^1.1.1", - "@polar/plugin-zoom": "^1.3.0" + "@polar/core": "^3.0.0", + "@polar/lib-custom-types": "^2.0.0", + "@polar/plugin-address-search": "^3.0.0", + "@polar/plugin-attributions": "^1.4.0", + "@polar/plugin-draw": "^3.0.0", + "@polar/plugin-export": "^1.2.2", + "@polar/plugin-filter": "^3.0.0", + "@polar/plugin-gfi": "^3.0.0", + "@polar/plugin-icon-menu": "^1.3.1", + "@polar/plugin-layer-chooser": "^2.0.0", + "@polar/plugin-legend": "^1.1.2", + "@polar/plugin-loading-indicator": "^1.2.1", + "@polar/plugin-pins": "^3.0.0", + "@polar/plugin-scale": "^3.0.0", + "@polar/plugin-toast": "^1.1.2", + "@polar/plugin-zoom": "^1.4.0" }, "peerDependencies": { "@repositoryname/vuex-generators": "^1.1.2", From 3f03a123887353d3b16d9b5fe3a8c94e6262e186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carina=20Br=C3=BChl?= <151126989+jedi-of-the-sea@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:55:59 +0100 Subject: [PATCH 37/57] Update packages/clients/bgw/package.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pascal Röhling <73653210+dopenguin@users.noreply.github.com> --- packages/clients/bgw/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clients/bgw/package.json b/packages/clients/bgw/package.json index ad29c70d9..f57ec8686 100644 --- a/packages/clients/bgw/package.json +++ b/packages/clients/bgw/package.json @@ -16,7 +16,7 @@ "dist/**/**.*", "docs/**/**.*", "CHANGELOG.md", - "API.md" + "README.md" ], "scripts": { "prepublishOnly": "npm run build", From de8bf46408de525d2a9bb7cff3f4692d9bc84ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carina=20Br=C3=BChl?= <151126989+jedi-of-the-sea@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:56:26 +0100 Subject: [PATCH 38/57] Update packages/clients/bgw/package.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pascal Röhling <73653210+dopenguin@users.noreply.github.com> --- packages/clients/bgw/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clients/bgw/package.json b/packages/clients/bgw/package.json index f57ec8686..368b53141 100644 --- a/packages/clients/bgw/package.json +++ b/packages/clients/bgw/package.json @@ -9,7 +9,7 @@ "main": "dist/polar-client.js", "repository": { "type": "git", - "url": "https://github.com/Dataport/polar.git", + "url": "git+https://github.com/Dataport/polar.git", "directory": "packages/clients/bgw" }, "files": [ From a9f109ac56f754d6e1fa53ed7cdbd644fc6a1038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carina=20Br=C3=BChl?= <151126989+jedi-of-the-sea@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:56:36 +0100 Subject: [PATCH 39/57] Update packages/clients/bgw/package.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pascal Röhling <73653210+dopenguin@users.noreply.github.com> --- packages/clients/bgw/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clients/bgw/package.json b/packages/clients/bgw/package.json index 368b53141..0ce30f08a 100644 --- a/packages/clients/bgw/package.json +++ b/packages/clients/bgw/package.json @@ -2,7 +2,7 @@ "name": "@polar/client-bgw", "version": "1.0.0", "description": "POLAR Client BGW.", - "keywords": ["OpenLayers", "ol", "POLAR", "client", "Badegewässer"], + "keywords": ["OpenLayers", "ol", "POLAR", "client", "Badegewässer", "bathing areas"], "license": "EUPL-1.2", "type": "module", "author": "Dataport AöR ", From e7d46b3e42e199015f1e1291419bb6ef6f037325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carina=20Br=C3=BChl?= <151126989+jedi-of-the-sea@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:56:52 +0100 Subject: [PATCH 40/57] Update package.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pascal Röhling <73653210+dopenguin@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ed3cf4e9d..f3ebbd12b 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "afm:build:serve": "http-server ./packages/clients/afm -o /example/prod-example.html", "afm:dev": "nx dev @polar/client-afm", "bgw:build": "nx build @polar/client-bgw", - "bgw:build:serve": "http-server ./packages/clients/bgw -o /dist/index.html", + "bgw:build:serve": "http-server ./packages/clients/bgw -o /dist/index.html", "bgw:dev": "nx dev @polar/client-bgw", "generic:build": "nx build @polar/client-generic", "diplan:build": "nx build @polar/client-diplan", From 3953c9775de7fc3cdd64e6f73e2e7ac537a81c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carina=20Br=C3=BChl?= <151126989+jedi-of-the-sea@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:57:13 +0100 Subject: [PATCH 41/57] Update packages/clients/bgw/src/addPlugins.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pascal Röhling <73653210+dopenguin@users.noreply.github.com> --- packages/clients/bgw/src/addPlugins.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/clients/bgw/src/addPlugins.ts b/packages/clients/bgw/src/addPlugins.ts index 3a675a2bf..73f5cff32 100644 --- a/packages/clients/bgw/src/addPlugins.ts +++ b/packages/clients/bgw/src/addPlugins.ts @@ -84,9 +84,7 @@ export default (core) => { }), Legend( merge({}, defaultOptions, { - renderType: 'independent', layoutTag: NineLayoutTag.BOTTOM_RIGHT, - maxWidth: 500, }) ), LoadingIndicator( From 660212f940ac484fec8713003bcb6dc600266a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carina=20Br=C3=BChl?= <151126989+jedi-of-the-sea@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:57:33 +0100 Subject: [PATCH 42/57] Update packages/clients/bgw/src/mapConfiguration.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pascal Röhling <73653210+dopenguin@users.noreply.github.com> --- packages/clients/bgw/src/mapConfiguration.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/clients/bgw/src/mapConfiguration.ts b/packages/clients/bgw/src/mapConfiguration.ts index 6c14a156e..558e82185 100644 --- a/packages/clients/bgw/src/mapConfiguration.ts +++ b/packages/clients/bgw/src/mapConfiguration.ts @@ -2,17 +2,6 @@ import { BKGParameters } from '@polar/plugin-address-search/src/types' const mapConfig = { - epsg: 'EPSG:25832', - namedProjections: [ - [ - 'EPSG:25832', - '+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs', - ], - [ - 'EPSG:4326', - '+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs', - ], - ], extent: [106281, 5223179, 1021520, 6126916], startCenter: [552874, 6005140], startResolution: 260.591595229, From 71f9aea2f898d024071e719c7a3fa5b47d53f801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carina=20Br=C3=BChl?= <151126989+jedi-of-the-sea@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:57:40 +0100 Subject: [PATCH 43/57] Update packages/clients/bgw/src/mapConfiguration.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pascal Röhling <73653210+dopenguin@users.noreply.github.com> --- packages/clients/bgw/src/mapConfiguration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clients/bgw/src/mapConfiguration.ts b/packages/clients/bgw/src/mapConfiguration.ts index 558e82185..0f7a8dd3a 100644 --- a/packages/clients/bgw/src/mapConfiguration.ts +++ b/packages/clients/bgw/src/mapConfiguration.ts @@ -29,7 +29,7 @@ const mapConfig = { plugins: { filter: { layerName: { - 14003: 'Badestellen', + '14003': 'Badestellen', }, category: { 14003: { From 43abc37d91e35855d7575d1446ab4ade2a5f94ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carina=20Br=C3=BChl?= <151126989+jedi-of-the-sea@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:57:47 +0100 Subject: [PATCH 44/57] Update packages/clients/bgw/src/mapConfiguration.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pascal Röhling <73653210+dopenguin@users.noreply.github.com> --- packages/clients/bgw/src/mapConfiguration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clients/bgw/src/mapConfiguration.ts b/packages/clients/bgw/src/mapConfiguration.ts index 0f7a8dd3a..142a84642 100644 --- a/packages/clients/bgw/src/mapConfiguration.ts +++ b/packages/clients/bgw/src/mapConfiguration.ts @@ -32,7 +32,7 @@ const mapConfig = { '14003': 'Badestellen', }, category: { - 14003: { + '14003': { title: { bgw_gwkategory: 'Gewässerkategorie', }, From 98a2d068afd1f1ea6295bc7052c26d878abddc54 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Mon, 10 Feb 2025 15:00:32 +0100 Subject: [PATCH 45/57] delete unnecessary API.md --- packages/clients/bgw/API.md | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 packages/clients/bgw/API.md diff --git a/packages/clients/bgw/API.md b/packages/clients/bgw/API.md deleted file mode 100644 index ed2340185..000000000 --- a/packages/clients/bgw/API.md +++ /dev/null @@ -1,7 +0,0 @@ -# POLAR client BGW - -This client is a work-in-progress. This document will contain use cases and configuration examples when done. - -For all additional details, check the [full documentation](https://dataport.github.io/polar/docs/bgw/client-bgw.html). - -TODO \ No newline at end of file From abecfdd92ef9ead3894ebaf5bf32f55553837fdb Mon Sep 17 00:00:00 2001 From: bruehlca Date: Mon, 10 Feb 2025 15:15:12 +0100 Subject: [PATCH 46/57] add entry to documentation.html --- pages/documentation.html | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/documentation.html b/pages/documentation.html index abd17e3e4..65ae67e06 100644 --- a/pages/documentation.html +++ b/pages/documentation.html @@ -94,6 +94,7 @@

Client documentation

Each client comes with its own documentation built from its individual description and used plugins.

  • AfM documentation ↗ (used in OSI/OZG context)
  • +
  • Badegewässer documentation ↗
  • DiPlan documentation ↗
  • Generic documentation ↗
  • Meldemichel documentation ↗
  • From 0971f1b0d09b7f80a923b0bb96319dd0a545116b Mon Sep 17 00:00:00 2001 From: bruehlca Date: Mon, 10 Feb 2025 15:17:09 +0100 Subject: [PATCH 47/57] add bgw to buildPages.sh --- scripts/buildPages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/buildPages.sh b/scripts/buildPages.sh index a8e100d68..87543e7fc 100644 --- a/scripts/buildPages.sh +++ b/scripts/buildPages.sh @@ -1,4 +1,4 @@ -array=( afm diplan generic meldemichel snowbox textLocator ) +array=( afm bgw diplan generic meldemichel snowbox textLocator ) for i in "${array[@]}" do echo "Building $i docs ..." From 6dfbe17b1d5de545dd7b4a202309ec7fc875fea7 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Mon, 10 Feb 2025 15:18:08 +0100 Subject: [PATCH 48/57] add more descriptive description --- packages/clients/bgw/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clients/bgw/package.json b/packages/clients/bgw/package.json index 0ce30f08a..f7284cf62 100644 --- a/packages/clients/bgw/package.json +++ b/packages/clients/bgw/package.json @@ -1,7 +1,7 @@ { "name": "@polar/client-bgw", "version": "1.0.0", - "description": "POLAR Client BGW.", + "description": "POLAR Client Badegewässer.", "keywords": ["OpenLayers", "ol", "POLAR", "client", "Badegewässer", "bathing areas"], "license": "EUPL-1.2", "type": "module", From 13860e676c3da818460a0f67df65ffa8eb1c2f95 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Mon, 10 Feb 2025 15:18:51 +0100 Subject: [PATCH 49/57] correct version --- packages/clients/bgw/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clients/bgw/package.json b/packages/clients/bgw/package.json index f7284cf62..b6f5f984e 100644 --- a/packages/clients/bgw/package.json +++ b/packages/clients/bgw/package.json @@ -1,6 +1,6 @@ { "name": "@polar/client-bgw", - "version": "1.0.0", + "version": "1.0.0-alpha.0", "description": "POLAR Client Badegewässer.", "keywords": ["OpenLayers", "ol", "POLAR", "client", "Badegewässer", "bathing areas"], "license": "EUPL-1.2", From 4448619ca5a77ed7c260ec7e846f41698b018d0c Mon Sep 17 00:00:00 2001 From: bruehlca Date: Mon, 10 Feb 2025 15:20:46 +0100 Subject: [PATCH 50/57] delete prod-example.html --- .../clients/bgw/example/prod-example.html | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 packages/clients/bgw/example/prod-example.html diff --git a/packages/clients/bgw/example/prod-example.html b/packages/clients/bgw/example/prod-example.html deleted file mode 100644 index 1e875d4e4..000000000 --- a/packages/clients/bgw/example/prod-example.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - POLAR – Badegewässer - - - - -
    -
    -
    - - - From 40dd2d79943044e26b8fd49458609e3c08a309e5 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Mon, 10 Feb 2025 15:20:59 +0100 Subject: [PATCH 51/57] delete unused png --- packages/clients/bgw/src/assets/badestellen.png | Bin 4839 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 packages/clients/bgw/src/assets/badestellen.png diff --git a/packages/clients/bgw/src/assets/badestellen.png b/packages/clients/bgw/src/assets/badestellen.png deleted file mode 100644 index 642ae58089ee6166d7645f12de0f88f4fb599247..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4839 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 N002ovPDHLkV1l5CeJTI| From 0a2e2890aa5769f4da2498408b90f56a558e7768 Mon Sep 17 00:00:00 2001 From: bruehlca Date: Mon, 10 Feb 2025 15:27:15 +0100 Subject: [PATCH 52/57] correct version in package-lock.json --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 45d2d19db..f65a7401c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17809,7 +17809,7 @@ }, "packages/clients/bgw": { "name": "@polar/client-bgw", - "version": "1.0.0", + "version": "1.0.0-alpha.0", "license": "EUPL-1.2", "devDependencies": { "@polar/core": "^3.0.0", From 1dd4e8648cf2a8a718fbb4d3c58e6a9798273adc Mon Sep 17 00:00:00 2001 From: bruehlca Date: Mon, 10 Feb 2025 15:27:56 +0100 Subject: [PATCH 53/57] simplify used type --- packages/clients/bgw/src/utils/badestellenSearch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/clients/bgw/src/utils/badestellenSearch.ts b/packages/clients/bgw/src/utils/badestellenSearch.ts index 05525afb3..a93a1157d 100644 --- a/packages/clients/bgw/src/utils/badestellenSearch.ts +++ b/packages/clients/bgw/src/utils/badestellenSearch.ts @@ -4,7 +4,7 @@ import { AddressSearchGetters, AddressSearchState, } from '@polar/plugin-address-search' -import { Feature, GeoJsonProperties, Geometry } from 'geojson' +import { Feature } from 'geojson' export const badestellenSearchResult: SelectResultFunction< AddressSearchState, @@ -14,7 +14,7 @@ export const badestellenSearchResult: SelectResultFunction< { feature, }: { - feature: Feature & { + feature: Feature & { title: string epsg?: string } From a5036249c09f633731974c8d54301ed2e22723da Mon Sep 17 00:00:00 2001 From: bruehlca Date: Mon, 10 Feb 2025 15:41:14 +0100 Subject: [PATCH 54/57] remove unnecessary parameters --- packages/clients/bgw/src/services.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/clients/bgw/src/services.ts b/packages/clients/bgw/src/services.ts index 188bae46b..2fd1dfff5 100644 --- a/packages/clients/bgw/src/services.ts +++ b/packages/clients/bgw/src/services.ts @@ -59,7 +59,6 @@ export default [ transparent: true, layers: 'Kreise_Aemter_Gemeinden', singleTile: false, - tilesize: 256, }, { id: '14001', @@ -69,10 +68,7 @@ export default [ featureType: 'app:badestraende', version: '1.1.0', outputFormat: 'XML', - gfiAttributes: 'showAll', layerAttribution: 'nicht vorhanden', - hitTolerance: '0', - datasets: [], }, { id: '14002', @@ -82,10 +78,7 @@ export default [ featureType: 'app:betrachtungsbereiche', version: '1.1.0', outputFormat: 'XML', - gfiAttributes: 'showAll', layerAttribution: 'nicht vorhanden', - hitTolerance: '0', - datasets: [], }, { id: '14003', @@ -95,10 +88,7 @@ export default [ featureType: 'app:badestellen', version: '1.1.0', outputFormat: 'XML', - gfiAttributes: 'showAll', layerAttribution: 'nicht vorhanden', - hitTolerance: '0', - datasets: [], clusterDistance: 20, }, { @@ -109,9 +99,6 @@ export default [ featureType: 'app:probenahmestellen', version: '1.1.0', outputFormat: 'XML', - gfiAttributes: 'showAll', layerAttribution: 'nicht vorhanden', - hitTolerance: '0', - datasets: [], }, ] From 05dd68cf8c9bd457c360b7c5c9a1291a6e75e98d Mon Sep 17 00:00:00 2001 From: bruehlca Date: Wed, 12 Feb 2025 16:34:48 +0100 Subject: [PATCH 55/57] edit description --- packages/clients/bgw/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clients/bgw/package.json b/packages/clients/bgw/package.json index b6f5f984e..4dcd2915b 100644 --- a/packages/clients/bgw/package.json +++ b/packages/clients/bgw/package.json @@ -1,7 +1,7 @@ { "name": "@polar/client-bgw", "version": "1.0.0-alpha.0", - "description": "POLAR Client Badegewässer.", + "description": "POLAR Client Badegewässer. This client provides information about bathing areas in Schleswig-Holstein, Germany.", "keywords": ["OpenLayers", "ol", "POLAR", "client", "Badegewässer", "bathing areas"], "license": "EUPL-1.2", "type": "module", From 7a8fdffcedf719a8f532c6bbaa9df4b17afbfbde Mon Sep 17 00:00:00 2001 From: Dennis Sen Date: Mon, 17 Feb 2025 07:12:26 +0100 Subject: [PATCH 56/57] remove false sentence --- packages/clients/diplan/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clients/diplan/README.md b/packages/clients/diplan/README.md index c7bd91a6d..7e2b00484 100644 --- a/packages/clients/diplan/README.md +++ b/packages/clients/diplan/README.md @@ -2,7 +2,7 @@ ## Contents -This client is a reusable map solution intended for DiPlanKarten as part of the [DiPlanung project](https://www.diplanung.de/). It contains a project-specific GFI template and default setup. +This client is a reusable map solution intended for DiPlanKarten as part of the [DiPlanung project](https://www.diplanung.de/). ## Configuration From a5bc2968b102d98977715c64d0b2976a3ece4ce1 Mon Sep 17 00:00:00 2001 From: Dennis Sen Date: Mon, 17 Feb 2025 07:13:02 +0100 Subject: [PATCH 57/57] add missing article --- packages/clients/diplan/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clients/diplan/README.md b/packages/clients/diplan/README.md index 7e2b00484..125db8121 100644 --- a/packages/clients/diplan/README.md +++ b/packages/clients/diplan/README.md @@ -6,6 +6,6 @@ This client is a reusable map solution intended for DiPlanKarten as part of the ## Configuration -A detailed API description is provided in the contained `API.md` file. Usage examples are included in the `example` folder. It can be viewn by hosting the files in an arbitrary HTTP server. If you checked out the repository, a prior build is required. If you've got built package, the `prod-example.html` works as it is. +A detailed API description is provided in the contained `API.md` file. Usage examples are included in the `example` folder. It can be viewn by hosting the files in an arbitrary HTTP server. If you checked out the repository, a prior build is required. If you've got the built package, the `prod-example.html` works as it is. NPM users may e.g. run `npx http-server . -o ./example/prod-example.html`. When in a cloned repo, `npm run diplan:build && npm run diplan:build:serve` will wind up the current state in build mode, and `npm run diplan:dev` opens the client in development mode.